Skip to content

chore: delete the unused Userback widget configuration rows - #963

Merged
renemadsen merged 1 commit into
masterfrom
chore/962-delete-userback-config-rows
Sep 30, 2026
Merged

renemadsen merged 1 commit into
masterfrom
chore/962-delete-userback-config-rows

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Closes #962

The Userback widget is being removed from the product (microting/eform-angular-frontend#8097).

  • ConfigurationSeed: stop seeding ApplicationSettings:IsUserbackWidgetEnabled and ApplicationSettings:UserbackToken.
  • New migration 20260930102540_RemoveUserbackWidgetSettings: Up deletes both rows; Down restores them with false and an empty token.
  • Snapshot/Designer lose exactly those two entries (ProductVersion follows the EF package, 10.0.12).

Hand-trimmed scaffold: dotnet ef migrations add also emitted InsertData for the CMS menu rows (MenuTemplate/MenuItem 13 + translations). They are in HasData but deliberately absent from the snapshot because 20260319062110_AddCmsMenuItem inserts them with idempotent raw SQL; shipping the inserts would hit duplicate keys on existing databases. Same trim as in the previous migrations (62cfe54).

Release order: the host must stop reading/writing these keys before or together with the package bump — that is microting/eform-angular-frontend#8097.

Verified locally: solution builds (0 errors); new tests pass (seed has no Userback keys; migrate down → rows back with empty token → migrate up → rows gone); migrations apply on a fresh MariaDB; Up is a no-op when the rows are already missing. Full suite: 90 passed, 2 failed — both OAuthLoginSupportTests, which need a MariaDB on localhost:3306 that was not running locally.
Note: the old token value remains in historical migrations/Designer files and git history; if it is still a live credential it needs revoking on the Userback side.

🤖 Generated with Claude Code

The Userback widget is removed from eform-angular-frontend. Stop seeding
ApplicationSettings:IsUserbackWidgetEnabled and
ApplicationSettings:UserbackToken and delete the rows from existing
databases with a new migration. Down restores the rows with an empty
token.

The scaffolded migration also contained InsertData for the CMS menu
rows, which 20260319062110_AddCmsMenuItem already inserts with raw SQL;
those were trimmed out, as in the previous migrations.

closes #962

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 10:38

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.

Copilot review overview

🟢 Approval recommended

The migration, snapshot, seed changes, and focused tests consistently implement the requested removal.

Review effort: Balanced
Findings: None

What changed in this PR

Removes obsolete Userback widget configuration from seed data and existing databases.

Changes:

  • Removes both Userback settings from configuration seeds.
  • Adds a reversible migration to delete and safely restore the rows.
  • Updates migration metadata and adds coverage for seed and migration behavior.
File Description
BaseDbContextModelSnapshot.cs Removes Userback seed entries and updates EF version metadata.
20260930102540_RemoveUserbackWidgetSettings.Designer.cs Defines the migration target model.
20260930102540_RemoveUserbackWidgetSettings.cs Deletes or restores the Userback rows.
ConfigurationSeed.cs Stops seeding Userback settings.
RemoveUserbackWidgetSettingsTests.cs Tests seed removal and migration round-trip behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@renemadsen
renemadsen merged commit 8a0ac48 into master Sep 30, 2026
3 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.

Delete the unused Userback widget configuration rows

2 participants