You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(itinerary): address code review issues for SOR-11
- Use db.batch() for atomic fork operation (itinerary + steps + fork_count)
- Merge duplicate onMount into single callback, use userAuth.isLoggedIn()
- Add null guard before postWithUserToken in fork() API client
- Make fork_count required (non-optional) in Itinerary type
- Consolidate fork test migrations into shared applyMigrations helper
- Use explicit column list in steps SELECT for robustness
- Add fork_count=0 to create() Itinerary object literal
// Fetch source steps before batch to generate new IDs
207
+
// secret_settings and walica_id are intentionally excluded from forks (personal configuration)
210
208
constsourceSteps=awaitthis.db
211
-
.prepare('SELECT * FROM steps WHERE itinerary_id = ? ORDER BY start_at ASC')
209
+
.prepare('SELECT id, itinerary_id, title, start_at, end_at, location, notes, type, is_all_day FROM steps WHERE itinerary_id = ? ORDER BY start_at ASC')
0 commit comments