-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API in 2.0 for retrieving App MetaData from an instanceIdentifier #734
Comments
I think this is a reasonable way to do things as at present you will never receive an However, at present, other API calls that deal with Hence, I think we should also consider whether it is better for App developers (rather than Platform developers) for a desktop agent to always return the Finally, if this is to be added to the 2.0 release, a PR will need to be raised and voted in by email before the Thursday 23rd June meeting. Otherwise, it'll need to go into the 2.1-candidates milestone. |
I'd be interested in other opinions on this before putting in a PR for 2.0. Yes. it would be preferable if ContextMetadata and IntentResolution only return AppIdentifier and then AppMetadata was retrieved as needed via the API. I think it's 6 one way 1/2 dozen another in terms of dev ergonomics. While an additional call needs to be made in some cases, it also means that app devs won't have to wrangle with other cases where they need to retrieve the metadata after the fact of a Context or Intent event. The benefit of doing it this way of course is that we are not building into the design the need to attach potentially large and mostly unneeded data to almost every message in the system. What happens if someone wants to put base64 encoded images in their AppMetadata (for example)? |
oof, data URLs. Never seen that done in an AppD, but suppose it could be. However, there's no guarantee it'd be supported by a particular desktop agent implementation so its likely a bad idea. That made me notice that |
Perhaps AppMetadata should really be a pass-through of the AppD record and have everything else use AppIdentifier? yes! |
From a colleague @ Cosaic:
|
Regarding AppMetadata == AppD Record. Wouldn't this be a breaking change? This might not be possible for 2.1 if so, right? |
Actually, I think that would mostly be an additive change as the appD fields are (I believe) a superset of the current
However, I think adding this API (and the implied change to reduce other API calls to returning That said, I think it might be the right change to make. |
The maintainers met on this issue and would like to resolve it in 2.0. Hence a PR has been raised (#751) and has been passed to the maintainers for review. Hopefully, it can be pre-agreed and then passed to the Standards Working Group via email for approval before the 2.0 predraft is put to a vote (on June 23rd). |
...and there was much rejoicing. Have you added a tag? |
Yes https://github.com/finos/FDC3/releases/tag/v2.0 |
Enhancement Request
Use Case:
As an application developer, I want to be able to retrieve the metadata of an application I'm inter-oping with on demand.
Additional Information
Proposed API:
Note: to be consistent with other APIs, this takes an argument of AppIdentifier - which mean an instanceId is optional, which is a bit misaligned with the use case of using this API to get the Metadata of an instance you are interacting with. The other option would be to change the signature to
getAppMetadata(instanceId : string)
- which maybe is not as consistent with the other ways we're accessing this kind of metadata.The text was updated successfully, but these errors were encountered: