All the infrastructure regarding showOnlyUserCampaigns has been removed.
Refactored datasets.list. Previously, we were doing a double request to get only datasets created by the app, but this was bound to fail whenever the datasets grow and the URI gets to 8KB. Alternative: do the first request as restrictive as possible and do a second filter+pagination programmatically.
Within the filter phase, we check the attribute createdByApp and also that all orgUnits of the dataset are contained in currentUser.dataViewOrganisationUnits (new filter).
Note: Now that we don't use the API pagination, we must be still more careful regarding the fields we request. I've removed some fields we were not actually using.
:pushpin: References
:memo: Implementation
datasets.list
. Previously, we were doing a double request to get only datasets created by the app, but this was bound to fail whenever the datasets grow and the URI gets to 8KB. Alternative: do the first request as restrictive as possible and do a second filter+pagination programmatically.currentUser.dataViewOrganisationUnits
(new filter).Note: Now that we don't use the API pagination, we must be still more careful regarding the fields we request. I've removed some fields we were not actually using.
:art: Screenshots
Example with
pageSize=2
(it's 20 in the app):