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

Update to formatSimpleTemplate to allow input in any case for Snowflake users #5736

Closed

Conversation

matthew-smith-miller
Copy link

@matthew-smith-miller matthew-smith-miller commented Apr 15, 2022

What type of PR is this?

  • Bug Fix

Description

In the chart builder, the user is instructed that they may reference any column value with {{ column_name }} syntax:

However, since our company uses Redash on top of Snowflake the input must be capitalized, or it will not work:

Doesn't work:

Works:

This update to the formatSimpleTemplate() attempts to retrieve a column value with prop as before, and as a backup tries with propUpper, a capitalized version. This should fix the issue for any other users who use Snowflake.

How is this tested?

  • N/A

Setting prop toUpperCase() to account for variability in user input
Adding support for caps and non-caps
@matthew-smith-miller matthew-smith-miller changed the title Bug fix on formatSimpleTemplate to allow input in any case Update to formatSimpleTemplate to allow input in any case for Snowflake users Apr 15, 2022
@susodapop
Copy link
Contributor

Thanks for this contribution! Just checking ahead of time: would the change in #5657 cover this use case?

@susodapop susodapop added the Team Review Meets PR criteria, ready for full review label Apr 28, 2022
@matthew-smith-miller
Copy link
Author

@susodapop Sorry for delay. I'm not sure -- need to look into it a bit more.

@susodapop susodapop added Needs More Information Seen by a team member, not ready for a full review and removed Team Review Meets PR criteria, ready for full review labels Jul 2, 2022
@susodapop
Copy link
Contributor

No worries. When you have a chance please examine whether #5657 can resolve your need. Else we can reopen and do a full review.

@susodapop susodapop closed this Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Information Seen by a team member, not ready for a full review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants