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

Better XHR handling for Datasets #3659

Merged
merged 3 commits into from
Feb 1, 2021
Merged

Better XHR handling for Datasets #3659

merged 3 commits into from
Feb 1, 2021

Conversation

Crashillo
Copy link
Member

@Crashillo Crashillo commented Jan 27, 2021

Closes #3644

✌️ What does this PR do?

Reduce the amount of GET requests the Dataset tabs do. Switching between tabs won't trigger XHR requests if they've been already fetched.

Test: https://getafe.gobify.net/datos

@Crashillo Crashillo marked this pull request as ready for review January 28, 2021 10:33
@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #3659 (c352f3c) into master (121d162) will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3659      +/-   ##
==========================================
+ Coverage   84.11%   84.17%   +0.06%     
==========================================
  Files         805      805              
  Lines       21507    21507              
==========================================
+ Hits        18090    18104      +14     
+ Misses       3417     3403      -14     
Impacted Files Coverage Δ
...ierto_budgets/budgets_execution/metric_box_cell.rb 100.00% <0.00%> (+3.44%) ⬆️
app/models/gobierto_citizens_charters/service.rb 95.83% <0.00%> (+4.16%) ⬆️
.../gobierto_citizens_charters/services_controller.rb 93.33% <0.00%> (+20.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 121d162...c352f3c. Read the comment docs.

@ferblape ferblape merged commit 47334c9 into master Feb 1, 2021
@ferblape ferblape deleted the 3644-better-handling-xhr branch February 1, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data / Don't load default query when loading a visualization
3 participants