Move correlation ID to store#1465
Conversation
|
Looks like there were some other test failures hiding behind the |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Tested and this works. Thanks @ybnd ! I've verified that the first request has the Correlation ID set, and that the backend logs almost never have "unknown unknown" (except briefly during authentication, but that's expected based on backend's behavior)
That said, I have two very minor requests for this PR before we merge it. I'd appeciate it if you could add some more TypeDocs or basic comments to code files that do not have any comments. See inline below. Once those are added, I feel this could be merged.
dd625ac to
c1e8bbb
Compare
|
This pull request introduces 2 alerts when merging c1e8bbb into ba268d4 - view on LGTM.com new alerts:
|
Dspace cris 2023 02 x DSC-1454 Approved-by: Vincenzo Mecca
References
Description
Short summary of changes (1-2 sentences).
Instructions for Reviewers
List of changes in this PR
correlationIdfield was added to the store, where it can be initialized both server- and client-sidecorrelationIdfrom a cookie or the store, or generate it on demand if there isn't one yet.AppModuletoBrowserAppModule&ServerAppModulein order to initialize after the store is rehydrated. Because of this the client can pick up a correlation ID generated by the server if it doesn't have a cookie yet.Testing
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.