-
Notifications
You must be signed in to change notification settings - Fork 14
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
IHubContent should have metadata, and provide a way to fetch it #353
Comments
This is a good plan. However, please be aware that the purpose of Specifically, in the near future item editors will be able to configure their metadata display. By far the most common request is to choose what shows in "Last Updated" because it's often not the "ArcGIS Item edited date" but instead some real-world date when a surveyor went into the field. Therefore, the So the |
Looks like the hub-indexer uses https://www.npmjs.com/package/fast-xml-parser to parse the metadata XML response, and it looks like we can use that in a browser and it's only 5.5kB gzipped, so I'll plan to implement this using that library. The parser is configured here. |
relies on Esri/arcgis-rest-js#738 |
follow up from #330 and related to #322 (but more limited in scope).
As I indicated in #322 (comment), I think
getContent()
should returnmetadata
when it exists (i.e. when fetching from the Hub API). I'm not sure that it should proactively make an async request to get it otherwise. We can start by adding something likegetContentMetadata()
that would fetch it from wherever the enrichment currently fetches it from and the client can call that as needed.The text was updated successfully, but these errors were encountered: