Skip to content

Conversation

@ushahidlee
Copy link
Contributor

Issue:

The previous fix for the deployment not found issue (https://linear.app/ushahidi/issue/USH-1458/unhandled-deployment-error-client-stuck-in-loading-loop-on-subdomain) sometimes encountered a timing issue that prevented it from correctly assessing whether the deployment was not found, or just had not yet been loaded. This was due to the guard being executed faster than the backend could provide the data.

Solution:

I have added an observable to the session service that is updated only after config has been loaded or has failed to do so. The route guard that is checking to see if the deployment is found, will wait until this observable presents success or failure before running its checks.

Testing:

  1. Open site with proper backend and the site will load.
  2. Open site with bad url or no backend and you will see "Deployment not found" page.

@ushahidlee ushahidlee requested a review from Angamanga August 23, 2024 04:05
@linear
Copy link

linear bot commented Aug 23, 2024

Copy link
Contributor

@Angamanga Angamanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition makes sense + it works fine!

@ushahidlee ushahidlee merged commit 0d3ced9 into development Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants