Reconciliation API implementation (#665)#671
Conversation
It should work for any TEIDataPointer attribute. However, most of these attributes allow 1-n entries, delimited by whitespace. sameAs is an odd duck in that it only allows for 1 TEIDataPointer.
I don't think we want '#' for these or a
Let me try it out and give feedback. |
|
Regarding multiple entries, I think it is OK if we only allow one TEIDataPointer for attributes using Reconciliation API. |
|
Tried out this interface, it feels pretty good to me, but does require some training for the user to understand what to expect. I think given the context in which this feature is used, that is fine. I would like to try it out against the prod core data NBU project, to see how it functions with a non trivial number of returns. |
In this PR
Per #665:
TEIDataPointerattributesdefaultTypes#prependedQuestions
TEIDataPointerattribute, or onlysameAsor some other subset?#? Going off Rebecca's comment in Slack + your note about only using_for NBU backwards compatibility.Visual walkthrough
Config flow
Available Attributes now has a new column called "Autocomplete":

Once the "enable remote data source" checkbox is toggled (i.e. choosing Reconciliation API instead of XML ID), the user can fill out the reconciliation API endpoint URL, and an optional type filter:

The type filter will fetch the

defaultTypesfrom the reconciliation manifest to fill out the autocomplete:Editor flow
Clicking a configured element or mark will auto-populate the attribute with its text content:

Clicking the autocomplete field will show you options from the reconciliation API:

Typing will result in a query being sent to the reconciliation service (300ms debounced):

On selection, the ID of the chosen authority record will populate the attribute, prefaced with
#The "external link" button will take you to the view URL for that record, if one is configured in the manifest.
