Various issues with pkgdb application pages (outdated pkg versions and EOL Fedora releases, Fedora releases unsorted, misleading applications) #3454
Labels
No labels
announcement
anubis
authentication
aws
backlog
blocked
bodhi
ci
cloud
communishift
copr
database
day-to-day
dc-move
deprecated
dev
discourse
dns
downloads
easyfix
epel
firmitas
forgejo_migration
Gain
High
Gain
Low
Gain
Medium
gitlab
greenwave
hardware
help wanted
high-trouble
koji
koschei
lists
low-trouble
medium-trouble
mirrorlists
monitoring
Needs investigation
odcs
OpenShift
ops
outage
packager_workflow_blocker
pagure
permissions
Priority
Needs Review
Priority
Next Meeting
Priority
🔥 URGENT 🔥
Priority
Waiting on Assignee
Priority
Waiting on External
Priority
Waiting on Reporter
rabbitmq
release-monitoring
releng
request-for-resources
s390x
security
SMTP
sprint-0
sprint-1
src.fp.o
staging
unfreeze
waiverdb
websites-general
wiki
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/tickets#3454
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
= bug description =
The pkgdb application pages for Firefox and GIMP (and probably others as well) show outdated version information. For Fedora 17, Firefox is reported to be version 12 while 14 is available as a stable update, GIMP is reported to be 2.8.0-RC1 while it's really 2.8.0 (final, and 2.8.2 soon). It can be especially harmful as the "application" view may well be what somebody who doesn't know Fedora uses to find out which versions are in the current Fedora release which may lead that person to not use Fedora if it lists an old version. This actually happened to somebody curious about Fedora today who was surprised to learn that F-17 does have Firefox 14 and not 12, which is why I'm reporting here.
The application pages list old, EOL Fedora releases.
The packages on the application pages are grouped per Fedora release. These are unsorted, for GIMP they are listed as f16, devel, F-13, f17, f14, F-12, f15, F-11, for Firefox it's a different order entirely.
If you search for "gimp" in applications the first hit "Gimp" leads to the kdebase package in Fedora 12.
= bug analysis =
Just guesses:
Missing or erroneous consolidation between bodhi updates and pkgdb applications.
Data for EOL releases are still kept in the pkgdb applications database, no filtering is done.
Release versions are displayed in the order they are returned from the DB, or a hash/dict or similar.
The kdebase package shipped a desktop file in F-12 for kappfinder, probably with "Name=Gimp". I'm not sure if there is a quick way to block such erroneous entries in the pkgdb "applications" view (without hard-coding things in pkgdb code which results in a long time before it's rolled out).
= fix recommendation =
Near term: Regularly pull new updates (cronjob?), throw out old data (e.g. if desktop file data changes, or is moved from package A to package B).
Long term (HANDWAVY-FUTURE): Like 1.1., but push-based, triggered when a bodhi update is tagged into, or out of stable.
Filter out EOL releases when grouping builds/packages.
Sort Fedora release groups, e.g. chronologically from latest to oldest stable release, then devel.
This should be dealt with by 2. already, if something like that ever happens again it would need to be dealt with on a case-by-case basis (e.g. to hide such an erroneous "application" which really isn't), perhaps this needs some code, prophylactically (HANDWAVY-FUTURE?).
Argh, markdown sucks for nested lists. The last three items should be on the outer level again.
The near-term plan is to migrate pieces of pkgdb's functionality (which is old and suffering from bitrot) over to the new "packages" webapp. For instance, your search for gimp would redirect to https://apps.fedoraproject.org/packages/s/gimp Furthermore, firefox has the correct version/build listed: https://apps.fedoraproject.org/packages/firefox
We have a wiki page documenting/brainstorming what pieces we want to move: https://fedoraproject.org/wiki/Pkgdb_migration
We intend for pkgdb to retain control over requesting and granting ACLs.
(We could definitely use an extra brain to help think over what we're missing.)
So, does https://apps.fedoraproject.org/packages/ address your concerns/issues?
As noted we are working on migrating off the pkgdb parts you mention... so, not sure what else is pending here.
Should we close this and continue with that work?
Closing after 5 months since last comment.