Skip to content

[OGUI-1920] Encode filter query in route updates - #3602

Draft
isaachilly wants to merge 8 commits into
devfrom
bug/ILG/OGUI-1920/Fix-encoding-order-of-filter-parameter-q
Draft

[OGUI-1920] Encode filter query in route updates#3602
isaachilly wants to merge 8 commits into
devfrom
bug/ILG/OGUI-1920/Fix-encoding-order-of-filter-parameter-q

Conversation

@isaachilly

Copy link
Copy Markdown
Collaborator

Centralised URL encoding for filters.

Removed encoding in LogFilter so filter values are no longer pre-encoded before serialisation; keeping query generation in one place.

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

@isaachilly isaachilly self-assigned this Sep 1, 2026
@isaachilly
isaachilly force-pushed the bug/ILG/OGUI-1920/Fix-encoding-order-of-filter-parameter-q branch from b422aad to 2270100 Compare September 8, 2026 07:40
Centralised URL encoding for filters.

Removed encoding in `LogFilter` so filter values are no longer pre-encoded before serialisation; keeping query generation in one place.
Update InfoLogger filter action tests to match fully encoded `q` parameter.
Adds round-trip tests in a separate mocha file.

Removes old encoding tests.
Adds a `queryString` getter on `LogFilter` that uses shared `buildUrl` utilities, and updates `Model` to rely on that property when syncing route state.
This no longer has its corresponding encoder so it's pointless as the URL at this point will contain no `'\n` strings, they will all be percent-encoded.
@isaachilly
isaachilly force-pushed the bug/ILG/OGUI-1920/Fix-encoding-order-of-filter-parameter-q branch from b6e3ad3 to 59052c7 Compare September 9, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant