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

context: remove definition of Context #2360

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

stevvooe
Copy link
Collaborator

Back in the before time, the best practices surrounding usage of Context
weren't quite worked out. We defined our own type to make usage easier.
As this packaged was used elsewhere, it make it more and more
challenging to integrate with the forked Context type. Now that it is
available in the standard library, we can just use that one directly.

To make usage more consistent, we now use dcontext when referring to
the distribution context package.

Signed-off-by: Stephen J Day [email protected]

Back in the before time, the best practices surrounding usage of Context
weren't quite worked out. We defined our own type to make usage easier.
As this packaged was used elsewhere, it make it more and more
challenging to integrate with the forked `Context` type. Now that it is
available in the standard library, we can just use that one directly.

To make usage more consistent, we now use `dcontext` when referring to
the distribution context package.

Signed-off-by: Stephen J Day <[email protected]>
@dmcgowan
Copy link
Collaborator

LGTM

@codecov
Copy link

codecov bot commented Aug 11, 2017

Codecov Report

Merging #2360 into master will decrease coverage by 9.59%.
The diff coverage is 53.2%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2360     +/-   ##
=========================================
- Coverage   60.23%   50.63%   -9.6%     
=========================================
  Files         126      126             
  Lines       14390    14396      +6     
=========================================
- Hits         8668     7290   -1378     
- Misses       4834     6358   +1524     
+ Partials      888      748    -140
Impacted Files Coverage Δ
registry/middleware/repository/middleware.go 0% <ø> (ø) ⬆️
manifest/schema1/reference_builder.go 94% <ø> (ø) ⬆️
registry/storage/catalog.go 83.87% <ø> (ø) ⬆️
registry/storage/cache/redis/redis.go 0% <ø> (ø) ⬆️
registry/storage/driver/inmemory/driver.go 73.6% <ø> (ø) ⬆️
registry/storage/tagstore.go 71.66% <ø> (ø) ⬆️
registry/middleware/registry/middleware.go 9.52% <ø> (ø) ⬆️
registry/storage/driver/azure/azure.go 0.64% <ø> (ø) ⬆️
...y/storage/driver/middleware/redirect/middleware.go 64% <ø> (ø) ⬆️
registry/storage/io.go 48.48% <ø> (ø) ⬆️
... and 63 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 7a8efe7...9c88801. Read the comment docs.

@tiborvass
Copy link
Contributor

LGTM

@stevvooe stevvooe merged commit 06fa77a into distribution:master Aug 11, 2017
@stevvooe stevvooe deleted the remove-context-type branch August 11, 2017 23:30
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.

3 participants