Skip to content
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

Observable: wait for client config #5934

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

Conversation

RXminuS
Copy link
Contributor

@RXminuS RXminuS commented Oct 17, 2024

Before the ClientConfiguration would resolve immediately to undefined even if triggered right after authentication. This would cause flake in tests as commands such as chat/edit would incorrectly show a "This feature has been disabled by your site admin" message.

Now we instantly invalidate the ClientConfig if the auth status changes, but we prevent resolving of the client status until the credentials have been validated.

Test plan

E2E tests will be added in a later PR as there's some upcoming fixes to the test framework. For now I've manually validated that everything still works as before.

In particular to trigger a invalid client config and see it resolve correctly I enabled an incorrect proxy configuration. Then upon changing the config settings a new auth session is requested and the client configuration resolves correctly.

🎥 Video uploaded on Graphite:

Copy link
Contributor Author

RXminuS commented Oct 17, 2024

@RXminuS RXminuS changed the title Wait for client config Observable: wait for client config Oct 17, 2024
@RXminuS RXminuS force-pushed the rnauta/ci-enable-e2e-v2/wait-for-client-config branch from 5b341e5 to 0a93319 Compare October 17, 2024 22:27
@RXminuS RXminuS marked this pull request as ready for review October 17, 2024 22:32
@RXminuS RXminuS requested a review from sqs October 17, 2024 22:32
@RXminuS RXminuS force-pushed the rnauta/ci-enable-e2e-v2/wait-for-client-config branch from 0a93319 to 9a0cebc Compare October 20, 2024 15:57
@RXminuS RXminuS force-pushed the rnauta/ci-enable-e2e-v2/wait-for-client-config branch from 9a0cebc to 7409630 Compare October 22, 2024 18:36
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.

1 participant