Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSE API Hits Counter #178

Merged

Conversation

jsilva74
Copy link
Contributor

Use case

I, as an user, wanna to know how many requests was sent to FSE API in past 6 hours to stick with FSE User Guide related to the use of API.

Proposed solution

This PR implements a counter to accumulate the total quantity of requests sent to FSE API. Also, displays this information in Update screen with 3 levels of severities.
Captura de Tela 2023-11-30 às 05 21 28
Total of requests to FSE API up to 24 requests in past 6 hours

Captura de Tela 2023-11-30 às 05 30 17
Total of requests to FSE API from 25 to 34 requests in past 6 hours

Captura de Tela 2023-11-30 às 05 30 52
Total of requests to FSE API with more than 34 requests in past 6 hours

@piero-la-lune
Copy link
Owner

Hi @jsilva74

Thank you very much for your contribution!

If I may, I would suggest that you update the hit counter when opening the "Load data" popup, because I can see a use case when a user has done 6 requests, then comes back to FSE Planner the next day and sees "6 requests in the last 6 hours" when opening the popup, it would be a bit confusing.

@jsilva74
Copy link
Contributor Author

jsilva74 commented Dec 5, 2023

Hey Piero.

Sure. I'll fix it. Thanks for the insight.

@jsilva74
Copy link
Contributor Author

jsilva74 commented Dec 5, 2023

@piero-la-lune, branch updated. Thanks.

@piero-la-lune piero-la-lune changed the base branch from master to v1.18.0 December 9, 2023 14:58
@piero-la-lune
Copy link
Owner

Looks ok, thanks!

@piero-la-lune piero-la-lune merged commit 48392ce into piero-la-lune:v1.18.0 Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants