Repository navigation
Add aircraft through the assistant; fix Remove aircraft on production - #61
Merged
Merged
Conversation
- Remove aircraft returned a 500 on Heroku only: open-in-view=false there leaves the controller's User detached, and remove() touched its lazy aircraft list. remove() now reloads the user in its transaction. Regression test uses a detached user; browser tests now run with open-in-view=false like Heroku. - Remove dialog: the button is always clickable; wrong text says "Type K to confirm" instead of doing nothing. Enter submits. - New MCP tool add_aircraft: same rules as the dashboard (tail unique per account, 25 max), needs the import scope, doesn't move the dashboard's last-viewed aircraft, reports an existing tail with its id. - propose_status_sheet_import takes recordsTailNumber: records for a plane not on the account (or not the named aircraft) are stopped before anything is saved, even on a one-aircraft account. - Pin axios to 1.21.1. README tool table and backend notes updated. Spec: specs/012-mcp-add-aircraft Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
DELETE /aircraft/{id}returned 500 on Heroku only.open-in-view=falsethere leaves the controller'sUserdetached, andAircraftService.removetouched its lazyaircraftlist (LazyInitializationException).removenow reloads the user inside its transaction. Reproduced on production before the fix.add_aircraft: dashboard rules (tail number unique per account, 25 max), import scope, doesn't change the dashboard's last-viewed aircraft,ALREADY_EXISTSreturns the existing id.recordsTailNumberonpropose_status_sheet_import: a Status Sheet for a plane that isn't on the account (or isn't the named aircraft) is stopped before anything is saved, including on one-aircraft accounts.open-in-view=false, like Heroku. axios pinned to 1.21.1.Tests
./gradlew test: 317 passed (new:AddAircraftToolTest,RecordsTailNumberTest,McpToolListTest,AircraftRemoveDetachedUserTest)./gradlew browserTest: 100 passed (new:removeAircraftWrongTextSaysWhatToType)🤖 Generated with Claude Code