Skip to content

Rework "open storage" action #18566

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

NobodysNightmare
Copy link
Contributor

The previous implementation was a deeply nested decision tree for different error cases or other unexpected states.

Most of this was necessary, because setting up correct permissions is partially happening asynchronously. Some of the redirects would eventually have rendered a modal that would periodically check whether user permissions appeared in the background.

All of this was replaced by an approach where we immediately (synchronously) ensure that the setup is correct.

Ticket

https://community.openproject.org/wp/62758

Merge checklist

  • Added/updated tests
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@NobodysNightmare NobodysNightmare force-pushed the feature/62758-storage-sidebar-button-in-projects-should-behave-correctly-in-all-scenarios branch 5 times, most recently from b0e8b17 to 01bc9f1 Compare April 10, 2025 13:25
@NobodysNightmare NobodysNightmare force-pushed the feature/62758-storage-sidebar-button-in-projects-should-behave-correctly-in-all-scenarios branch 5 times, most recently from b489677 to 3f4d477 Compare April 17, 2025 11:59
@NobodysNightmare NobodysNightmare requested review from Kharonus and mereghost and removed request for Kharonus April 17, 2025 14:10
@NobodysNightmare NobodysNightmare changed the title WIP: Rework "open storage" action Rework "open storage" action Apr 17, 2025
@NobodysNightmare
Copy link
Contributor Author

Opening this PR for review already. Relevant tests are passing. The only thing left is that I need to split tests for code that I separated (currently the original unit tests cover the extracted concerns).

@NobodysNightmare NobodysNightmare force-pushed the feature/62758-storage-sidebar-button-in-projects-should-behave-correctly-in-all-scenarios branch from 3f4d477 to 268c9e1 Compare April 17, 2025 14:12
The previous implementation was a deeply nested decision tree for
different error cases or other unexpected states.

Most of this was necessary, because setting up correct permissions is partially
happening asynchronously. Some of the redirects would eventually have rendered a modal
that would periodically check whether user permissions appeared in the background.

All of this was replaced by an approach where we immediately (synchronously) ensure
that the setup is correct.
@NobodysNightmare NobodysNightmare force-pushed the feature/62758-storage-sidebar-button-in-projects-should-behave-correctly-in-all-scenarios branch from 268c9e1 to da9666d Compare April 17, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant