Skip to content

chore: separate filtering section and context provider - #348

Open
HendrikThePendric wants to merge 1 commit into
feat/grouping-DHIS2-21699from
chore/grouping-DHIS2-21699-suggested-change
Open

chore: separate filtering section and context provider#348
HendrikThePendric wants to merge 1 commit into
feat/grouping-DHIS2-21699from
chore/grouping-DHIS2-21699-suggested-change

Conversation

@HendrikThePendric

Copy link
Copy Markdown
Collaborator

Instead of trying to explain all of this in a PR review comment I thought it'd be more efficient to just do a PR against #340, especially because I wasn't sure if my suggestion would result in clean code. I think it has done.

PROS:

  • Clear separation of concerns
  • Aligned with other providers we have in the app

CON:

  • Expanded the API surface of the context provider with setCondition and storeConditions, which were internal to the FilteringSection section before.

I think the pros outweigh the con, since these two new methods are clearly part of a "conditions management domain". Plus I think this also addresses doubt nr. 1 you expressed in the PR description.

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-348.event-visualizer.netlify.dhis2.org

@dhis2-bot
dhis2-bot temporarily deployed to netlify August 20, 2026 09:33 Inactive
@sonarqubecloud

Copy link
Copy Markdown

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