Visually distinguish deprecated modules based on x_deprecated field #1435

Open
haarg opened this Issue Jan 7, 2015 · 12 comments

Comments

Projects
None yet
5 participants
@haarg
Member

haarg commented Jan 7, 2015

In #toolchain, there has been discussion of establishing x_deprecated as a field to indicate deprecated modules. In the future, this could be used in search ranking. Initially though, it would be good to add a visual indicator of this somewhere when viewing modules.

@oalders

This comment has been minimized.

Show comment
Hide comment
@oalders

oalders Jan 7, 2015

Member

+1

Member

oalders commented Jan 7, 2015

+1

@oalders

This comment has been minimized.

Show comment
Hide comment
@oalders

oalders Jan 7, 2015

Member

I saw some discussion about this being a boolean field for the dist. Is there any plan for deprecating just one module within a distribution or is that not a common enough use case?

Member

oalders commented Jan 7, 2015

I saw some discussion about this being a boolean field for the dist. Is there any plan for deprecating just one module within a distribution or is that not a common enough use case?

@haarg

This comment has been minimized.

Show comment
Hide comment
@haarg

haarg Jan 7, 2015

Member

@dagolden suggested handling per-module deprecations via x_deprecated fields in the provides hash. I think this is a sensible solution.

Member

haarg commented Jan 7, 2015

@dagolden suggested handling per-module deprecations via x_deprecated fields in the provides hash. I think this is a sensible solution.

@oalders

This comment has been minimized.

Show comment
Hide comment
@oalders

oalders Jan 10, 2015

Member

Once people start using this, could someone update this ticket with a couple of example dists that we can work from?

Member

oalders commented Jan 10, 2015

Once people start using this, could someone update this ticket with a couple of example dists that we can work from?

@oalders

This comment has been minimized.

Show comment
Hide comment
@karenetheridge

This comment has been minimized.

Show comment
Hide comment
@karenetheridge

karenetheridge Apr 11, 2015

Contributor

Is there any plan for deprecating just one module within a distribution or is that not a common enough use case?

Yes, I've got this feature written for Dist::Zilla::Plugin::Deprecated, and will release it as soon as the necessary change to CPAN::Meta::Merge is released (likely at/by Berlin).

Contributor

karenetheridge commented Apr 11, 2015

Is there any plan for deprecating just one module within a distribution or is that not a common enough use case?

Yes, I've got this feature written for Dist::Zilla::Plugin::Deprecated, and will release it as soon as the necessary change to CPAN::Meta::Merge is released (likely at/by Berlin).

@karenetheridge

This comment has been minimized.

Show comment
Hide comment
@karenetheridge

karenetheridge Apr 19, 2015

Contributor

@oalders these distributions now have individual modules marked as deprecated (vs. the entire distribution):

https://metacpan.org/release/Dist-Zilla-Plugin-Test-EOL
https://metacpan.org/release/Dist-Zilla-Plugin-Test-NoTabs

Contributor

karenetheridge commented Apr 19, 2015

@oalders these distributions now have individual modules marked as deprecated (vs. the entire distribution):

https://metacpan.org/release/Dist-Zilla-Plugin-Test-EOL
https://metacpan.org/release/Dist-Zilla-Plugin-Test-NoTabs

@oalders

This comment has been minimized.

Show comment
Hide comment
@oalders

oalders Apr 19, 2015

Member

@karenetheridge I don't see x_deprecated in https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-EOL-0.17/META.json Am I looking at the wrong release?

Member

oalders commented Apr 19, 2015

@karenetheridge I don't see x_deprecated in https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-EOL-0.17/META.json Am I looking at the wrong release?

@karenetheridge

This comment has been minimized.

Show comment
Hide comment
@karenetheridge

karenetheridge Apr 19, 2015

Contributor

yes, it's 0.18, just uploaded. :)

Contributor

karenetheridge commented Apr 19, 2015

yes, it's 0.18, just uploaded. :)

@oalders

This comment has been minimized.

Show comment
Hide comment

@oalders oalders referenced this issue in metacpan/metacpan-api Nov 16, 2017

Closed

add 'deprecated' field to release type #572

@mickeyn

This comment has been minimized.

Show comment
Hide comment
@mickeyn

mickeyn Jan 27, 2018

Contributor

now that we have the field in the metadata, this can be done.

Contributor

mickeyn commented Jan 27, 2018

now that we have the field in the metadata, this can be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment