Skip to content

Add new filter to the GET Resource Bookings endpoint #409

Closed
@maxceem

Description

@maxceem

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:

image

To be able to do so, we have to update endpoint GET /resourceBookings to filter data by 3 criteria:

  1. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions