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

Project dependencies badge #69

Open
Komzpa opened this issue Aug 4, 2019 · 10 comments
Open

Project dependencies badge #69

Komzpa opened this issue Aug 4, 2019 · 10 comments
Labels

Comments

@Komzpa
Copy link

Komzpa commented Aug 4, 2019

Hello.

In PostGIS we are fighting a packaging issue when distributions upgrade PostGIS version but forget to upgrade or build the dependencies, rendering significant amount of improvement unavailable to end users.

Badges allowed us to fit the whole issue into one screen. Thanks!
https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS

There are problems with this approach:

  • individual badges have different lists of distributions, so it can't be traced as "single line". If they are glued to a single image that can be fixed.
  • it shows a bunch of old distributions that will never get updated. Such grouped badge can be sorted by number of recent versions in distribution, sinking stale distros and decluttering the view.

Can this be done as a single badge, or is there a better way to solve it?

@AMDmi3
Copy link
Member

AMDmi3 commented Aug 12, 2019

Hey Darafei!

Well, some projects already compose matrices out of small version badges, see for example:

This would likely require you to write a script to generate table code in trac syntax, but it would work right away and it allows you to arrange the table in the most suitable way.

But yes, it seems like there's demand for the ready-to-use matrix badge. It should be not too hard to do.

AMDmi3 referenced this issue in repology/repology-updater Aug 16, 2019
@AMDmi3
Copy link
Member

AMDmi3 commented Aug 16, 2019

So, how does this look like?

PostGIS and dependencies packaging status

@luzpaz
Copy link
Contributor

luzpaz commented Aug 16, 2019

That looks awesome!

@AMDmi3
Copy link
Member

AMDmi3 commented Aug 16, 2019

This still needs some polish, see repology/repology-updater#894. The quirky part is how to limit repositories to display. The example above only shows repos which have ALL requested packages (require_all=1 param). Other options are to specify list of repositories manually (repos= param, list of repology internal names):

PostGIS and dependencies packaging status

or to show repositories which have ANY of requested packages (the default):

PostGIS and dependencies packaging status

@Komzpa
Copy link
Author

Komzpa commented Aug 16, 2019

Awesome look.

Would be good to somehow let CentOS 6 sink to the end of it. Something like ORDER BY number_of_green_items desc, distro_name may be able to take care of that.

@AMDmi3
Copy link
Member

AMDmi3 commented Aug 16, 2019

I've edited the comment above. There's possibility to specify list of repositories manually, and I plan to allow more automatic filtering by packages presence, e.g. an ability to specify mandatory packages (e.g. to only show repos which package PostGIS, regardless of dependency status). Can play with sorting too. Detailed usecases are welcome. Do you specifically need a list of all repos with sorting by freshness?

@AMDmi3
Copy link
Member

AMDmi3 commented Aug 16, 2019

Showcase

Pidgin

Based on https://d.pidgin.im/wiki/Dependencies/3.0.0

Pidgin dependencies packaging status

Smartmontools

Based on https://www.smartmontools.org/wiki/Packages

Smartmontools packaging status

0 A.D.

Based on http://s06eye.co.uk/0ad/linuxDeps/
(may be too large for GitHub to display)

0 A.D. dependencies packaging status

Repology

(may be too large for GitHub to display)

Repology dependencies packaging status

@Komzpa
Copy link
Author

Komzpa commented Aug 16, 2019

I want a page that's aimed at these users:

  • (primarily) a new user. "I need postgis server. My provider lets me choose between Fedora, Debian, Ubuntu 16.04 and 19.04. Which do I click? Right, Debian has latest versions of everything, so be it.". Greenest lines better be on top.

  • distro maintainer. "People keep telling our GIS support is bad, even though we packaged last postgis minutes after it came out. Why is it so? Oh, we forgot to package sfcgal and protobuf-c, we need to add it." Better not to hide rows with optional dependencies not packaged.

  • upgrade advocate. "Look, I know Ubuntu 14.04 is LTS, is not End of Life, and is our corporate standard. But look - this PostGIS page says all of the versions of all the things we use there are End of Life individually. It's the last distro in the list. We have to upgrade now." Completely dead distro combos are better be kept there too, sank to the end.

@Komzpa
Copy link
Author

Komzpa commented Aug 16, 2019

Tried embedding badge into trac. "," in the url are eaten up by the parser. %2C passed though.

Live on our version page, thanks!
https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS#Packagingstatus

@luzpaz
Copy link
Contributor

luzpaz commented Aug 31, 2019

@AMDmi3 how do i test one of these matrix badges ?

@AMDmi3 AMDmi3 transferred this issue from repology/repology-updater Oct 4, 2019
@AMDmi3 AMDmi3 added the badges label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants