Skip to content

update_office_hours and update_sla save through the settings registry - #12

Merged
TobiasDuelli merged 2 commits into
mainfrom
dc03-ap10-mcp-registry
Nov 25, 2026
Merged

TobiasDuelli merged 2 commits into
mainfrom
dc03-ap10-mcp-registry

Conversation

@TobiasDuelli

Copy link
Copy Markdown
Contributor

update_office_hours and update_sla now save through the settings registry (PUT /settings), the path update_settings already takes. They no longer use PUT /projects.

  • update_office_hours sends flowConfig.openingTimes, timezone and alwaysOnline as single changes.
  • update_sla sends slaOptions.enabled and slaOptions.defaultSla instead of the whole slaOptions object it read a moment earlier. A change to other slaOptions keys made between that read and the write is no longer reverted.
  • The stored deadline for the result is read through GET /settings.
  • Inputs and results are unchanged. What the registry refuses, or holds for a confirmation, comes back as an error.

Behaviour difference

The registry applies the dashboard's permissions. A Manager who could change office hours or the SLA through this tool before is now refused, like in the dashboard.

Tests

The test commit comes first and failed before the change. Of the 17 compared cases, 14 are identical:

  • S6 is the fix for the lost slaOptions changes.
  • R3 and R4 are the Manager refusals.

Part of the project legacy-field clean-up (GleapSDK/Server, branch feat-dc03-altlasten). This change works without it.

🤖 Generated with Claude Code

TobiasDuelli and others added 2 commits November 24, 2026 17:28
…ttings registry

Fails today: both tools write PUT /projects, update_sla reads
GET /projects/current and sends the whole slaOptions object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ttings registry

Both tools now write PUT /settings, the path update_settings takes, instead
of PUT /projects: update_office_hours sends flowConfig.openingTimes,
timezone and alwaysOnline as single changes; update_sla sends
slaOptions.enabled and slaOptions.defaultSla instead of the whole
slaOptions object it read a moment earlier, so it no longer reverts
slaOptions changes made between that read and its write. The stored
deadline for the result is read through GET /settings. Inputs and results
are unchanged; what the registry refuses or holds for a yes is an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TobiasDuelli
TobiasDuelli marked this pull request as ready for review November 25, 2026 12:28
@TobiasDuelli
TobiasDuelli merged commit 46970f2 into main Nov 25, 2026
2 checks passed
@TobiasDuelli
TobiasDuelli deleted the dc03-ap10-mcp-registry branch November 25, 2026 12:58
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