Description
We would like to be able to filter by Alerts
column in the TaaS Admin App, see issue topcoder-archive/topcoder-platform-micro-frontends-taas-admin-app#72:
To be able to do so, we have to update endpoint GET /resourceBookings
to filter data by 3 criteria:
- return RB which don't have Billing Account assigned, i. e. where
ResourceBookings.billingAccountId === null
. How to do this?
We already can filter ResourceBookings by the workPeriods.startDate
which would only return ResourceBookings which have this week. Now we would like to 2 additional filters:
2. workPeriods.isFirstWeek
- should only return RB if the week which matches workPeriods.startDate
is the first one in the RB
3. workPeriods.isLastWeek
- should only return RB if the week which matches workPeriods.startDate
is the last one in the RB
Can we make such requests without updating the DB/ES model for WorkPeriods and without keeping such a flag in WorkPeriods?
General Requirements
Update swagger.