Update RSS and Calendar Endpoints to accept type filter
What does this MR do and why?
This MR allows the work items controller to read the type param and pass this to the finder when the user selects Subscribe to RSS or Subscribe to Calendar in the work items lists.
References
Screenshots or screen recordings
Not provided
How to set up and validate locally
The changes here should work with the consolidated list and existing group and project issues lists. The steps below can be repeated with the work_item_planning_view both enabled and disabled to test this.
- In a new project under a group, create a task and an issue. Set the due date to today for both of these work items (needed for calendar)
- Apply the
typefilter in the search bar, and filter by a particular type (e.g.TypeisTask) - Refresh the page (this is needed due to an unrelated bug)
- From the
⋮menu, selectSubscribe to RSS - Observe that only the item of the filtered type is returned
- From the
⋮menu, selectSubscribe to Calendar - Observe in the downloaded
.icsfile that only the item of the filtered type is returned - Repeat the steps above at the group level. You can use the work items created in the step above, and the results should be the same
- Repeat the steps above with a
Typeis not one ofXfilter, and observe the work items returned adhere to the filter
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #578148
Edited by Matt D'Angelo