Skip to content

Conversation

@paigewilliams
Copy link
Contributor

asana task

In doing some testing in demo.itkdb.org, I noticed that the export_status cookie was sticking around and leaving export requests hanging. This clears the cookie after the response, and also sets a 1 minute timeout for the request. We can adjust this number if 1 minute seems too short.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses an issue where the export_status cookie persisted after export operations, causing hanging export requests. The changes ensure proper cookie cleanup and add a timeout mechanism for export operations.

  • Adds explicit path=/ parameter to all export_status cookie operations for consistent cookie handling
  • Implements a client-side cookie clearing function that runs after every export operation completes
  • Introduces a 1-minute timeout for export operations with user-friendly error messaging

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
TEKDB/TEKDB/views.py Adds explicit path=/ parameter to export_status cookie setting in both success and error cases
TEKDB/TEKDB/static/admin/js/admin_index.js Implements cookie cleanup function, adds 1-minute timeout with polling logic refactoring, and improves error handling consolidation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@paigewilliams paigewilliams merged commit f4c5184 into main Dec 9, 2025
2 checks passed
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