This pull request introduces the filter utilities and API endpoints to improve code organization and readability. It introduces the useBranchesForPrFilters utility function to get branches and branch mode. The dora_metrics.ts file is updated to use the updated filter utilities. Additionally, the filters-api.ts file is deleted. The changes also include refactoring the API endpoints to use the updated filter utilities.
This pull request introduces the filter utilities and API endpoints to improve code organization and readability. It introduces the
useBranchesForPrFilters
utility function to get branches and branch mode. Thedora_metrics.ts
file is updated to use the updated filter utilities. Additionally, thefilters-api.ts
file is deleted. The changes also include refactoring the API endpoints to use the updated filter utilities.