Skip to content

fix: handle incomplete regular expressions [DHIS2-19573]#1740

Open
tomzemp wants to merge 1 commit intomasterfrom
DHIS2-19573/transfer-filter
Open

fix: handle incomplete regular expressions [DHIS2-19573]#1740
tomzemp wants to merge 1 commit intomasterfrom
DHIS2-19573/transfer-filter

Conversation

@tomzemp
Copy link
Copy Markdown
Member

@tomzemp tomzemp commented Apr 28, 2026

Implements DHIS2-19573


Description

The transfer filter uses regular expressions for filtering. This is honestly bit weird, but there might be a reason for that as the token-based filter accepts regular expressions (see thread here: https://dhis2.slack.com/archives/C0BP0RABF/p1761812319940729)

While we still may want to update this logic to not use regular expressions, the update here at least fixes things so that invalid regular expressions return all options (e.g. they are treated as there is no filter). This is better than the current error, which will result in app crash.


Known issues

  • we probably should decide if we want to use regular expression filters here.

Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

We could add this to the documentation if we think it's something we definitely want to keep? I don't think there's a need for highlighting this in a storybook demo.

@tomzemp tomzemp requested a review from a team as a code owner April 28, 2026 14:42
@sonarqubecloud
Copy link
Copy Markdown

@dhis2-bot
Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-1740--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify April 28, 2026 14:45 Inactive
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.

2 participants