Skip to content
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

734 return app identifier and add function to retrieve app metadata #751

Merged
merged 6 commits into from
Jun 20, 2022

Conversation

kriswest
Copy link
Contributor

@kriswest kriswest commented Jun 10, 2022

resolves #734

Adds a new function to retrieve AppMetadata for an AppIdentifier and reduces several other return types to only specify AppIdentifier rather than AppMetadata (which is a superset of AppIdentifier's fields). This helps clarify what fields developers can expect in returns from functions (i.e. only the minimal set in AppIdentifier) and that they should manually retrieve any additional metadata (i.e. an AppMetadata) if they need it (for display purposes).

Key areas to review (preview links):

Finally, please note that the AppIntent returned by findIntent still uses AppMetadata (as the use case will pretty much always require it) as does the ImplementationMetadata returned by getInfo.

@kriswest kriswest added enhancement New feature or request api FDC3 API Working Group labels Jun 10, 2022
@kriswest kriswest added this to the 2.0 milestone Jun 10, 2022
@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for lambent-kulfi-cf51a7 canceled.

Name Link
🔨 Latest commit 3c2c52c
🔍 Latest deploy log https://app.netlify.com/sites/lambent-kulfi-cf51a7/deploys/62a71449942e27000884bab2

@robmoffat
Copy link
Member

One question:

Is AppMetadata just a subset of the AppD record in this version? In #734 we were discussing making them equivalent, I think.

@kriswest
Copy link
Contributor Author

kriswest commented Jun 13, 2022 via email

Copy link
Contributor

@mattjamieson mattjamieson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kriswest, LGTM. A few tiny tweaks.

docs/api/spec.md Outdated Show resolved Hide resolved
docs/api/spec.md Outdated Show resolved Hide resolved
src/api/DesktopAgent.ts Outdated Show resolved Hide resolved
src/api/DesktopAgent.ts Outdated Show resolved Hide resolved
Co-authored-by: Matt Jamieson <10372+mattjamieson@users.noreply.github.com>
@kriswest
Copy link
Contributor Author

well spotted on a few of those, cheers @mattjamieson

Copy link
Contributor

@mistryvinay mistryvinay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kriswest
Copy link
Contributor Author

@openfin-johans @openfin-gavin @MichaelMCoates any chance you guys could take a look at this today? I'd like to get it off to the mailing list ASAP so we can then get on with sending out the pre-draft for the adoption vote next week.

The aim of the issue/PR is to reduce the need for the container to reproduce the full AppMetadata (which is growing in size gradually) in situations where it often isn't needed (for example on every context message or IntentResolution) and to provide a way to retrieve it. This should be more efficient for the container and clearer for the developer in terms of workflow (if you need the display metadata for an app, go retrieve it).

Copy link
Contributor

@openfin-johans openfin-johans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a peach!

@kriswest kriswest merged commit b11cbff into master Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api FDC3 API Working Group enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add API in 2.0 for retrieving App MetaData from an instanceIdentifier
9 participants