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

Add new text pattern parameter #7025

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

ezraodio1
Copy link
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

This PR adds in a new "Text Pattern" parameter input type. This input type allows a creator to specify a regex pattern, and the query will only run if the input matches the regex pattern. Since this parameter input type is not "Text," users can share dashboards that have this parameter input type, therefore addressing (#6785).

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

(#6785)

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Screen.Recording.2024-06-19.at.3.51.08.PM.mov

@ezraodio1 ezraodio1 force-pushed the text-regex-option branch from 07b2971 to 142b872 Compare July 24, 2024 14:18
Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

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

Demonstrated this functionality to some colleges, more more issues found

@eradman eradman merged commit a69f7fb into getredash:master Jul 24, 2024
11 checks passed
@justinclift
Copy link
Member

more more

"No more"?

@eradman
Copy link
Collaborator

eradman commented Jul 24, 2024

"No more"?

Ah yes, all seems to work well. The previous revision received two 👍 so I also take that as a vote of confidence for the design.

@justinclift
Copy link
Member

Cool, all good. 😄

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.

4 participants