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

Resolve draft modified time from commit history instead of cache #3174

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

nellh
Copy link
Contributor

@nellh nellh commented Oct 16, 2024

This was served from an infrequently updated cache of the time changed. Most queries already request draft information here, this extends the worker service to return the authored time of the commit in the same request and uses that instead. If this is cached, it's keyed by the commit reference and will remain consistent.

Fixes #3173

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 56.52174% with 10 lines in your changes missing coverage. Please review.

Project coverage is 42.86%. Comparing base (b165334) to head (9897641).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
.../openneuro-server/src/graphql/resolvers/dataset.ts 12.50% 7 Missing ⚠️
packages/openneuro-server/src/datalad/dataset.ts 85.71% 2 Missing ⚠️
...penneuro-server/src/graphql/resolvers/snapshots.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3174      +/-   ##
==========================================
- Coverage   44.16%   42.86%   -1.30%     
==========================================
  Files         593      549      -44     
  Lines       37838    36201    -1637     
  Branches     1132     1132              
==========================================
- Hits        16710    15517    -1193     
+ Misses      20926    20482     -444     
  Partials      202      202              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nellh nellh merged commit 7c03e93 into master Oct 24, 2024
11 of 14 checks passed
@nellh nellh deleted the 3173-fix-draft-time-caching branch October 24, 2024 16:25
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.

Draft creation time is sometimes improperly cached
1 participant