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

Set packages.json last modified based on a provider-latest timestamp #283

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

karniv00l
Copy link
Contributor

No description provided.

@@ -54,12 +54,15 @@ public function packages(Request $request): JsonResponse
],
],
'providers-lazy-url' => '/p/%package%',
'provider-includes' => $providerHash !== null ? ['p/provider-latest$%hash%.json' => ['sha256' => $providerHash]] : [],
'provider-includes' => $metadata->isPresent() === true ? ['p/provider-latest$%hash%.json' => ['sha256' => $metadata->get()->hash()]] : [],
Copy link
Member

Choose a reason for hiding this comment

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

$metadata->isPresent() === true why not just $metadata->isPresent()

@codecov
Copy link

codecov bot commented Sep 23, 2020

Codecov Report

Merging #283 into master will increase coverage by 0.00%.
The diff coverage is 94.11%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #283   +/-   ##
=========================================
  Coverage     99.68%   99.68%           
- Complexity     1818     1823    +5     
=========================================
  Files           284      284           
  Lines          5325     5334    +9     
=========================================
+ Hits           5308     5317    +9     
  Misses           17       17           
Impacted Files Coverage Δ Complexity Δ
src/Service/Proxy.php 96.29% <83.33%> (+0.05%) 57.00 <9.00> (+1.00)
src/Controller/ProxyController.php 100.00% <100.00%> (ø) 13.00 <0.00> (+1.00)
src/Service/Proxy/Metadata.php 100.00% <100.00%> (ø) 7.00 <4.00> (+3.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 07a3e66...d4f2b0a. Read the comment docs.

@akondas akondas merged commit c6e7939 into repman-io:master Sep 23, 2020
@karniv00l karniv00l deleted the json-cache branch September 23, 2020 14:51
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.

2 participants