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: support for a general validation message in query editor #1156

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

suryabhaskarkarri
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the title needs formatting PR title must have type (ex. fix:) label Feb 9, 2023
@suryabhaskarkarri suryabhaskarkarri changed the title support for a general validation message in query editor feat: support for a general validation message in query editor Feb 9, 2023
@github-actions github-actions bot removed the title needs formatting PR title must have type (ex. fix:) label Feb 9, 2023
@suryabhaskarkarri suryabhaskarkarri force-pushed the query-validation-type-change branch 3 times, most recently from 3308a0f to e920af5 Compare February 9, 2023 22:52
@suryabhaskarkarri
Copy link
Contributor Author

UI screenshots on how the message would look like

Screenshot 2023-02-09 at 11 30 50 AM
Screenshot 2023-02-09 at 11 38 13 AM

@@ -15,18 +20,21 @@ class QueryValidationSeverity(Enum):
class QueryValidationResult(object):
def __init__(
self,
obj_type: QueryValidationResultObjectType,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you make this optional and default to QueryValidationResultObjectType.LINT? this makes sure other plugin still works as is

@czgu
Copy link
Collaborator

czgu commented Feb 10, 2023

@suryabhaskarkarri @jczhong84 what is your thought of calling the types LOCAL and GLOBAL instead of LINT and GENERAL?

@suryabhaskarkarri
Copy link
Contributor Author

suryabhaskarkarri commented Feb 10, 2023

@czgu I feel LINT is more meaningful & understandable.

@czgu czgu merged commit f3cff53 into master Feb 10, 2023
@czgu czgu deleted the query-validation-type-change branch February 10, 2023 02:47
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
…rest#1156)

* feat: support for general message in query validation plugin

* addressed review comments
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
…rest#1156)

* feat: support for general message in query validation plugin

* addressed review comments
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.

3 participants