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
Issue#819 #857
Issue#819 #857
Conversation
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 was under the impression we agreed in the meeting last time to disable checking for eperson languages for the time being. The check doesn't really have a point at the moment, because there isn’t a way to set an eperson language from the UI yet.
But this PR keeps the check, and gets round the issue by making changes to the way remotedata states are defined, which has the potential to affect anything that uses rest data in the entire app. That means it requires that we test everything else again, and that takes it out of the 1-Approval category for me
@atarix83 : I agree with @artlowel here. It's unclear to me why the scope of this fix was expanded. My impression from discussions in meetings was that we all agreed that #819 should be properly fixed by the work going on to resolve #739 (which is scheduled for beta5). So, we had discussed a simple, temporary fix for beta4 of leaving out the EPerson language for now (and we can add a note in #739 to "undo" that temporary fix). Is there a reason why you didn't go with that approach? Am I misunderstanding something? |
@tdonohue @artlowel |
@atarix83 : Overall, I'm not against this change...but it seems like we'd need to carefully test it. I'm also not entirely certain whether this change will be made "obsolete" once @artlowel 's work on #739 is complete. So, I'd appreciate @artlowel 's feedback on how this PR as-is would affect #739....there's a few possible approaches I see here:
@artlowel, do you have any feedback on the approaches above based on the ongoing work to fix #739? |
It is just temporary. As detailed in #739, the logic to determine the RemoteData state will move to a reducer and RemoteDataBuildService will drastically change, perhaps not even be necessary anymore. The state of an expired RemoteData object will be "stale". |
Ok, given it'd be temporary, I think we should revert this back to the original idea @atarix83 & just disable the EPerson language temporarily. You can choose to either update this PR directly, or close it an create a new one. |
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
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 too. Thanks @atarix83
References
Description
This PR fix issue described in this issue by avoiding that a successful RemoteData is emitted two time, with undefined payload int the first one
Instructions for Reviewers
To test this PR :
On current main branch scrolling down the list should show an hanging loading icon. With this Pr it should work properly
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.