Skip to content

Rename i18n key: what-should-ask-collate-remember → what-should-ai-remember - #32140

Merged
Rohit0301 merged 6 commits into
mainfrom
update-ai-remember-i18n-key
Aug 27, 2026
Merged

Rohit0301 merged 6 commits into
mainfrom
update-ai-remember-i18n-key

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

I updated the i18n key what-should-ask-collate-remember (value: "What should AskCollate remember?") to what-should-ai-remember (value: "What should AI remember?") because the old key referenced the deprecated product name "AskCollate". The key was also in the wrong label namespace — it has been moved to the message namespace where t('message.what-should-ai-remember') in CreateMemoryModal.component.tsx expects it.

Screenshot 2026-08-27 at 11 12 47 AM Screenshot 2026-08-27 at 11 12 58 AM

Type of change:

  • Improvement

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Memory modal placeholder and tooltip now display "What should AI remember?" instead of "What should AskCollate remember?"

Unit tests

  • Not applicable (pure i18n key rename, no logic change).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no structural UI changes).

Manual testing performed

Verified the key is present in the message namespace of all 20 locale files and absent from the label namespace.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Greptile Summary

The PR replaces the deprecated AskCollate memory-prompt translation with “What should AI remember?” and moves it into the message namespace.

  • Routes the modal placeholder and tooltip through a ContextCenter customization method.
  • Adds the renamed key across all supported locales and removes the obsolete label key.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx Uses the ContextCenter customization method to resolve the translated memory prompt in both UI locations.
openmetadata-ui/src/main/resources/ui/src/utils/ContextCenterClassBase.ts Adds the default extension method returning the new message-namespace translation key.
openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json Replaces the deprecated AskCollate prompt with the AI prompt under the expected message namespace.
openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json Applies the translated key rename and namespace cleanup consistently with the other locale files.

Reviews (5): Last reviewed commit: "lint fix" | Re-trigger Greptile

…ai-remember

Replace the old product-branded key with a generic AI key across the component and all 20 locale files, and move the key from the label namespace to the message namespace where the component expects it.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Rohit0301 Rohit0301 self-assigned this Aug 27, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Aug 27, 2026
Rohit0301 and others added 3 commits August 27, 2026 11:17
Restore natsConnection.json to match origin/main exactly. The formatting
changes (multiline array expansion) were an unintended editor artifact
bundled into the previous commit; this reverts them to keep the PR
scoped to the i18n key rename only.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 6 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 6 warning(s) across 1 changed file(s).

Count Rule
3 sonarjs/cyclomatic-complexity
1 sonarjs/cognitive-complexity
1 sonarjs/expression-complexity
1 sonarjs/no-nested-functions
All findings
Location Rule Message
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:255:4 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 36 which is greater than 10 authorized.","cost":26,"secondaryLocations":[{"line":255,"column":3,"endLine":255,"endColum
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:329:16 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 11 which is greater than 10 authorized.","cost":1,"secondaryLocations":[{"line":329,"column":15,"endLine":329,"endColum
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:422:57 sonarjs/cognitive-complexity Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:422:57 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 18 which is greater than 10 authorized.","cost":8,"secondaryLocations":[{"line":422,"column":56,"endLine":422,"endColum
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:706:22 sonarjs/expression-complexity Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).
🟡 src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx:864:47 sonarjs/no-nested-functions Refactor this code to not nest functions more than 4 levels deep.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.16% (80198/119396) 51.65% (48803/94478) 52.68% (14722/27944)

chirag-madlani
chirag-madlani previously approved these changes Aug 27, 2026
@gitar-bot

gitar-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Renames the deprecated what-should-ask-collate-remember i18n key to what-should-ai-remember across all locale bundles and moves it to the message namespace. Accidental reformatting in natsConnection.json was also reverted during the review. No issues found.

✅ 1 resolved
✅ Quality: Unrelated natsConnection.json reformatting diverges from spec

📄 openmetadata-ui/src/main/resources/ui/src/jsons/connectionSchemas/connections/messaging/natsConnection.json:11-13 📄 openmetadata-ui/src/main/resources/ui/src/jsons/connectionSchemas/connections/messaging/natsConnection.json:270-274
This PR is a pure i18n key rename, but it also bundles formatting-only changes to natsConnection.json: short arrays (e.g. "enum": ["Nats"], "required": [...], "accept": [...]) were expanded to multiline and the trailing newline at end of file was removed. This diverges from the canonical schema in openmetadata-spec (single-line arrays, trailing newline present) and appears to be an accidental editor/formatter artifact unrelated to the change. Revert natsConnection.json to keep the PR scoped to the i18n rename and preserve alignment with the generated spec format (including the trailing newline).

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Rohit0301
Rohit0301 enabled auto-merge August 27, 2026 06:32
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit c9b187f17773355ab9bc93681bd4a26b46310459 in Playwright run 33046067371, attempt 1.

✅ 218 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 47m 21s

⏱️ Max setup 2m 44s · max shard execution 10m 26s · max shard-job elapsed before upload 13m 19s · reporting 3s

🌐 143.08 requests/attempt · 2.02 app boots/UI scenario · 11.50% common-shard skew

Optimization targets still in progress:

  • Application boot ratio was 2.02 per UI scenario (502 boots / 248 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
🟡 Shard chromium-01 93 0 1 0 0 0
✅ Shard chromium-02 125 0 0 0 0 0
🟡 1 flaky test(s) (passed on retry)
  • Features/ContextCenterArticles.spec.ts › Left hierarchy pagination and expand collapse actions work (shard chromium-01, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@Rohit0301
Rohit0301 added this pull request to the merge queue Aug 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-08-27T11:16:36Z)

Blocked the queue: playwright-summary

@Rohit0301
Rohit0301 added this pull request to the merge queue Aug 27, 2026
Merged via the queue into main with commit 372f098 Aug 27, 2026
84 of 86 checks passed
@Rohit0301
Rohit0301 deleted the update-ai-remember-i18n-key branch August 27, 2026 17:45

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants