Skip to content

Rename server 'Change Password' to 'Change Server Password' (#9230) - #10035

Open
dpage wants to merge 2 commits into
pgadmin-org:masterfrom
dpage:fix-9230-change-server-password-label
Open

Rename server 'Change Password' to 'Change Server Password' (#9230)#10035
dpage wants to merge 2 commits into
pgadmin-org:masterfrom
dpage:fix-9230-change-server-password-label

Conversation

@dpage

@dpage dpage commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #9230.

The Change Password... menu option on a server node (and its dialog) is ambiguous — it changes the PostgreSQL server password, but reads as if it might change the pgAdmin login password. As discussed on the issue, this renames the menu option and dialog to Change Server Password and includes the connected username in the dialog title to make the target unmistakable.

Changes

  • server.js: menu label Change Password...Change Server Password...; dialog title → Change Server Password (<username>).
  • Added release note (9.16).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Renamed the server password action to “Change Server Password...” for improved clarity.
    • Added user-specific titles when changing a database role password.
  • Bug Fixes

    • Clarified the disabled-state message and password-change dialog wording.
    • Updated notifications to distinguish server passwords from pgAdmin login passwords.
  • Documentation

    • Updated the change-password and Object menu documentation to reflect the revised terminology and behavior.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

An error occurred during the review process. Please try again later.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 25639974-2171-4451-834f-7b9e27d866c0

📥 Commits

Reviewing files that changed from the base of the PR and between c2398d5 and 5c522be.

📒 Files selected for processing (4)
  • docs/en_US/change_password_dialog.rst
  • docs/en_US/menu_bar.rst
  • web/pgadmin/browser/server_groups/servers/static/js/server.js
  • web/pgadmin/static/js/Dialogs/index.jsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/pgadmin/browser/server_groups/servers/static/js/server.js

Included review availability: Your plan includes up to 8 reviews per rolling hour; 5 remain after this review.


Walkthrough

The server password action and related dialog titles now use “Change Server Password.” The dialog can include the database username. Documentation distinguishes the database role password from the pgAdmin login password.

Changes

Server password naming updates

Layer / File(s) Summary
Server password menu and dialog labels
web/pgadmin/browser/server_groups/servers/static/js/server.js, web/pgadmin/static/js/Dialogs/index.jsx
The server action, disabled-state message, and pgpass notification use server-specific password wording. The dialog title includes the username when available.
Server password documentation
docs/en_US/change_password_dialog.rst, docs/en_US/menu_bar.rst
The documentation uses the updated dialog and menu names. It identifies the changed password as the database role password.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 5c522

This PR only clarifies the server password action and related documentation; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The changes clarify the password action but do not implement the requested ability to disable the dialog or restrict it for shared usernames in issue #9230. Implement a disable option or restrict the dialog for non-owner users when Shared Username is configured.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary change: renaming the server password action.
Out of Scope Changes check ✅ Passed The code and documentation changes remain focused on renaming and clarifying the server password action.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dpage
dpage force-pushed the fix-9230-change-server-password-label branch 3 times, most recently from f73dd38 to 245aeb4 Compare June 9, 2026 11:37
@asheshv
asheshv requested a review from Copilot June 10, 2026 14:12

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

Clarifies pgAdmin’s server-node “Change Password…” action by renaming it to “Change Server Password…” and updating the dialog title to include the connected username, reducing confusion with pgAdmin account password changes.

Changes:

  • Renamed the server context menu label to “Change Server Password...”.
  • Updated the change-password dialog title to “Change Server Password ()” when the connected username is available.
  • Added a v9.16 release note entry for the change.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
web/pgadmin/browser/server_groups/servers/static/js/server.js Renames the menu label and updates the dialog title to include the connected username.
docs/en_US/release_notes_9_16.rst Documents the UI wording change in the v9.16 bug fixes section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +129 to 132
label: gettext('Change Server Password...'), priority: 10,
enable : 'is_connected',data: {
data_disabled: gettext('Please connect server to enable change password.'),
},

@asheshv asheshv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename is incomplete — two user-visible places still say "Change Password":

  1. web/pgadmin/static/js/Dialogs/index.jsx:208 — the pgpass-warning alert that fires right after a successful password change still has title: gettext('Change Password'). The user sees the old label immediately following the action this PR is renaming.
  2. web/pgadmin/browser/server_groups/servers/static/js/server.js:131data_disabled reads gettext('Please connect server to enable change password.'). The disabled-state tooltip on the renamed menu still says "change password".

Note: utils.js:124 and PgAdminPermissions.py:132 reference the pgAdmin login password (user menu / admin perms), so those should stay as "Change Password" — confirming they're correctly out of scope.

Catalogs (messages.pot + per-locale .po) will need regenerating before release — matches the pattern of commit 2b20beb03. Worth either folding into this PR or noting in the release notes.

@dpage
dpage force-pushed the fix-9230-change-server-password-label branch from 245aeb4 to 5c522be Compare August 17, 2026 12:01
@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

dpage and others added 2 commits August 17, 2026 15:53
…org#9230

The "Change Password" menu option and dialog on a server node was
ambiguous - it changes the PostgreSQL server password, not the pgAdmin
login password. Renamed the menu and dialog title to "Change Server
Password" and included the connected username in the dialog title to
disambiguate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pgpass warning that fires straight after a successful change was
still titled "Change Password", so the user saw the old label in the
notification immediately following the action being renamed, and the
disabled-state tooltip on the menu still read "Please connect server to
enable change password". Both now match the menu item.

The documentation needed the same treatment: the Object menu table in
menu_bar.rst still advertised "Change Password...", and the dialog's own
page was titled "Change Password Dialog" whilst describing "your
password" without saying which one. Since the whole point of pgadmin-org#9230 is
that people were confusing this with their pgAdmin login password, the
introduction now says explicitly which password it changes.

The remaining "Change Password" strings in browser/js/utils.js and
PgAdminPermissions.py refer to the pgAdmin login password and are
correctly left alone.
@dpage
dpage force-pushed the fix-9230-change-server-password-label branch from 5c522be to ef55322 Compare August 17, 2026 14:54
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.

Permission to disable Change password dialog (for PostgreSQL)

3 participants