Skip to content

fix(ui): fix for users with a . in their name are unable to edit instance name (enterprise) - #446

Merged
glasstiger merged 2 commits into
mainfrom
quotes_around_username
Jun 26, 2025
Merged

glasstiger merged 2 commits into
mainfrom
quotes_around_username

Conversation

@glasstiger

Copy link
Copy Markdown
Contributor

The web console queries the user's permissions to determine if they should be able to edit instance name/type/desc or not.
This is done by executing show permissions username.
However, we should be executing show permissions 'username' instead, as the former query fails if the username contains a dot (.), such as john.doe.

The PR also fixes issues with tests.

@glasstiger glasstiger changed the title fix(ui): fix for users with . in their name are unable to edit instance name (enterprise) fix(ui): fix for users with a . in their name are unable to edit instance name (enterprise) Jun 25, 2025
emrberk
emrberk previously approved these changes Jun 25, 2025
@glasstiger
glasstiger merged commit b2bdec7 into main Jun 26, 2025
@glasstiger
glasstiger deleted the quotes_around_username branch June 26, 2025 15:16
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
…stance name (enterprise) (questdb#446)

* fix(ui): fix for users with '.' in their name are unable to edit instance name (enterprise)

* rework notification data hooks
emrberk added a commit that referenced this pull request Nov 9, 2026
…sions

The Enterprise topbar spec dropped the 'john.doe' user that guarded #446,
so a regression in SHOW PERMISSIONS quoting would pass every test. Use a
dotted generated name again, and add a toolbar component test that runs
in public CI.
glasstiger pushed a commit that referenced this pull request Nov 9, 2026
* test: use API authentication and fixtures in e2e suites

* test: preserve preview proxy URLs for context runs

* test: seed editor fixtures and preserve interaction typing

* test: wait for schema readiness and drawer focus

* test: seed saved chats for AI assistant setup

* ci: cache compiled QuestDB runtime archive

* ci: remove commas from QuestDB cache keys

* remove force dark theme, update submodule

* test: avoid startup race in forced SSO sign-in

* chore: upgrade Cypress to 16 and adapt e2e tests

* test: avoid editor typing in grid tooltip setup

* Refactor test coverage and separate Vitest from E2E CI

* chore: allowlist moved OIDC test token fingerprints

* Fix E2E races and reduce CI runner overhead

* test(e2e): wait for the editor layout before clicking into it

With the Cypress command log disabled, runLine could click the editor
before Allotment sized its panes, so the click missed Monaco and cy.type()
hit a span. typeQuery now waits until the editor centre lands in its text
area and its box is stable.

* test: restore coverage lost in the E2E migration

- unit: query keys with @, comment-aware glyph/decoration placement,
  appendQuery semicolons after comment-only buffers
- component/integration: schema tree icon tooltip metadata, wizard
  permission choice persisted
- e2e: exact date/JIT error markers with a real validation step, dense
  drawer-exit click sweep, query activity responsiveness bound with auto
  refresh, metrics tab via toolbar button, worker regex error, remembered
  SSO user after admin session

* test(e2e): use Cypress 16 expose for the OIDC state override

Cypress 16 rejects test-level env overrides, which failed the Enterprise
OIDC spec in its before-all hook and skipped the rest of the suite.

* test(e2e): wait for Monaco before setting editor text

The Enterprise OIDC journey ran SQL right after the token exchange, before
the console mounted Monaco, so typeQueryDirectly read an undefined editor.
Wait for the editor in that step, and make typeQueryDirectly retry until
Monaco has one.

* chore: update QuestDB submodule to latest master

* chore: update browser test script and review skill for the test/ layout

* chore: ignore OIDC fixture tokens by path so the main Gitleaks scan passes after squash-merge

* fix: reopen the latest AI chat when the chat opens before saved chats load

* test: restore the dotted user name guard for instance settings permissions

The Enterprise topbar spec dropped the 'john.doe' user that guarded #446,
so a regression in SHOW PERMISSIONS quoting would pass every test. Use a
dotted generated name again, and add a toolbar component test that runs
in public CI.
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