-
Notifications
You must be signed in to change notification settings - Fork 191
fix: [OCISDEV-554] duped call for public share access with p/w #13409
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
|
LukasHirt
left a comment
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.
Could you please add unit tests to verify that the change prevent the second call?
Trying to get an idea here. @LukasHirt The authService is actually mocked in the test and therefore the watcher won't be triggered. Can the authService test file instead include this test since the changes are added there? TIA Btw a screenshot from manual test
|
|
I took a closer look now and see that the index file is anyway not yet covered with unit tests at all. There's quite a lot happening in that file so adding the tests would take a bit longer than I originally thought. If you have an idea for a simple tests somewhere else that would cover your changes, feel free to add them. Otherwise I would be fine with just doing manual testing and leaving unit tests for now. |
Yeah. I will check and add it in the authService test. Also getting your opinion on whether these duplicate calls are to be removed post successful password submission. These are after routing to the public share directory
|
|
Yes, if there are more duplicate calls we should handle those as well. If the fix for it is simple, I would include it in this PR. If it's a bit more complex, I would suggest separate PR. |
Yes can be taken separately. As you mentioned this needs a separate test file for index.ts. Should we take this PR without the test? |





Description
Related Issue
Motivation and Context
Removed a duplicated call for the files-list when accessing a password protected shared link
How Has This Been Tested?
Unit and manual tests
Screenshots (if appropriate):
Types of changes
Open tasks: