Skip to content

RHINENG-25944: ensure correct encoding of tag filters#1641

Open
dominikvagner wants to merge 2 commits into
RedHatInsights:masterfrom
dominikvagner:tags-filter-fixes
Open

RHINENG-25944: ensure correct encoding of tag filters#1641
dominikvagner wants to merge 2 commits into
RedHatInsights:masterfrom
dominikvagner:tags-filter-fixes

Conversation

@dominikvagner
Copy link
Copy Markdown
Collaborator

Summary

This makes sure the global tag filters are correctly URI encoded, only a
single encode pass. Previously they could be double encoded which made
the API always return no systems.

Associated Jira ticket: #RHINENG-25944

Also includes a QOL fix for local development, that sets the maxWorkers
in the Jest config to prevent accidental computer lock-ups/freezes when running
tests, because the default is using the maximum of available resources.

Testing steps

Test out filtering with both the "local" tag filters (in the table toolbar) and with the global filters at the top.
Both of them should now work.

@dominikvagner dominikvagner requested a review from a team as a code owner May 27, 2026 07:59
@dominikvagner dominikvagner changed the title RHINENG-25944: set maxWorkers for jest to prevent freezes RHINENG-25944: ensure correct encoding of tag filters May 27, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 27, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.57%. Comparing base (6480ecc) to head (48e84cc).

Files with missing lines Patch % Lines
src/Utilities/Helpers.js 83.33% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1641      +/-   ##
==========================================
- Coverage   77.58%   77.57%   -0.01%     
==========================================
  Files         103      103              
  Lines        3266     3278      +12     
  Branches      728      730       +2     
==========================================
+ Hits         2534     2543       +9     
- Misses        655      658       +3     
  Partials       77       77              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@TenSt TenSt left a comment

Choose a reason for hiding this comment

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

lgtm

@TenSt TenSt self-assigned this May 27, 2026
This sets the maxWorkers in the Jest config to prevent accidental
computer lock-ups/freezes when running tests, because the default is
using the maximum of available resources.
This makes sure the global tag filters are correctly URI encoded, only a
single encode pass. Previously they could be double encoded which made
the API always return no systems.
@xbhouse
Copy link
Copy Markdown
Collaborator

xbhouse commented Jun 4, 2026

FYI the "Advisories Tests › Create a new remediation plan" UI test will likely fail until culled systems can be deleted in patch again. this PR should fix that 🤞

Comment thread jest.config.js
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