This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git.
Pull mirroring updated .
- 17 Oct, 2021 6 commits
-
-
Kevin Morris authored
Supply FASTAPI_BACKEND=gunicorn and FASTAPI_WORKERS=<threads_num> to docker-compose up to use the gunicorn backend. This is defaulted in production to gunicorn, but FASTAPI_WORKERS should definitely be configured by any production deployment. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes: #133 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This gives developers the ability to import models without importing them directly from their module: from aurweb.models import Ban, AccountType This provides more conciseness: from aurweb import models def some_func(ban: models.Ban): pass def some_other_func(user: models.User): pass This more aligns with a Django-style of core model bases. NOTE: Docker images must be rebuilt with this change, as setup.cfg has changed. Old Docker images will cause flake8 violation reports. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Usage of EXPECTATION_FAILED in these cases is totally wrong. EXPECTATION_FAILED is a failure in terms of the HTTP protocol, not user input. Change all usage of EXPECTATION_FAILED to BAD_REQUEST. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 16 Oct, 2021 7 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Now, we allow the direct relationships and their foreign keys to be set in all of our models. Previously, we constrained this to direct relationships, and this forced users to perform a query in most situations to satisfy that requirement. Now, IDs can be passed directly. Additionally, this change removes the need for extraneous imports when users which to use relationships. We now import and use models directly instead of passing string-references to them. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Three new root directories are ignored by git: - /personal/ - Personal tools excluded by git. - /notes/ - Personal notes excluded by git. - /vendor/ - PHP Composer vendor directory. We don't want to commit this to git. And one specific root file: - /taskell.md - Data file for the `taskell` program, used for task tracking. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
In some cases, when tests fail through Docker, the database ends up in an invalid state. This causes subsequent runs to error out with non-sensical DB errors. The `test_initdb.py` test suite runs tests which setup every modifiable table in the database, so let's just run it first here to avoid any invalid test DB state. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Previously, `result` was being used which was directly set to `pkgbase` before rendering the actions.html partial. It didn't make much sense. This commit cleans things up a bit. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 15 Oct, 2021 5 commits
-
-
Kevin Morris authored
Closes: #131 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>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
- 13 Oct, 2021 1 commit
-
-
Kevin Morris authored
Affects: templates/partials/packages/search_actions.html Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 10 Oct, 2021 4 commits
-
-
Kevin Morris authored
This was updating offsets and causing unintended behavior. We should be a bit more functional anyway. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
These functions will allow us to more easily check errors or success messages when testing routes. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This was missed in the [un]flag (post) commit. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 08 Oct, 2021 14 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
The `aurweb.scripts.popupdate` script is used to maintain the NumVotes and Popularity field. We could do the NumVotes change more simply; however, since this is already a long-term implementation, we're going to use it until we move scripts over to ORM. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
-
Kevin Morris authored
Additionally, clean up some controversial PEP-8 warnings by removing the '+' string concatenation. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
In addition, we've had to add cascade arguments to backref so sqlalchemy treats the relationships as proper cascades. Furthermore, our pkgbase actions template was not rendering actions properly based on TU credentials. 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>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
A helper which allows us to apply a specific function to each item in an iterable. 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>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 07 Oct, 2021 3 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
We pretty much want @auth_required to send users to login if we enforce auth requirements but don't otherwise specify a way to deal with it. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-