Closed josephjclark closed 3 weeks ago
I have tested this code with http adaptor
get('/tracker/trackedEntities/qv0j4JBXQX0.json?fields=*', {
// query: { fields: '*' },
});
fn(state => {
console.log(state.data);
return state;
});
Also tested this 👇🏽
get('/tracker/trackedEntities/qv0j4JBXQX0.json', {
query: { fields: '*' },
});
fn(state => {
console.log(state.data);
return state;
});
Both works fine
In common http, request parameters in the URL were not getting sent on to the server.
I've tested against the
http
adaptor with this code:And this credential (public sandbox)
This code calls out to dhis2 for a tracked entity and asks for all fields to be returned (via query parameter). When the query does not get sent, dhis only returns part of the entity, not the full thing.
In production, the logged response does not include
enrollments
orprogramOwners
. Against the built monorepo, it does.Versions are bumped, tests are added, this is a critical issue ready for release