packagist icon indicating copy to clipboard operation
packagist copied to clipboard

[RFC] displaying latest version in search engine view result

Open 94noni opened this issue 1 year ago • 1 comments

Hi

I would like to know if it can be useful to display such info on http://packagist.org/ website

here is an example: Capture d’écran 2022-07-28 à 14 08 27


We can imagine storing such data in the package when a new version is added to it And index such data when indexing all data for the search engine

94noni avatar Jul 28 '22 12:07 94noni

What's the value of knowing the last version in a listing though?

Seldaek avatar Jul 30 '22 12:07 Seldaek

I think npm provides similar feature: image image

Not sure if it provides much value here but I think the last publish date would be helpful here to decide which package is still actively maintained without going to the details page.

IonBazan avatar Sep 06 '22 07:09 IonBazan

@Seldaek @IonBazan thx for stopping here

What's the value of knowing the last version in a listing though?

mostly yes to know how a package evolve, some projects has little deps tho knowing a packages have new versions is good also yes with the date, both could be good (mimic the npm page)

it was just an idea I got this summer tho wanted to write it down, if you think it is not that relevant, could be closed for now, thanks

94noni avatar Sep 06 '22 07:09 94noni

I would argue that the search results should give info that helps a developer to choose if a package is worth investigating or not - the detail view will be used anyways btw. I can see how stars and downloads help with that, but i don't think the version number is really relevant. the only thing i can see is that it would be worth providing an info about stability of a package, like is there a stable version or not for example

chr-hertel avatar Sep 13 '22 19:09 chr-hertel

I can see some value in the last release date to see if something's been "dead" for years, although in some cases I'd argue stuff is just stable and working and doesn't need work and thus it's fine. For example https://packagist.org/packages/seld/cli-prompt is almost 2y stale and before that it was almost 3y.. yet it "just works".

So even the date needs to be taken with a grain of salt, and newer isn't necessarily better.

The version is even less "comparable" between packages IMO, so why show it in a list?

Overall not so convinced that more info is more value.

Seldaek avatar Sep 14 '22 15:09 Seldaek

True and more important for me while evaluation is the list and versions of dependencies, but that's definetly off scope for a list of results.

Filtering for compatibility with specific PHP versions would be interesting though

chr-hertel avatar Sep 14 '22 15:09 chr-hertel

@Seldaek @chr-hertel fair enough, thx for taking time to comment

then we can consider closing? if it does not add much value for majority ppl

or you want to keep open to discus what can be added (not the latest version) but others data

94noni avatar Sep 14 '22 16:09 94noni

Yeah I think I'd rather close then. We can always revisit later if there are more compelling arguments

Seldaek avatar Sep 14 '22 19:09 Seldaek

PR as discussion draft opened here https://github.com/composer/packagist/pull/1410 Feel free to comment :)

94noni avatar Feb 24 '24 09:02 94noni