Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

Developer Portal Reports Page - Add Date Input for Filtering #2499

Open kevinpearce opened 3 weeks ago

kevinpearce commented 3 weeks ago

Feature Request

End Users that adhere to the Microsoft Quota Policy have no way to check their monthly stats on the Reports page when Subscriptions start part way though a month. I believe this feature was present on the Deprecated Developer Portal and was not replicated.

Please add a way for End Users to specify both a Start and End date on the Reports page.

Potential Reproduction steps

Paperbits already offers some form of Form/Date input, so it should be feasible that this could be implemented considering this underpins most, if not all of the Developer Portal.

https://github.com/paperbits/paperbits-forms/tree/master/src/date-input

Suggestion - add a date picker option in the empty space next to existing buttons?

apim_report_suggestion

The existing buttons appear to just be setting background dates to populate various REST calls so these could easily take the date input without much effort in their StartTime/EndTime params.

https://github.com/Azure/api-management-developer-portal/blob/master/src/components/reports/ko/runtime/reports.html#L2-L11 https://github.com/Azure/api-management-developer-portal/blob/master/src/components/reports/ko/runtime/reports.ts#L531-L558

Expected behavior

End Users should have a way to check monthly quota's and this should be considered a CORE part of APIM functionality.

Is your portal managed or self-hosted?

N/A

Release tag or commit SHA (if using self-hosted version)

N/A

API Management service name

N/A

Environment

N/A

Additional context

Also relevant (but very old and way down the backlog) - Issue #733

I would have used the https://aka.ms/apimwish link as specified above but checking it - it requires some heavy SPAM Bot filtering as it is unfortunately currently useless.