Skip to content

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

Merged
KaiVandivier merged 1 commit intomasterfrom
DHIS2-19573/transfer-filter
May 6, 2026
Merged

fix: handle incomplete regular expressions [DHIS2-19573]#1740
KaiVandivier merged 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
@KaiVandivier
Copy link
Copy Markdown
Contributor

Thanks @flaminic @tomzemp!

@KaiVandivier KaiVandivier merged commit 95b859e into master May 6, 2026
25 checks passed
@KaiVandivier KaiVandivier deleted the DHIS2-19573/transfer-filter branch May 6, 2026 13:16
dhis2-bot added a commit that referenced this pull request May 6, 2026
# [10.14.0](v10.13.1...v10.14.0) (2026-05-06)

### Bug Fixes

* **transfer:** handle incomplete regular expressions in filter [DHIS2-19573] ([#1740](#1740)) ([95b859e](95b859e))

### Features

* **transfer:** reorder improvements ([#1739](#1739)) ([8cab102](8cab102))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants