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

chore: Add custom keywords for SQL Lab autocomplete #28153

Merged

Conversation

justinpark
Copy link
Member

SUMMARY

This commit includes the addition of sqleditor.extension.customAutocomplete to the extension registry, which allows for the utilization of custom keywords in SQL Lab autocomplete.

TESTING INSTRUCTIONS

specs

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@john-bodley john-bodley changed the title chore: Add custom keywords for SQLLab autocomplete chore: Add custom keywords for SQL Lab autocomplete Apr 22, 2024
Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @justinpark!

Comment on lines 180 to 181
docHTML?: string | undefined;
docText?: string | undefined;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
docHTML?: string | undefined;
docText?: string | undefined;
docHTML?: string;
docText?: string;

export function useKeywords(
{ queryEditorId, dbId, schema }: Params,
skip = false,
) {
const useCustomKeywords =
Copy link
Member

Choose a reason for hiding this comment

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

Can we instantiate customKeywords as an empty array that is overridden when sqleditor.extension.customAutocomplete is defined?

@justinpark justinpark merged commit cdbf8f3 into apache:master Apr 26, 2024
29 checks passed
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
jzhao62 pushed a commit to jzhao62/superset that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants