- 19 Oct, 2021 13 commits
-
-
Kevin Morris authored
Previously, we passed the straight up request type instance from SQLAlchemy and had a .title() function that was transparently treating the instance the same as the instance's Name in terms of notify.py's use of it. This commit removes that transparent behavior; it was not actually intended. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
-
Kevin Morris authored
A new configurable env var has been introduced to production Docker: MARIADB_SOCKET_DIR, which should contain a path to a directory containing `mysqld.sock` on the Docker host. Note: The database name, user and password can be configured by modifying `conf/config.dev` before building the Docker image. This feature only works in production mode, when specifying: $ export MARIADB_SOCKET_DIR=/var/run/mysqld $ docker-compose -f docker-compose.yml -f docker-compose.prod.yml ... Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Steven Guikal authored
Signed-off-by:
Steven Guikal <void@fluix.one>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Steven Guikal authored
-
This is in addition to the current recipients. Co-maintainers should also be made aware when their package has pending requests. NOTE: This commit was slightly modified to resolve cherry-pick conflicts in `pu`.
-
Kevin Morris authored
git-cliff is a tool which allows us to generate changelog based off of conventional commits in the repository. This commit provides an initial cliff.toml configuration file which formats changelog output with tables and branch state metadata. Upstream: https://github.com/orhun/git-cliff Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
The new `aurweb-image` service does not perform any purpose other than providing a build definition for 'aurweb:latest'. With this, `docker-compose build` now just runs once for the `aurweb-image` service, which builds the image used by all other services. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
The POST /packages route takes an `action`, `merge_into` and `confirm` form data arguments. It then routes over to `action`'s callback provided by `PACKAGE_ACTIONS`. This commit does not implement actions, but mocks out the flow we would expect from the POST route. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 18 Oct, 2021 2 commits
-
-
Steven Guikal authored
Signed-off-by:
Steven Guikal <void@fluix.one>
-
Steven Guikal authored
Signed-off-by:
Steven Guikal <void@fluix.one>
-
- 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 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-