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

WIP Configure Satis repository when enabling extension #21

Merged
merged 10 commits into from
Apr 11, 2017
Merged

Conversation

clarkwinkelmann
Copy link
Contributor

It's not working at the moment, I'm getting 403 errors from the satis endpoint when enabled :(

Also, there's a quiet issue if a "repositories" key is present in composer.json but uses an array instead of an object (we need to name our repo so it can be easily found & replaced when enabling the extension)

Copy link
Member

@luceos luceos left a comment

Choose a reason for hiding this comment

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

Can you combine the changes I did in the satis branch on top of yours? Eg the travis-ci config.

See the changes

@clarkwinkelmann
Copy link
Contributor Author

Didn't notice your satis branch, my bad 🙈

I will try to merge all this in a single PR

@codecov-io
Copy link

codecov-io commented Mar 24, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@0e5430f). Click here to learn what that means.
The diff coverage is 19.23%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #21   +/-   ##
=========================================
  Coverage          ?   31.73%           
=========================================
  Files             ?       29           
  Lines             ?      460           
  Branches          ?        0           
=========================================
  Hits              ?      146           
  Misses            ?      314           
  Partials          ?        0
Impacted Files Coverage Δ
src/Listeners/BazaarEnabled.php 0% <0%> (ø)
src/Extensions/ExtensionPackageManager.php 0% <0%> (ø)
src/Providers/ComposerEnvironmentProvider.php 0% <0%> (ø)
src/Search/FlagrowApi.php 0% <0%> (ø)
src/Listeners/AddSatisConfiguration.php 0% <0%> (ø)
src/Events/TokenSet.php 0% <0%> (ø)
src/Composer/Utils/ComposerFileEditor.php 93.75% <100%> (ø)
src/Composer/Commands/BaseCommand.php 93.18% <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 0e5430f...e3d902a. Read the comment docs.

@clarkwinkelmann clarkwinkelmann self-assigned this Mar 24, 2017
@luceos
Copy link
Member

luceos commented Mar 28, 2017

Confirmed that this only works if "repositories" is an object, not an array, we have to mutate all items in that list to become an object (perhaps based on the path?)

@luceos
Copy link
Member

luceos commented Mar 28, 2017

fixed the 403 by putting the token and Bearer witin single quotes

@luceos luceos merged commit 6be1625 into master Apr 11, 2017
@luceos
Copy link
Member

luceos commented Apr 11, 2017

Going to add further logic in a new branch, let's move on with this.

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.

None yet

3 participants