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

frontend: load all dayResponsibles in one request in Dashboard.vue #4135

Merged

Conversation

BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Nov 18, 2023

frontend: load all dayResponsibles in one request per period Dashboard.vue

By loading the days in one request per period which embed the dayResponsibles.
When loading the dayResponsibles directly, there was still
a request per day for the dayResponsibles.
This makes the loading of Dashboard.vue faster.
It also may reduce the e2e test failures of the firefox tests due to:
"Request aborted" errors after the test is finished.
(The test did not wait for the dayResponsibles to be loaded and then
aborted the load which lead to the requests being aborted.)

frontend/api: add camp filter on days for Dashboard.vue

That it's possible to load all days of a camp in one request.

Related to #4010

@carlobeltrame carlobeltrame added the deploy! Creates a feature branch deployment for this PR label Nov 20, 2023
Copy link

github-actions bot commented Nov 20, 2023

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

…d.vue

By loading the days in one request per period which embed the dayResponsibles.
When loading the dayResponsibles directly, there was still
a request per day for the dayResponsibles.
This makes the loading of Dashboard.vue faster.
It also may reduce the e2e test failures of the firefox tests due to:
"Request aborted" errors after the test is finished.
(The test did not wait for the dayResponsibles to be loaded and then
aborted the load which lead to the requests being aborted.)
That it's possible to load all days of a camp in one request.
@BacLuc BacLuc force-pushed the dashboard-load-dayresponsibles-in-one-request branch from f737f3b to c6e9dc8 Compare November 20, 2023 13:46
Copy link
Member

@carlobeltrame carlobeltrame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now, thanks!

@BacLuc
Copy link
Contributor Author

BacLuc commented Nov 23, 2023

@manuelmeister
Hier wäre die chance um die firefox e2e tests zu verbessern

Copy link
Member

@manuelmeister manuelmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, maybe it would probably also make sense to load it in loadAndProcessCollections because otherwise we wait for everything else.

Network timeline, where some requests are startet simultaneously and the days are loaded after a big group of requests is loaded

@BacLuc BacLuc added this pull request to the merge queue Nov 25, 2023
Merged via the queue into ecamp:devel with commit e0a5390 Nov 25, 2023
28 checks passed
@BacLuc BacLuc deleted the dashboard-load-dayresponsibles-in-one-request branch December 23, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy! Creates a feature branch deployment for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants