Skip to content

fix: stay on current env after deleting doc - #1138

Merged
czgu merged 1 commit into
pinterest:masterfrom
lilyli9:external/keep-current-env-after-deleting-datadoc
Jan 31, 2023
Merged

czgu merged 1 commit into
pinterest:masterfrom
lilyli9:external/keep-current-env-after-deleting-datadoc

Conversation

@lilyli9

@lilyli9 lilyli9 commented Jan 31, 2023

Copy link
Copy Markdown
Contributor

This fixes an issue where deleting a DataDoc in a non-default environment causes the UI to jump to the default environment instead of remaining in the current environment. The issue seems to be related to QB reloading after attempting to navigate to '{currentEnv.name}/datadoc' after deleting a datadoc. The change included in this PR avoids the reload while also refreshing the page to be able to see that the datadoc was deleted.

@czgu czgu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the issue is we are redirecting to root when deleting doc instead redirecting to env:

<Route path="/:env/datadoc/" exact={true}>
            <Redirect to="/" />
        </Route>

just leaving it as a note here. No change needed.

Thanks for fixing this bug!

@czgu
czgu merged commit 07a8b62 into pinterest:master Jan 31, 2023
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
Co-authored-by: Lily Li <lli6@expediagroup.com>
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
Co-authored-by: Lily Li <lli6@expediagroup.com>
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