-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(editor) Logged out handling for collaboration features. (#4774)
- Test dispatch function now waits for 2 calls to update the project server state to apply before continuing. - Added `loggedIn` parameter to `checkProjectOwned`. - `checkProjectOwned` now handles if the user is not logged in and if it's running in a test environment to return true against `isOwner`. This is because actions need to run but at a point that does not regularly occur when running normally as the user is either logged in or the project exists locally. - Added a `loggedIn` condition in `CollaborationStateUpdater`. - `allowedToEditProject` and `useAllowedToEditProject` now check the login status of the user. - Removed a call to `updateProjectServerStateInStore` that was running on any change to `SET_LOGIN_STATE`, because it was effectively running at a random point in time. - `getProjectServerState` now doesn't itself handle `IS_TEST_ENVIRONMENT` as that handling has been pushed down into the various functions it calls. - Added timestamps to `test-browser-full-output`. - `getLoginState`, `checkProjectOwnership` and `fetchProjectMetadata` now all check `IS_TEST_ENVIRONMENT` so that they don't try to make calls to the server during tests.
- Loading branch information
1 parent
1811a2c
commit 45478a0
Showing
20 changed files
with
378 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.