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

STSMACOM-771: Use escapeCqlValueAllowAsterisk instead of escapeCqlValue to avoid escaping the asterisk. #1382

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented Jul 24, 2023

Description

The asterisk has recently been escaped in escapeCqlValue stripes-util/pull/69.
The suggested solution is to create a separate escapeCqlValueAllowAsterisk function to support the asterisk.

Related PRs

stripes-util/pull/73

Issue

STSMACOM-771

@github-actions
Copy link

github-actions bot commented Jul 24, 2023

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 83f324b. ± Comparison against base commit 3ccf551.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jul 24, 2023

BigTest Unit Test Statistics

    1 files  ±0      1 suites  ±0   16s ⏱️ +3s
431 tests ±0  400 ✔️ ±0  31 💤 ±0  0 ±0 
433 runs  ±0  402 ✔️ ±0  31 💤 ±0  0 ±0 

Results for commit 83f324b. ± Comparison against base commit 3ccf551.

♻️ This comment has been updated with latest results.

@sonarcloud
Copy link

sonarcloud bot commented Jul 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@zburke
Copy link
Member

zburke commented Jul 25, 2023

I've put this on hold by moving it to "draft" while we decide how to handle the changes originally implemented folio-org/stripes-util/pull/69, but rolled back folio-org/stripes-util/pull/74.

@@ -47,7 +47,7 @@ function makeQueryFunction(findAll, queryTemplate, sortMap, filterConfig, failOn
return null;
}

const escapeFx = config.escape ? escapeCqlValue : (s) => (s);
const escapeFx = config.escape ? escapeCqlValueAllowAsterisk : (s) => (s);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please adjust the @configOrEscape comment accordingly.

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