aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* app/categories/json: optimize the value collectionArthur Zamarin2023-04-281-46/+18
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* node: pin tag for gentoo/tyrianArthur Zamarin2023-04-282-9/+5
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* go: upgrade to 1.20.3Arthur Zamarin2023-04-277-19/+22
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* upgrade to node 20Arthur Zamarin2023-04-264-1313/+2145
| | | | | | | | | - thanks to upgrade of @gentoo/tyrian, we can now upgrade to newer node version (from 13 to 20!) - remove invalid import "packages.js" which was empty and now removed - upgrade some dependencies Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages: cache svg & trim more whitespacesArthur Zamarin2023-04-265-147/+138
| | | | | | | | - cache the svg for version rows, and use "href" for the svg this minifies the HTML and make the browser render a little faster - trim more whitespaces, especially around ranges Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages/suggest: speed up the query and processingArthur Zamarin2023-04-262-34/+20
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages/bugs: improve performanceArthur Zamarin2023-04-253-88/+89
| | | | | | | | - remove a lot of whitespaces - compute the bugs count in normal Go code - build the `.Package.AllBugs` only once Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update readme, add myself as contributorArthur Zamarin2023-04-252-5/+6
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages: cleanup unused codeArthur Zamarin2023-04-256-40/+12
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/package/bugs: fix sidebar shortcutsArthur Zamarin2023-04-251-3/+3
| | | | | Closes: https://bugs.gentoo.org/904888 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages: split relations per page URLArthur Zamarin2023-04-251-19/+33
| | | | | | | | | - not all relations were needed for all pages. split most into per page should improve performance of those pages by not little - perform mostly correct ordering of version in DB, so real correct sort has less comparisons to do Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages: move logic from template to GoArthur Zamarin2023-04-255-82/+78
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater/repology: truncate table only if repology respondedArthur Zamarin2023-04-211-3/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater/bugs: add missing "Gentoo Security" category for searchArthur Zamarin2023-04-211-5/+6
| | | | | Closes: https://bugs.gentoo.org/904703 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix typeahead completion and unvendor d3 and typeaheadArthur Zamarin2023-04-1614-50/+137
| | | | | | | | - fix typeahead completion for useflags and in packages search (was missing import JS) - unvendor d3 and typeahead and upgrade them to latest versions Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* js: small cleanup of unused codeArthur Zamarin2023-04-169-38/+7
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix view with noscriptArthur Zamarin2023-04-154-15/+105
| | | | | | | | | | | | - configure webpack to extract the css - configure webpack mode to be production - add fallback for noscript users with the css In this mode, the website is still far from ideal, for example the icons aren't displayed, but it looks much better now, mostly functional. Closes: https://bugs.gentoo.org/721684 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* docker-compose: improve mount dirArthur Zamarin2023-04-151-2/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* docker-compose: change bind dir for watchtowerArthur Zamarin2023-04-151-1/+6
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/stabilization: add exported files to UIArthur Zamarin2023-04-152-2/+26
| | | | | | | | Shown as a small download button on the right of the title "Stable Requests" under the Stabilization tab, clicking on it will show menu listing the 3 types. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/stabilization: add exported files of stabilization listArthur Zamarin2023-04-153-0/+91
| | | | | | | | | | | | | Add exports in 3 formats: JSON, XML, and plain text consisting of `cat/pkg-ver # message` format. For now this is a "hidden" url, by adding ".json", ".xml", or ".list" to the end of the url, such as:: https://packages.gentoo.org/categories/dev-cpp/stabilization.xml Still need to add a link to those files on the normal stabilization. Closes: https://bugs.gentoo.org/904340 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/maintainer/stabilization: better SQL filteringArthur Zamarin2023-04-152-18/+15
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/maintainer: better page selector and DB sortingArthur Zamarin2023-04-153-35/+19
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater/bugs: fetch old bugsArthur Zamarin2023-04-122-146/+168
| | | | | | | | | | | | | | | | The previous implementation was using the search facility with csv output, which had hard limit of 10000. No passing of offset & limit enabled us to fetch the next pages. By using the REST API, we can fetch beyond that limit without issues. Also implement a better "diff" update, which will only fetch the changed since a week ago. This will reduce the load on the server, and will enable us to update bugs more frequently. Reuse the `last_commit` field in DB to hold the last update time, which enables us to start with "empty" DB and still get the full history on next deploy. Closes: https://bugs.gentoo.org/768174 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages/show: better rendering of newlines in descriptionArthur Zamarin2023-04-104-4/+15
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update node dependenciesArthur Zamarin2023-04-082-139/+96
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update go dependenciesArthur Zamarin2023-04-082-435/+68
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages: show deprecation warningArthur Zamarin2023-04-084-0/+55
| | | | | Closes: https://bugs.gentoo.org/903987 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater: perform metadata updated on full updateArthur Zamarin2023-04-081-10/+11
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update/repo: add package.deprecated parser & collectorArthur Zamarin2023-04-084-1/+169
| | | | | Bug: https://bugs.gentoo.org/903987 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/packages/search: redirect to the first result if there is only oneArthur Zamarin2023-04-071-13/+21
| | | | | | | - if passed cat/pkgname is found, redirect to the package page - redirect to the first result if there is only one Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater/bugs: better matching of atoms to bugArthur Zamarin2023-04-061-2/+2
| | | | | | | | | Better handling when there are whitespaces in the summary which was causing issues with matching. I'm unsure if I fixed the linked bug, but I suspect the answer is still no, I need a reproducer. Bug: https://bugs.gentoo.org/768174 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* small refactorArthur Zamarin2023-04-061-10/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater: dedup the version finding codeArthur Zamarin2023-04-063-230/+148
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update/repology: fix affected packages and latest versionArthur Zamarin2023-04-051-47/+61
| | | | | | | | | | | | - repology json can combine multiple gentoo packages into one "group" (for example normal and "-bin" packages). Mark outdated for all those packages. - when selecting current latest version, instead of using the last entry in array, version compare them and select latest. Closes: https://bugs.gentoo.org/771126 Closes: https://bugs.gentoo.org/892591 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update/bugs: aggregate information per categoryArthur Zamarin2023-04-051-0/+59
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update/bugs: optimize bugs deletionArthur Zamarin2023-04-051-19/+9
| | | | | | | | - fetch only bug ids (since only them are used) - delete package_to_bugs entries using just bug id, so no need to compute affected package. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/categories: enable the Stabilization tabArthur Zamarin2023-04-043-0/+50
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/maintainer: fix maintainer-needed pageArthur Zamarin2023-04-041-1/+1
| | | | | Closes: https://bugs.gentoo.org/888205 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update/pkgcheck: fix category computationArthur Zamarin2023-04-041-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bump to v1.0.3v1.0.3Arthur Zamarin2023-04-041-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/useflags/search: sort results and mark localArthur Zamarin2023-04-012-6/+14
| | | | | | | | | - sort the results based on type (global, local, use_expand) and then text search match level - show local use flags as such in results with the referencing package name Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/useflags/suggest: optimize the SQL queriesArthur Zamarin2023-04-011-30/+18
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/useflags/show: optimize the SQL queriesArthur Zamarin2023-04-011-29/+21
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/useflags/popular: optimize query and computationArthur Zamarin2023-04-011-39/+25
| | | | | | | | Compute the whole result in DB, in a semi-ugly way (perform json array expand, moving the replace char logic to SQL), but resulting in a much better performance, less data transfer and less memory usage. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/useflags: use DB sortingArthur Zamarin2023-04-013-27/+18
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* database: automatically create 'pg_trgm' extensionArthur Zamarin2023-04-011-0/+7
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* app/search: fix case insensitive and full text searchArthur Zamarin2023-03-281-3/+3
| | | | | | | | A collection of stupid mistakes I've done. At least if works now :) Fixes: 4fa6e4b619c0362728955b6ec56eab0e0cbf1e23 Closes: https://bugs.gentoo.org/903305 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* categories: show Stabilization tab placeholderArthur Zamarin2023-03-251-0/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* updater/pkgcheck: collect stabilization data per categoryArthur Zamarin2023-03-251-0/+51
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>