Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 6, 2025

Adds "Add read-only replicas..." action to row table context menus that fills the query editor with an ALTER TABLE template for configuring READ_REPLICAS_SETTINGS.

Changes

  • Template (schemaQueryTemplates.ts): Added manageReadReplicasTemplate generating ALTER TABLE with READ_REPLICAS_SETTINGS='PER_AZ:1'
  • Actions (schemaActions.tsx): Added the new action to alterTableGroupItem, making it available for both row tables and column tables
  • i18n (en.json): Added actions.manageReadReplicas key

Template Output

ALTER TABLE `<path-to-table>` SET 
(
   READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone. docs: https://clck.ru/3Qh8iQ
)

Both row tables and column tables receive the new menu item under "Alter table..." submenu.

Original prompt

This section details on the original issue you should resolve

<issue_title>query templates: add template to manage replicas</issue_title>
<issue_description>For every column table add new action under alter table item with name "Add read-only replicas"

Activating this menu item must lead to filling the editor with following query text

ALTER TABLE `<path-to-table>` SET 
(
   READ_REPLICAS_SETTINGS = 'PER_AZ:1'-- Enable read replicas for stale read, launch one replica in every availability zone. docs: https://clck.ru/3Qh8iQ
)
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 6, 2025 10:03
Co-authored-by: antonkovalenko <692649+antonkovalenko@users.noreply.github.com>
Co-authored-by: antonkovalenko <692649+antonkovalenko@users.noreply.github.com>
Copilot AI changed the title [WIP] Add template to manage read-only replicas in query feat: add read replicas template for column tables Dec 6, 2025
Copilot AI requested a review from antonkovalenko December 6, 2025 10:07
Copilot finished work on behalf of antonkovalenko December 6, 2025 10:07
Copy link
Member

@antonkovalenko antonkovalenko left a comment

Choose a reason for hiding this comment

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

Initial task had an error - it was requested to add new template for column table.
Though template is required for row tables.
Please revisit the task description and change PR accordingly

Co-authored-by: antonkovalenko <692649+antonkovalenko@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 6, 2025

Initial task had an error - it was requested to add new template for column table.
Though template is required for row tables.
Please revisit the task description and change PR accordingly

Fixed in 7496368. The "Add read-only replicas..." action now appears for both row tables and column tables under the "Alter table..." submenu, using a single shared alterTableGroupItem configuration.

Copilot AI changed the title feat: add read replicas template for column tables feat: add read replicas template for row tables Dec 6, 2025
Copilot AI requested a review from antonkovalenko December 6, 2025 16:15
Copilot finished work on behalf of antonkovalenko December 6, 2025 16:15
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.

query templates: add template to manage replicas

2 participants