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

access request: update guest request payload #343

Conversation

anikachurilova
Copy link
Contributor

@anikachurilova anikachurilova commented Aug 10, 2023

NOTE: the permissions for request.payload updation should be handled in separate PR (this TODO https://github.com/inveniosoftware/invenio-requests/pull/343/files#diff-4b568e443f92c06d4ea44587cf21b1134cfaff1f5bf4ceb88076ae894c452f0fR44)
The task is already created: inveniosoftware/invenio-rdm-records#1402

ReactDOM.render(
<InvenioRequestsApp
request={request}
defaultQueryParams={defaultQueryParams}
overriddenCmps={overriddenComponents}
overriddenCmps={overrideStore.getAll()}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not do that to avoid, I am not sure in which case, replacing an already defined id in the global store.
We should prefer the pattern:

{ ...defaultComponents, ...overriddenComponents },

instead.

@ntarocco ntarocco force-pushed the update-request-payload-in-the-request-detail-page branch from 72db482 to 232db7e Compare August 11, 2023 12:41
@ntarocco ntarocco merged commit b765d8c into inveniosoftware:master Aug 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

requests: update request payload in the request detail page
2 participants