Skip to content

remove the unused PUT /cms/settings endpoint (AI-Assisted) - #67

Open
bh0fer wants to merge 2 commits into
mainfrom
refactor/remove-cms-settings-update
Open

bh0fer wants to merge 2 commits into
mainfrom
refactor/remove-cms-settings-update

Conversation

@bh0fer

@bh0fer bh0fer commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

What changes

  • Removes PUT /cms/settings with its controller (update) and model method (CmsSettings.updateModel). The /cms permission now only allows GET.
  • Drops the columns active_branch and active_path from cms_settings (migration 20261112185629_remove_cms_settings_active_location). Only the removed endpoint wrote them.
  • Loosens engines.node from 24.16.x || 24.18.x || 24.21.x to ^24.16.0. Yarn refused to run with the devcontainer's Node 24.22.1. The range stays on Node 24, so Dokku won't pick a newer major version on deploy.

GET /cms/settings stays: the teaching-dev cms (CmsStore.loadSettings) uses it to load and refresh the GitHub token.

Related: GBSL-Informatik/teaching-dev#360, where the cms keeps its active branch and path in the client.

Validation

  • tsc --noEmit passes, Prettier is clean.
  • The migration was generated with prisma migrate diff and applied in the devcontainer with prisma migrate deploy. prisma migrate status reports the schema as up to date, and \d cms_settings no longer lists the two columns.
  • yarn prisma migrate status now runs in the devcontainer (Node 24.22.1).

Deploy note

The migration drops data (the stored active branch and path). It runs on release through npx prisma migrate deploy in the Procfile.

🤖 Generated with Claude Code

lebalz and others added 2 commits November 12, 2026 19:59
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The active branch and path of the cms are no longer stored in the api, so the
columns are dropped as well. GET /cms/settings stays: it loads and refreshes
the github token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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