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

'Publishing packages' page should document is:unlisted #2647

Open
jonasfj opened this issue Sep 21, 2020 · 2 comments
Open

'Publishing packages' page should document is:unlisted #2647

jonasfj opened this issue Sep 21, 2020 · 2 comments
Labels
dev.packages Relates to package publishing e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged t.cli-tools Relates to the dart command line tools

Comments

@jonasfj
Copy link
Member

jonasfj commented Sep 21, 2020

Page URL: https://dart.dev/tools/pub/publishing.html
Page source: https://github.com/dart-lang/site-www/tree/master/src/tools/pub/publishing.md

Edit: No longer blocked with the is:unlisted feature shipped on pub.dev (dart-lang/pub-dev#4044).

I think it would be worthwhile explaining:

  • What an unlisted package is: A publicly available package that is excluded with default search options.
  • Why you might want to mark a package as unlisted:
    • To avoid polluting the search results, in cases such as:
    • Example: A package A containing code shared by B and C, where A isn't something you recommend users to use, but instead recommend users use B or C directly. So you want to avoid polluting the search results with A, because you prefer that B or C appears more prominent in search results.
    • Federated plugins is another example, where you might not care to have endorsed platform implementations show up in search results, because you really want the app-facing plugin to be the dominant result.

It might be worth highlighting that this is not a form of private packages, and that these can be easily discovered through search by simply including them in the advanced search options.

@kwalrath kwalrath added st.blocked Issue cannot continue until another action completes e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible. t.cli-tools Relates to the dart command line tools labels Sep 21, 2020
@parlough parlough removed the st.blocked Issue cannot continue until another action completes label May 28, 2021
@parlough
Copy link
Member

parlough commented May 31, 2021

Hey @jonasfj, my understanding is this feature is now fully supported by pub.dev so I have removed the blocked label and text.

Beyond what you mentioned in the original issue, are there any new concerns or functionality around the unlisted property that should be considered while documenting this? Are there any other effects besides not showing up in the normal search results?

Also, are there any potential concerns around unlisting a package and then relisting it? I'm assuming that should be fine due to its limited scope, but just making sure.

@atsansone atsansone added dev.packages Relates to package publishing st.triage.ltw Indicates Lead Tech Writer has triaged labels Apr 12, 2023
@jonasfj
Copy link
Member Author

jonasfj commented Apr 28, 2023

Also, are there any potential concerns around unlisting a package and then relisting it? I'm assuming that should be fine due to its limited scope, but just making sure.

Yeah, there should be no concerns here.


The unlisted only affects presentation on pub.dev.

  • It won't show up in search on pub.dev, unless you include the term show:unlisted in search query
  • The package page won't be indexed by search robots <meta name="robots" content="noindex">

This is actually quiet similar to "discontinued".

But unlike "discontinued" it won't show a warning to people using it with dart pub get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev.packages Relates to package publishing e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged t.cli-tools Relates to the dart command line tools
Projects
None yet
Development

No branches or pull requests

4 participants