Skip to content

Commit

Permalink
Merge pull request #1386 from RoundingWell/bug/reduced-filter-fields
Browse files Browse the repository at this point in the history
Add fields request to reduced schedule
  • Loading branch information
paulfalgout authored Jan 29, 2025
2 parents a8b6d45 + 78acaab commit 2065c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export default App.extend({
},
beforeStart() {
const filter = this.getState().getEntityFilter();
return Radio.request('entities', 'fetch:actions:collection', { data: { filter } });
const fields = { flows: ['name', 'state'] };
return Radio.request('entities', 'fetch:actions:collection', { data: { filter, fields } });
},
onStart(options, collection) {
this.collection = collection;
Expand Down
3 changes: 2 additions & 1 deletion test/integration/patients/worklist/reduced-schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ context('reduced schedule page', function() {
.itsUrl()
.its('search')
.should('contain', `filter[clinicians]=${ currentClinician.id }`)
.should('contain', `filter[states]=${ stateTodo.id },${ stateInProgress.id }`);
.should('contain', `filter[states]=${ stateTodo.id },${ stateInProgress.id }`)
.should('contain', 'fields[flows]=name,state');

cy
.url()
Expand Down

0 comments on commit 2065c02

Please sign in to comment.