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

Serve static proxy metadata and use v2 endpoint for dist lookup #222

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

akondas
Copy link
Member

@akondas akondas commented Jul 16, 2020

No description provided.

@akondas akondas requested a review from karniv00l July 16, 2020 13:33
@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #222 into static-proxy will decrease coverage by 0.02%.
The diff coverage is 97.19%.

Impacted file tree graph

@@                Coverage Diff                 @@
##             static-proxy     #222      +/-   ##
==================================================
- Coverage           99.73%   99.70%   -0.03%     
+ Complexity           1440     1404      -36     
==================================================
  Files                 234      233       -1     
  Lines                4092     4039      -53     
==================================================
- Hits                 4081     4027      -54     
- Misses                 11       12       +1     
Impacted Files Coverage Δ Complexity Δ
src/Controller/OrganizationController.php 100.00% <ø> (+1.94%) 39.00 <0.00> (-1.00) ⬆️
src/Service/Proxy/Metadata.php 92.85% <92.85%> (ø) 5.00 <5.00> (?)
src/Service/Proxy.php 96.49% <96.15%> (-3.51%) 23.00 <20.00> (-7.00)
src/Controller/ProxyController.php 100.00% <100.00%> (ø) 9.00 <3.00> (ø)
src/Service/Proxy/ProxyFactory.php 100.00% <100.00%> (ø) 2.00 <1.00> (ø)
src/Service/Symfony/ResponseCallback.php 100.00% <100.00%> (ø) 1.00 <1.00> (?)
src/Service/Dist.php 94.44% <0.00%> (-5.56%) 7.00% <0.00%> (ø%)
src/Service/Dist/Storage/FileStorage.php 91.48% <0.00%> (-2.13%) 15.00% <0.00%> (ø%)
... and 1 more

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 741e610...727835e. Read the comment docs.

@@ -342,14 +342,6 @@ public function packageScanResults(Organization $organization, Package $package,
]);
}

protected function getUser(): User
Copy link
Member Author

Choose a reason for hiding this comment

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

dead code ☠️

@@ -46,27 +46,28 @@ public function testProviderAction(): void
"buddy-works/repman": "@array@"
}
}
', $this->client->getResponse()->getContent());
', $response);
self::assertTrue($this->client->getResponse()->isCacheable());
Copy link
Member Author

Choose a reason for hiding this comment

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

this will allow us to let others use their cache as well

@akondas akondas mentioned this pull request Jul 16, 2020
8 tasks
@karniv00l karniv00l merged commit b79780a into repman-io:static-proxy Jul 16, 2020
@akondas akondas deleted the static-proxy branch July 17, 2020 08:11
karniv00l pushed a commit that referenced this pull request Jul 21, 2020
* Serve static proxy metadata and use v2 endpoint for dist lookup (#222)

* Move all proxy logic to Proxy class (#223)

* Implement sync proxy metadata command (#224)

* Use async and stream for downloading metadata and distibutions (#226)

* Create migration to better auto upgrade to 0.5.0 (#227)
@karniv00l karniv00l added this to the 0.5.0 milestone Aug 4, 2020
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