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

Fix disambiguation routes #21811

Merged
merged 2 commits into from
May 13, 2024
Merged

Fix disambiguation routes #21811

merged 2 commits into from
May 13, 2024

Conversation

salazarm
Copy link
Contributor

Summary & Motivation

In a previous PR I removed a waterfall on the WorkspaceQuery since many of the child routes of WorkspaceRoot do not actually depend on it.

Well in removing that I made a bug that was previously pretty intermittent / infrequent happen all the time. In particular there were routes that were depending on the permissions query without actually waiting for it. Instead those routes happened to be waiting on the WorkspaceQuery which would normally come back after the permissions query hence why the routes worked before.

The reason this bug happened intermittently before is because sometimes the WorkspaceQuery would come back before the permissions query causing this bug.

To fix this I make the routes wait for permissions to load directly.

How I Tested These Changes

Loaded this page Via app-cloud-proxy and saw that we went to the launch pad: https://localhost:3001/elementl/prod/locations/dagster_open_platform/pipeline_or_job/dagster_quickstart_validation_job/playground/setup?config=%7B%7D%0A&tags%5B0%5D%5Bkey%5D=dagster%2Fsensor_name&tags%5B0%5D%5Bvalue%5D=dagster_quickstart_validation_sensor&tags%5B0%5D%5B__typename%5D=PipelineTag


useBlockTraceUntilTrue('Workspace', loading);
useBlockTraceUntilTrue('Permissions', permissionsLoading);
if (loading || permissionsLoading) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this site uses useRepository it's also secretly depending on the RootWorkspaceQuery being loaded.

@salazarm salazarm merged commit ba55a14 into master May 13, 2024
0 of 2 checks passed
@salazarm salazarm deleted the salazarm/fix-rendering-issue branch May 13, 2024 16:13
salazarm added a commit that referenced this pull request May 13, 2024
## Summary & Motivation

In a previous PR I removed a waterfall on the WorkspaceQuery since many
of the child routes of `WorkspaceRoot` do not actually depend on it.

Well in removing that I made a bug that was previously pretty
intermittent / infrequent happen all the time. In particular there were
routes that were depending on the permissions query without actually
waiting for it. Instead those routes happened to be waiting on the
WorkspaceQuery which would normally come back after the permissions
query hence why the routes worked before.

The reason this bug happened intermittently before is because sometimes
the WorkspaceQuery would come back before the permissions query causing
this bug.

To fix this I make the routes wait for permissions to load directly.


## How I Tested These Changes

Loaded this page Via app-cloud-proxy and saw that we went to the launch
pad:
https://localhost:3001/elementl/prod/locations/dagster_open_platform/pipeline_or_job/dagster_quickstart_validation_job/playground/setup?config=%7B%7D%0A&tags%5B0%5D%5Bkey%5D=dagster%2Fsensor_name&tags%5B0%5D%5Bvalue%5D=dagster_quickstart_validation_sensor&tags%5B0%5D%5B__typename%5D=PipelineTag
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jun 18, 2024
## Summary & Motivation

In a previous PR I removed a waterfall on the WorkspaceQuery since many
of the child routes of `WorkspaceRoot` do not actually depend on it.

Well in removing that I made a bug that was previously pretty
intermittent / infrequent happen all the time. In particular there were
routes that were depending on the permissions query without actually
waiting for it. Instead those routes happened to be waiting on the
WorkspaceQuery which would normally come back after the permissions
query hence why the routes worked before.

The reason this bug happened intermittently before is because sometimes
the WorkspaceQuery would come back before the permissions query causing
this bug.

To fix this I make the routes wait for permissions to load directly.


## How I Tested These Changes

Loaded this page Via app-cloud-proxy and saw that we went to the launch
pad:
https://localhost:3001/elementl/prod/locations/dagster_open_platform/pipeline_or_job/dagster_quickstart_validation_job/playground/setup?config=%7B%7D%0A&tags%5B0%5D%5Bkey%5D=dagster%2Fsensor_name&tags%5B0%5D%5Bvalue%5D=dagster_quickstart_validation_sensor&tags%5B0%5D%5B__typename%5D=PipelineTag
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.

2 participants