Skip to content

feat: support for a general validation message in query editor - #1156

Merged
czgu merged 2 commits into
masterfrom
query-validation-type-change
Feb 10, 2023
Merged

czgu merged 2 commits into
masterfrom
query-validation-type-change

Conversation

@suryabhaskarkarri

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator 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

class QueryValidationResult(object):
def __init__(
self,
obj_type: QueryValidationResultObjectType,

Copy link
Copy Markdown
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

@suryabhaskarkarri
suryabhaskarkarri force-pushed the query-validation-type-change branch from e920af5 to b84d7b4 Compare February 10, 2023 01:09
@czgu

czgu commented Feb 10, 2023

Copy link
Copy Markdown
Collaborator

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

@suryabhaskarkarri
suryabhaskarkarri force-pushed the query-validation-type-change branch from b84d7b4 to 3c721f6 Compare February 10, 2023 02:41
@suryabhaskarkarri

suryabhaskarkarri commented Feb 10, 2023 •

Copy link
Copy Markdown
Collaborator Author

@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