-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix/432 Dataset view metadata missing fields #443
Conversation
Hi @ekraffmiller thanks for the feedback About the multiple fetch requests: I think what you see in the Chrome Network tab is due to About keeping a shared context: Anyway, I can try to achieve that with a shared context if you think that is a better approach, I like challenges |
Ok, I forgot about StrictMode, thanks for reminding me! When I remove it, the calls happen twice, which I think is a good tradeoff for avoiding the complications you mentioned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this PR does / why we need it:
This PR not only fix that Geo Bounding Box fields are not displayed, I have found a bigger issue.
The formatting of the metadata fields was not being correct when a dataset had metadata in addition to the citation block.
<DatasetMetadataFields />
component was being used in the Metadata tab and also in the Summary description.In both places, the display format information was obtained from a context provider by block name (
MetadataBlockInfoProvider
), but the problem arose when there was another block other than Citation, this context changed the new information to the requested block name and the display format information was mixed up, causing the blocks that needed the Citation information to be getting information from another block.Which issue(s) this PR closes:
Closes #432
Special notes for your reviewer:
N/A
Suggestions on how to test this:
Create a Collection with more than one metadata block.
Then create a dataset filling fields from all the blocks.
Navigate to the dataset page view in the SPA and check that summary description and fields in every block of the metadata tab are being displayed and formatted correctly.
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No.
Is there a release notes update needed for this change?:
No.
Additional documentation:
N/A