Skip to content

List view loads from cache but always query server right away to check for changes#1066

Merged
timotheeguerin merged 2 commits intomasterfrom
fix/list-view-always-query-server
Feb 14, 2018
Merged

List view loads from cache but always query server right away to check for changes#1066
timotheeguerin merged 2 commits intomasterfrom
fix/list-view-always-query-server

Conversation

@timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Feb 14, 2018

fix #1065
Currently if data was in the cache it would load from there but not update with server data unless explicitly refershed which leads to weird data if deleting a job and recreating and navigating to it seeing deleted job task.

Still try to load from cache to have a fast loading if quickly switching between elements.

Could maybe add a timestamp to the cache and not even try to load from it if the data is too old

@codecov
Copy link

codecov bot commented Feb 14, 2018

Codecov Report

Merging #1066 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1066      +/-   ##
==========================================
+ Coverage   53.59%   53.59%   +<.01%     
==========================================
  Files         848      848              
  Lines       20210    20208       -2     
  Branches     2276     2276              
==========================================
  Hits        10831    10831              
+ Misses       9379     9377       -2
Impacted Files Coverage Δ
app/services/task-service.ts 12.85% <ø> (ø) ⬆️
app/services/core/data/list-view.ts 87.8% <ø> (+1.4%) ⬆️
app/services/core/data-cache.ts 96.05% <100%> (ø) ⬆️

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 a39441b...351a7cc. Read the comment docs.

@timotheeguerin timotheeguerin merged commit ed28c9e into master Feb 14, 2018
@timotheeguerin timotheeguerin deleted the fix/list-view-always-query-server branch February 14, 2018 23:32
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.

Stale task list

1 participant