Skip to content

chore: [ANDROSDK-2384] review dataSet download flow - #2713

Open
taridepaco wants to merge 3 commits into
developfrom
ANDROSDK-2384
Open

taridepaco wants to merge 3 commits into
developfrom
ANDROSDK-2384

Conversation

@taridepaco

@taridepaco taridepaco commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

The /api/dataValueSets request was not constraining the attributeOptionCombo, which forces a much slower query plan on the server. It now sends the attributeOptionCombos of the dataSet being downloaded, resolved from the local metadata. The paging=false parameter is also dropped: it is not a supported parameter of this endpoint and is ignored by the backend. On top of that, the number of future periods was stored with a different default than the one used to build the bundle, so the comparison in AggregatedDataSyncLastUpdatedCalculator never matched and dataSets without openFuturePeriods were fully re-downloaded on every sync instead of incrementally.

The attributeOptionCombos are only added while they fit in the maximum url length, falling back to the previous unfiltered query otherwise, since sending a truncated list would silently skip the data values of the omitted combos. Partitioning the request to keep it within both the url and the payload limits is handled in ANDROSDK-2203.

Related task: ANDROSDK-2384

remove paging=false
fix default future periods number
inherit dataValueSet properties in dataValues missing them
@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.

1 participant