Conversation
Contributor
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/utils/redisLoader.js`:
- Around line 84-87: The 120-second reservation must remain valid while Jira
creation is pending. In src/utils/redisLoader.js lines 84-87, add a
token-checked lease renewal operation; in
src/controllers/CheckAnswersController.js lines 50-70, start renewing after
reservation acquisition and stop renewal in finally. Add a test that keeps Jira
creation pending beyond 120 seconds and verifies a duplicate POST remains
blocked.
🪄 Autofix
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2386ee6a-47a8-4621-ad0d-f68354d41080
📒 Files selected for processing (6)
src/controllers/CheckAnswersController.jssrc/utils/datasetteQueries/endpointAlreadyCollected.jssrc/utils/redisLoader.jstest/unit/checkAnswersController.test.jstest/unit/redisLoader.test.jstest/unit/utils/endpointAlreadyCollected.test.js
Contributor
Fixes Applied SuccessfullyFixed 4 file(s) based on 1 unresolved review comment. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 4 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
tombrooks248
approved these changes
Aug 10, 2026
gibahjoe
deleted the
1240-in-cp-the-duplicate-endpoint-check-should-still-run-for-submitted-endpoints-even-if-they-have-not-yet-been-added
branch
August 10, 2026 14:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Description
Prevents duplicate endpoint submissions while a request is being created in Jira or waiting to appear in Datasette.
Related Tickets & Documents
QA Instructions, Screenshots, Recordings
/check/confirmationand sees the message that data is already being collected.No UI screenshots included; this reuses the existing confirmation screen.
Added/updated tests?
Added/updated unit tests for Redis reservations, successful and failed submissions, and the duplicate redirect.
Test status: unit suite passed (770 passed, 3 skipped). Integration tests require Playwright browsers to be installed locally.
[optional] Are there any post deployment tasks we need to perform?
None.
[optional] Are there any dependencies on other PRs or Work?
None.
Summary by CodeRabbit
New Features
Bug Fixes
Tests