Summary: | packages.gentoo.org updates/ pages has "duplicates" | ||
---|---|---|---|
Product: | Gentoo Infrastructure | Reporter: | Alec Warner <antarus> |
Component: | Other web server issues | Assignee: | Gentoo Packages Website <gpackages> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | gpackages, hadrien.lacour, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alec Warner (RETIRED)
2018-02-18 20:04:43 UTC
So I think partly this is because the timestamps are from indexing (when ingested into index) as opposed from actual git timestamps; so the ordering is based entirely on indices and not git timestamps. This makes sense based on the query: def stabled_packages Rails.cache.fetch('stabled_packages', expires_in: 10.minutes) do Change.find_all_by(:change_type, 'stable', { size: 50, sort: { created_at: { order: 'desc' } } }).map do |change| change.to_os(:change_type, :package, :category, :version, :arches, :created_at) end end end So ideally we would record the git commit ts at import time and re-sort the changes. This does not necessarily address the duplicate entries though. *** Bug 607646 has been marked as a duplicate of this bug. *** We rewrote the entire application. |