-
Notifications
You must be signed in to change notification settings - Fork 437
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
#1273 no js issue #1275
#1273 no js issue #1275
Conversation
…ed while logging-in with external idp" This reverts commit 73a9fe1
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.
@@ -18,10 +19,11 @@ export class ObjectCacheEffects { | |||
*/ | |||
@Effect() fixTimestampsOnRehydrate = this.actions$ | |||
.pipe(ofType(StoreActionTypes.REHYDRATE), | |||
map(() => new ResetObjectCacheTimestampsAction(new Date().getTime())) | |||
map(() => new ResetObjectCacheTimestampsAction(new Date().getTime())), | |||
tap(() => this.authorizationsService.invalidateAuthorizationsRequestCache()) |
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.
I wouldn't add this to the bottom of another, unrelated effect. I'd add a separate effect that listens to the same action, with dispatch: false
especially for this.
That way the effect can have a name that reflects what it does, it makes the code easier to understand, and to describe in typedocs.
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.
That way it can also be moved to auth.effects.ts which is likely a better fit
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.
done
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.
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.
Thanks @atarix83!
…#1275) DSC-1484 create utility functions main Approved-by: Davide Negretti
References
Add references/links to any related issues or PRs. These may include:
Description
This PR resolves both issues mentioned previously. I've reverted the #1244 in order to fix the #1273 and then I've used a new approach to solve the #1179.
Since the #1179 issue was due to cache problem with request to
authorizations
endpoint. I've added a method to set stale all the requests to theauthorizations
endpoint when the store is rehydrated from SSR to CSRInclude guidance for how to test or review your PR.
Test both issues are sorted out.
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 lint
package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.