- 20 Feb, 2021 1 commit
-
-
Newly supported API Version 6 modifies `type=search` for _by_ type `name-desc`: it now behaves the same as `name-desc` search through the https://aur.archlinux.org/packages/ search page. Search for packages containing the literal keyword `blah blah` AND `haha`: https://aur.archlinux.org/rpc/?v=6&type=search&arg="blah blah"%20haha Search for packages containing the literal keyword `abc 123`: https://aur.archlinux.org/rpc/?v=6&type=search&arg="abc 123" The following example searches for packages that contain `blah` AND `abc`: https://aur.archlinux.org/rpc/?v=6&type=search&arg=blah%20abc The legacy method still searches for packages that contain `blah abc`: https://aur.archlinux.org/rpc/?v=5&type=search&arg=blah%20abc https://aur.archlinux.org/rpc/?v=5&type=search&arg=blah%20abc API Version 6 is currently only considered during a `search` of `name-desc`. Note: This change was written as a solution to https://bugs.archlinux.org/task/49133 . PS: + Some spacing issues fixed in comments. Signed-off-by:
Kevin Morris <kevr.gtalk@gmail.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 05 Sep, 2020 1 commit
-
-
The current package search query is quite poorly optimized and becomes a resource hog when the offsets gets large enough. This DoSes the service. A quick fix is to just ensure we have some limit to the number of hits we return. The current hardcoding of 2500 is based on the following: * 250 hits per page max * 10 pages We can maybe consider having it lower, but it seems easier to just have this a multiple of 250 in the first iteration. Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 13 Feb, 2020 1 commit
-
-
If a db query returned NULL instead of an array, then accessing $row[0] now throws a warning. The undocumented behavior of evaluating to NULL is maintained, and we want to return NULL anyway, so add a check for the value and fall back on the default function return type. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 09 Oct, 2019 1 commit
-
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 07 Oct, 2019 2 commits
-
-
Lukas Fleischer authored
The TTL for package details can be much longer than for generic values since they never change. Note that when an update is pushed via Git, all packages belonging to that package base are deleted and new packages are created. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Cache more package details if the global caching mechanism is enabled. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 06 Oct, 2019 1 commit
-
-
Lukas Fleischer authored
The package provider and dependency queries are quite CPU-intensive and usually yield rather small result sets. Cache these values if the global caching mechanism is enabled. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 14 Jan, 2019 1 commit
-
-
Signed-off-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org>
-
- 06 Aug, 2018 2 commits
-
-
Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 24 Feb, 2018 1 commit
-
-
For some reason, running the SELECT .. WHERE .. OR .. query takes e.g. 58ms on a randomly generated db for some dependency name. Splitting the OR into two dedicated queries and UNIONing the result takes only 0.42ms. On the Arch Linux installation, searching for the providers of e.g. mongodb takes >=110ms when not cached by the query cache. The new query takes <1ms even when not cached. Signed-off-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Dec, 2017 1 commit
-
-
In commit 8c98db0b support was added for package co-maintainers to pin comments in addition to maintainers. Due to a typo, the SQL query was reset halfway through and only added the co-maintainer IDs to the list of allowed users. Fixes FS#56783. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 06 Nov, 2017 1 commit
-
-
Lukas Fleischer authored
Implements FS#56255. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 19 Apr, 2017 1 commit
-
-
Lukas Fleischer authored
Split optional dependency descriptions from dependency names before storing them in the database and use a separate column to store the descriptions. This allows us to simplify and optimize the SQL queries in pkg_dependencies() as well as pkg_required(). Suggested-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 12 Feb, 2017 1 commit
-
-
Currently, each source file which is an external link (http://, https://, ...) is a clickable link. This commit extends the behaviour by making files from the repository clickable as well. The link brings the user to the corresponding cgit page. Also, the link to the PKGBUILD is altered to make the configuration more consistent. Signed-off-by:
Janne Heß <jannehess@gmail.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 08 Feb, 2017 2 commits
-
-
Lukas Fleischer authored
As a follow-up to commit 6cb8c041 (Implement co-maintainer search, 2017-01-26), add an option to search for both maintainers and co-maintainers at the same time. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 03 Feb, 2017 2 commits
-
-
Lukas Fleischer authored
* Pass search parameters using an associative array instead of $_GET. * Add a boolean parameter to enable and disable headers/footers. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
This makes it easier to display search results without showing the search form. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 28 Jan, 2017 1 commit
-
-
Lukas Fleischer authored
Add an option to filter package search results by co-maintainer. Partly fixes FS#45591. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 26 Jun, 2016 1 commit
-
-
Lukas Fleischer authored
Introduce a configuration option max_depends which can be used to specify a maximum number of (reverse) dependencies to display on the package details pages. Fixes FS#49059. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 10 May, 2016 1 commit
-
-
Lukas Fleischer authored
Introduce a configuration option max_depends which can be used to specify a maximum number of (reverse) dependencies to display on the package details pages. Fixes FS#49059. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 19 Feb, 2016 1 commit
-
-
In pkg_comments.php, the $pinned variable is used to determine whether the template is supposed to print all comments or pinned comments only. If the $pinned variable is unset, the top 10 comments are printed, followed by an "All comments" link. If the $pinned variable is set, the pinned comments are printed and the "All comments" link below the comment listing is skipped. Thus, we need to make sure that this variable is always unset at the time we include the template to display all comments, even if it was empty before. Fixes FS#48194. Signed-off-by:
Mark Weiman <mark.weiman@markzz.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 07 Feb, 2016 1 commit
-
-
Lukas Fleischer authored
As a preparatory step to adding support for package notifications on events other than comments, rename the database table accordingly. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 12 Dec, 2015 1 commit
-
-
Adds capability to pin comments before others. Implements FS#10863. Signed-off-by:
Mark Weiman <mark.weiman@markzz.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 24 Oct, 2015 5 commits
-
-
Lukas Fleischer authored
If a dependency neither exists in the official repositories nor in the AUR, make it appear bold red. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Remove the "(unknown)" suffix that used to be shown for optional dependencies without a description. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
When obtaining provisions using pkg_providers(), we already include virtual providers from the official repositories, virtual providers from the AUR and trivial providers (i.e. packages having the given name) from the official repositories. Include trivial providers from the AUR as well. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Since commit 16765d55 (Track providers in the official repositories, 2015-10-21), we know all packages and virtual provisions from the official repositories. Always obtain and display all providers from both the official repositories and the AUR. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 21 Oct, 2015 1 commit
-
-
Lukas Fleischer authored
Maintain a list of virtual provisions of packages from the official binary package repositories. The list can be updated using the aurblup script, e.g. via a cronjob. This allows for adding proper links to package dependencies: If an AUR package depends on a package from the official repositories (or on a name provided by a package from the official repositories), add a link to the corresponding archweb package details page. If an AUR package depends on another AUR package (or on a name provided by another AUR package), add a link to the corresponding aurweb package details page. Otherwise, just display the name and do not add a link at all. Fixes FS#46549. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 25 Sep, 2015 1 commit
-
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Sep, 2015 1 commit
-
-
Implements FS#45619. Signed-off-by:
Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 20 Sep, 2015 1 commit
-
-
Lukas Fleischer authored
Use a better description for sorting by modification time, as it is not clear whether "Age" refers to the package creation date or to the modification date. The possibility to sort by "Age" is kept internally (but hidden from the user interface) such that old links to search results still work. Fixes FS#46319. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 18 Sep, 2015 2 commits
-
-
Lukas Fleischer authored
When requesting package details, instead of performing another SQL query to obtain the package name, extract the name from the result of the package details query. Also, drop pkg_name_from_id() which is no longer needed after this optimization. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
In 74edb6fe (Use Git repositories to store packages, 2014-06-06), package creation was moved to the Python backend. Remove several PHP functions that are no longer needed. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 17 Sep, 2015 2 commits
-
-
Lukas Fleischer authored
Implements FS#14125. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Do not use the same function for generating dependency and inverse dependency links. Instead, factor out common code and create two separate functions for those (rather different) functionalities. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 16 Sep, 2015 1 commit
-
-
Lukas Fleischer authored
For all "virtual provisions" in package dependencies, show links to the actual packages providing the dependency. This partly implements FS#14125. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 30 Aug, 2015 1 commit
-
-
Lukas Fleischer authored
Sometimes, a user accidentally flags a package out-of-date. Allow users to unflag packages that they flagged themselves, thereby providing a way to undo these actions. Implements FS#46145. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-