This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Sep 25, 2021
-
-
Hunter Wittenborn authored
Also modified returned data for test_rpc_no_dependencies() in test/test_rpc_info.py, as there was a key that contained an incorrect value for some reason.
-
- Sep 23, 2021
-
-
Hunter Wittenborn authored
-
- Sep 22, 2021
-
-
Hunter Wittenborn authored
Also fixed how arguments are passed to run_search_dependencies() We'll be squashing all of these commits so it shouldn't matter too much that I'm combining like this :)
-
Hunter Wittenborn authored
-
Hunter Wittenborn authored
Moved over to the PackageSearch.search_by() function, which just required specific what we want to search by in addition to the package name.
-
Hunter Wittenborn authored
Added kwargs-styled arguments to all functions so we can more easily add arguments in the future
-
Hunter Wittenborn authored
-
Hunter Wittenborn authored
-
- Sep 21, 2021
-
-
Kevin Morris authored
-
Kevin Morris authored
This was required for the GitLab coverage badge to get the % of coverage. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 20, 2021
-
-
Kevin Morris authored
We'll need to add tests for these things at some point. However, I'd like to include this script in here immediately for ease of testing or administration in general. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 19, 2021
-
-
Kevin Morris authored
In terms of performance, most queries on this page win over PHP in query times, with the exception of sorting by Voted or Notify (archlinux/aurweb#102 ). Otherwise, there are a few modifications: described below. * Pagination * The `paginate` Python module has been used in the FastAPI project here to implement paging on the packages search page. This changes how pagination is displayed, however it serves the same purpose. We'll take advantage of this module in other places as well. * Form action * The form action for actions now use `POST /packages` to perform. This is currently implemented and will be addressed in a follow-up commit. * Input names and values * Input names and values have been modified to satisfy the snake_case naming convention we'd like to use as much as possible. * Some input names and values were modified to comply with FastAPI Forms: (IDs[<id>]) -> (IDs, <id>). Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
A pager that can be used for paginated result tables. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
We'll need to use these, so this commit implements them here with tests for coverage. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This one returns true if the user is either a Trusted User or a Developer. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
With upstream at https://github.com/Pylons/paginate , this module helps us deal with pagination without reinventing the wheel. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Previously, we were running a single ORM query for every single package to check for its voted or notified states. Now, we perform a single ORM query for each of the set of voted or notified packages in relation with the request user. This improves performance drastically at the expense of some manual code additions and set-dependency; i.e. we add a bit more complexity and roundabout way of getting our data. Closes: archlinux/aurweb#102 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 17, 2021
-
-
Kevin Morris authored
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
PHP does this, we should persist the behavior here for v=5. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 16, 2021
-
-
Hunter Wittenborn authored
Also removed some redundant return statements
-
Hunter Wittenborn authored
- Removed 'if type == "info"' as requested by @kevr - Checked for valid type against the type dictionary, removing the needed to maintain two separate spots for type definitions.
-
Hunter Wittenborn authored
-
- Sep 13, 2021
-
-
Kevin Morris authored
Additionally, simplify some of the certificate generation scripts and rename `ca.ext` to `localhost.ext`. Certificates should be regenerated as of this commit. Users can run `rm -rf ./cache/*` to clear out any existing certs, which will cause the `ca` service to regenerate them. Additionally, since Docker infrastructure has been modified, a new `aurweb:latest` image will need to be built. See https://gitlab.archlinux.org/archlinux/aurweb/-/wikis/Docker Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 12, 2021
-
-
Kevin Morris authored
This was incorrectly displaying a comment section header when no comments existed. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Hunter Wittenborn authored
-
- Sep 09, 2021
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
The "Account Type" selection was not properly being rendered due to an incorrect equality. This has been fixed in templates/partials/account_form.html. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Provides a single source of truth for mariadb database initialization. Previously, php-fpm and fastapi were racing against each other; while this wasn't an issue, it was very messy. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
The update hook was incorrectly linked to /usr/local/bin/aurweb-git-update, which was neglected during the original patch regarding dependency conversion to `poetry`. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 05, 2021
-
-
-
Hunter Wittenborn authored
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
PHP was doing this correctly, but FastAPI was doing this in it's exec script @ docker/scripts/run-fastapi.sh. Modify the fastapi service so that it does the same thing as PHP, and the existing "fastapi restart quirk" is no more. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
As root, seems that $HOME doesn't work like I expected it to. Tested this before, but I apparently had some cache still holding on. Fixing the issue in this commit here. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- Sep 04, 2021
-
-
Kevin Morris authored
As the new-age Python package manager, Poetry brings a lot of good additions to the table. It allows us to more easily deal with virtualenvs for the project and resolve dependencies. As of this commit, `requirements.txt` is replaced by Poetry, configured at `pyproject.toml`. In Docker and GitLab, we currently use Poetry in a root fashion. We should work toward purely using virtualenvs in Docker, but, for now we'd like to move forward with other things. The project can still be installed to a virtualenv and used on a user's system through Poetry; it is just not yet doing so in Docker. Modifications: * docker/scripts/install-deps.sh * Remove python dependencies. * conf/config.defaults * Script paths have been updated to use '/usr/bin'. * docker/git-entrypoint.sh * Use '/usr/bin/aurweb-git-auth' instead of '/usr/local/bin/aurweb-git-auth'. Additions: * docker/scripts/install-python-deps.sh * A script used purely to install Python dependencies with Poetry. This has to be used within the aurweb project directory and requires system-wide dependencies are installed beforehand. * Also upgrades system-wide pip. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This was already in the repository in ./COPYING This reverts commit 1b452d12.
-