Skip to content

Add aircraft through the assistant; fix Remove aircraft on production - #61

Merged
dannysusername merged 1 commit into
mainfrom
newfeature
Nov 21, 2026
Merged

dannysusername merged 1 commit into
mainfrom
newfeature

Conversation

@dannysusername

Copy link
Copy Markdown
Owner

Summary

  • Remove aircraft fix: DELETE /aircraft/{id} returned 500 on Heroku only. open-in-view=false there leaves the controller's User detached, and AircraftService.remove touched its lazy aircraft list (LazyInitializationException). remove now reloads the user inside its transaction. Reproduced on production before the fix.
  • Remove dialog: the button is always clickable; a wrong entry shows "Type K to confirm" instead of doing nothing. Enter submits.
  • New MCP tool add_aircraft: dashboard rules (tail number unique per account, 25 max), import scope, doesn't change the dashboard's last-viewed aircraft, ALREADY_EXISTS returns the existing id.
  • recordsTailNumber on propose_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.
  • Browser tests now run with 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

- 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>
@dannysusername
dannysusername merged commit 4c62e6a into main Nov 21, 2026
4 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.

1 participant