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

ensure all timeout -> hook #2718

Merged
merged 1 commit into from
Oct 8, 2024
Merged

ensure all timeout -> hook #2718

merged 1 commit into from
Oct 8, 2024

Conversation

pablonyx
Copy link
Contributor

@pablonyx pablonyx commented Oct 7, 2024

Description

[Provide a brief description of the changes in this PR]

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Accepted Risk

[Any know risks or failure modes to point out to reviewers]

Related Issue(s)

[If applicable, link to the issue(s) this PR addresses]

Checklist:

  • All of the automated tests pass
  • All PR comments are addressed and marked resolved
  • If there are migrations, they have been rebased to latest main
  • If there are new dependencies, they are added to the requirements
  • If there are new environment variables, they are added to all of the deployment methods
  • If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
  • Docker images build and basic functionalities work
  • Author has done a final read through of the PR right before merge

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 0:28am

@pablonyx pablonyx marked this pull request as ready for review October 7, 2024 23:37
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR simplifies the connector deletion process and improves user feedback in the admin interface of Danswer.

  • Removed success popup and timeout after connector deletion in /web/src/app/admin/connector/[ccPairId]/page.tsx
  • Added immediate redirect to indexing status page with query parameter for deletion success
  • Updated /web/src/app/admin/indexing/status/page.tsx to handle new query parameter and display success message
  • Moved usePopupFromQuery hook to top-level Status component for better organization

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

router,
finishConnectorDeletion,
]);
}, [isLoading, ccPair, error, hasLoadedOnce]);
Copy link

Choose a reason for hiding this comment

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

logic: finishConnectorDeletion is not in the dependency array, which may cause issues with the useEffect hook

@rkuo-danswer rkuo-danswer added this pull request to the merge queue Oct 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 8, 2024
@rkuo-danswer rkuo-danswer added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit a0124e4 Oct 8, 2024
7 checks passed
@pablonyx pablonyx deleted the timeout branch October 17, 2024 23:14
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