You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mix.info packagename version it would be useful to show an alert that the version has been retired (and possibly also the reason for retirement.)
When using mix.info packagename perhaps just color the retired versions in red.
@ericmj I have opened a PR for the hex.info packagename version
For the hex.info packagename version, I think it would be best to change the response from the API.
I would propose adding a retired flag to the map. The only other way to get retired info on a version would be to iterate over each version returned in this call and check it's info. That could mean a lot more network requests.
Please advise what you think the best course of action would be.
we initially decided to keep retirement information out of /api/packages/:name payload to keep it smaller (a bit more context in hexpm/hexpm#454 (comment)), but I agree that in this particular case it would be useful. Yet another way would be to somewhat mimic the registry and have it under a separate key, so:
@wojtekmach I am not familiar with how/where to make those changes in teh API. If those are made (i assume in hexpm) I am happy to implement the use of them in hex.
Activity
supersimple commentedon Jan 7, 2018
I am happy to submit a PR for this as soon as it is determined to be valuable.
ericmj commentedon Jan 7, 2018
Yeah, that would be a great addition.
supersimple commentedon Jan 7, 2018
@ericmj I have opened a PR for the
hex.info packagename versionFor the
hex.info packagenameversion, I think it would be best to change the response from the API.I would propose adding a retired flag to the map. The only other way to get retired info on a version would be to iterate over each version returned in this call and check it's info. That could mean a lot more network requests.
Please advise what you think the best course of action would be.
wojtekmach commentedon Jan 7, 2018
we initially decided to keep retirement information out of
/api/packages/:namepayload to keep it smaller (a bit more context in hexpm/hexpm#454 (comment)), but I agree that in this particular case it would be useful. Yet another way would be to somewhat mimic the registry and have it under a separate key, so:wdyt @ericmj?
wojtekmach commentedon Jan 11, 2018
@supersimple let us know if you'd like to finishing up this issue by handling
mix hex.info pkg versionmix hex.info pkg:) (requires hexpm/hexpm#607)supersimple commentedon Jan 11, 2018
@wojtekmach I am not familiar with how/where to make those changes in teh API. If those are made (i assume in hexpm) I am happy to implement the use of them in hex.
wojtekmach commentedon Jan 11, 2018
@supersimple here are some pointers for API:
a PR would be appreciated, but I'm also happy to work on these later. Thanks for your help!
supersimple commentedon Jan 11, 2018
Great. I'll look at it today.
supersimple commentedon Jan 12, 2018
@wojtekmach I was able to get a lot of it dont yesterday, I should be able to finish it up today and submit a PR for review.
wojtekmach commentedon Jan 15, 2018
Done in #487
Re-vendor Mint v1.11.0 and hpax v1.1.0
Re-vendor Mint v1.11.0 and hpax v1.1.0