Skip to content

refactor(timereg): stop writing per-site GpsEnabled (now global-only)#1021

Merged
renemadsen merged 1 commit into
stablefrom
fix/remove-per-site-gps-writes
Jun 24, 2026
Merged

refactor(timereg): stop writing per-site GpsEnabled (now global-only)#1021
renemadsen merged 1 commit into
stablefrom
fix/remove-per-site-gps-writes

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Part of making GPS/Snapshot global-only settings (served from TimePlanning global settings). This removes the now-pointless per-site GpsEnabled writes in the device-user flow:

  • UpdateDeviceUser existing-row update: dropped assignment.GpsEnabled = …
  • UpdateDeviceUser new-AssignedSite initializer: dropped GpsEnabled = … (kept UseOneMinuteIntervals = true)
  • removed the now-unused global GPS-setting fetch

SnapshotEnabled was never written here. UseOneMinuteIntervals (a legitimate per-site flag) is unchanged.

⚠️ Merge order: land the TimePlanning serve-path PR (serve gps/snapshot from global) first, then this — otherwise newly-created sites' gps would briefly read a stale per-site value.

🤖 Generated with Claude Code

GpsEnabled (and SnapshotEnabled) are served from the TimePlanning global
settings, so the device-user flow no longer writes a per-site GpsEnabled
on AssignedSite. Removes the writes in UpdateDeviceUser (existing-row
update + new-assignment initializer) and the now-unused global GPS-setting
fetch. UseOneMinuteIntervals (a real per-site flag) is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 24, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the BackendConfiguration plugin’s device-user update flow to align with the refactor that makes GPS (and Snapshot) settings global-only (served from TimePlanning global settings), by removing now-redundant per-site GpsEnabled writes.

Changes:

  • Removed the TimePlanningBaseSettings:GpsEnabled global-setting fetch that was only used to drive per-site writes.
  • Removed per-site AssignedSite.GpsEnabled updates for both existing assignment updates and new assignment creation.
  • Kept UseOneMinuteIntervals = true (a legitimate per-site flag) unchanged for newly created AssignedSite records.

@renemadsen renemadsen merged commit 7ec50f9 into stable Jun 24, 2026
27 checks passed
@renemadsen renemadsen deleted the fix/remove-per-site-gps-writes branch June 24, 2026 11:12
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