- 16 Oct, 2021 6 commits
-
-
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 10 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>
-
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
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
Display Delete, Merge and Disown actions based on user credentials. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-