Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add/drop table index template #1456

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

astandrik
Copy link
Contributor

@astandrik astandrik commented Oct 11, 2024

Closes #1454

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
134 129 0 5 0

Bundle Size: 🔽

Current: 78.97 MB | Main: 78.98 MB
Diff: 0.01 MB (-0.01%)

✅ Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@@ -36,6 +36,7 @@
"actions.dropTopic": "Drop topic...",
"actions.dropView": "Drop view...",
"actions.alterTable": "Alter table...",
"actions.addTableIndex": "Add index...",
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we want to add action "Drop index..." directly to index entity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added INDEX_SET

@@ -248,3 +248,11 @@ export const dropAsyncReplicationTemplate = () => {
export const alterAsyncReplicationTemplate = () => {
return `ALTER ASYNC REPLICATION \`$path\` SET (STATE=\`$state\`, FAILOVER_MODE=\`$failoverMode\`);`;
};

export const addTableIndex = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We may use function addTableIndex('$path') from src/containers/Tenant/utils/schemaQueryTemplates.ts . In most cases templates are identical.
What do you think if we create general template creators and use them if possible? This will prevent double-fixing templates.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

on a second thougth this can be done right here

@astandrik astandrik added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit d7a8e0b Oct 14, 2024
7 checks passed
@astandrik astandrik deleted the astandrik.add-create-index-template-1454 branch October 14, 2024 15: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.

add create index template
2 participants