Skip to content

fix(database): adapt MySQL user update to @mittwald/api-client 4.420 - #2020

Merged
martin-helmich merged 1 commit into
masterfrom
worktree-fix-mysql-user-update-api-420
Jul 21, 2026
Merged

martin-helmich merged 1 commit into
masterfrom
worktree-fix-mysql-user-update-api-420

Conversation

@martin-helmich

Copy link
Copy Markdown
Member

Fixes the CI failure on #2017 (Dependabot bump of @mittwald/api-client 4.416.0 → 4.420.0).

Cause

@mittwald/api-client 4.417.0 removed the dedicated updateMysqlUserPassword endpoint and folded password into the updateMysqlUser payload. This broke src/commands/database/mysql/user/update.tsx with two TS errors, which failed Compile TypeScript, Assert README.md is up-to-date and Build and run docker image:

  • TS2741: Required<MyQSLUserUpdateData> now demands the new password property
  • TS2339: updateMysqlUserPassword no longer exists on the database client

Fix

  • Send the password as part of the single updateMysqlUser call instead of a separate password step
  • Use NonNullable<…> rather than Required<…> for the payload type, so optional fields stay optional
  • Include password in the "did anything change?" check so --password alone still triggers an update
  • Bumps @mittwald/api-client to 4.420.0 (semver range in package.json left untouched)

Supersedes #2017.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U8kutcwk9dYUeEDov1hY2B

The dedicated updateMysqlUserPassword endpoint was removed in
@mittwald/api-client 4.417.0; the password is now part of the
updateMysqlUser payload. Set it there instead, and stop requiring all
payload fields (password is optional).

Also bumps @mittwald/api-client to 4.420.0, which is what surfaced the
breakage in #2017.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U8kutcwk9dYUeEDov1hY2B
@martin-helmich
martin-helmich marked this pull request as ready for review July 21, 2026 09:23
@martin-helmich
martin-helmich merged commit d1980b9 into master Jul 21, 2026
11 of 12 checks passed
@martin-helmich
martin-helmich deleted the worktree-fix-mysql-user-update-api-420 branch July 21, 2026 09:23
mittwald-machine added a commit that referenced this pull request Jul 21, 2026
# [1.21.0](v1.20.3...v1.21.0) (2026-07-21)

### Bug Fixes

* **database:** adapt MySQL user update to @mittwald/api-client 4.420 ([#2020](#2020)) ([d1980b9](d1980b9)), closes [#2017](#2017)

### Features

* **app:** add commands to link, unlink and replace an app's database ([#1971](#1971)) ([20bbbcd](20bbbcd)), closes [#1969](#1969)
* **database:** add "database mysql upgrade" command ([#2005](#2005)) ([1265923](1265923))
* **deploy:** build and push early exit for experimental deploy ([#2021](#2021)) ([225c8e0](225c8e0)), closes [#1990](#1990)
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.

1 participant