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

fix(frontend): performances issue on plans fetching #212

Merged
merged 1 commit into from Sep 1, 2021

Conversation

hbollon
Copy link
Member

@hbollon hbollon commented Aug 31, 2021

feat(frontend): add loading spinner during plan fetching

This PR fix performances issues observed during plans fetching due to huge size of the response.
To achieve that I have:

  • Added an endpoint /api/plans/summary which returns the metadata (data added by the wrapper) of the plans and I modified the view to use it on: the lineage view, the "plans explorer" view and the view of a plan (the last 10 plans displayed on the left)
  • Added the possibility to pass ?planid=X as a parameter to /api/plans in GET which allows it to return only a plan from its ID (since now I have to make an additional request to display a plan)
  • Added a loading indicator (a spinner with Font Awesome) plan fetching since plans can be a few MO individually.

feat(frontend): add loading spinner during plan fetching
@hbollon hbollon force-pushed the fix/plans_views_performences branch from 7c1fed1 to 9d80dea Compare August 31, 2021 14:22
@coveralls
Copy link

coveralls commented Sep 1, 2021

Coverage Status

Coverage decreased (-0.4%) to 56.944% when pulling 9d80dea on hbollon:fix/plans_views_performences into 91b3dab on camptocamp:master.

@raphink raphink merged commit 4e6d2b6 into camptocamp:master Sep 1, 2021
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.

None yet

3 participants