Skip to content

Conversation

@ericmj
Copy link
Member

@ericmj ericmj commented Dec 20, 2018

No description provided.

@ericmj ericmj requested a review from wojtekmach December 20, 2018 18:32
@wojtekmach wojtekmach merged commit 009d4de into master Dec 20, 2018
@wojtekmach wojtekmach deleted the emj/verify-registry-origin branch December 20, 2018 19:04
wojtekmach added a commit to hexpm/hex that referenced this pull request Dec 20, 2018
```erlang
> hex_repo:get_versions(Config).
{ok, {200, ...,
#{packages => [
Copy link
Member

Choose a reason for hiding this comment

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

@ericmj to recap, previously we had:

> hex_repo:get_versions(Config)
{ok, {200, _, #{packages => Packages}}}

now we have:

> hex_repo:get_versions(Config)
{ok, {200, _, Packages}}

which means we'd no longer be able to associate any "metadata" with the versions resource in a backwards compatible way (adding new keys to the return map). I think that's OK, I can't think of anything we'd use it for, but just mentioning it. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's better this way, the other "metadata" wasn't really documented in the first place, right?

Copy link
Member

Choose a reason for hiding this comment

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

Yup

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