- 07 Jan, 2022 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 06 Jan, 2022 6 commits
-
-
Kevin Morris authored
Previous conversion was causing a straight up bug when submitting new proposals. This patch fixes that issue. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes #237 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes #238 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
In addition, we display the Voters partial regardless of them existing or not; with no voters, an empty Voters list is displayed. Closes #236 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes #235 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 05 Jan, 2022 3 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This was stopping us from using numerous records for each dep type. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 04 Jan, 2022 6 commits
-
-
Kevin Morris authored
Conflicts, Provides and Replaces did not have consistent ordering with PHP. This patch fixes that issue. Closes #228 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes #229 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This was redirecting us to the package which we merged, leading us into a 404. This fixes that issue by instead redirecting us into the target we merge into. Closes #231 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>
-
Signed-off-by:
Steven Guikal <void@fluix.one>
-
- 03 Jan, 2022 1 commit
-
-
Kevin Morris authored
These new decorators are meant to be used without any arguments and provide aliases to auth_required: - `auth_required(True) -> requires_auth` - `auth_required(False) -> requires_guest` These decorators should be used without arguments, e.g.: @router.get("/") @requires_guest async def my_route(request: Request): return HTMLResponse() Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 02 Jan, 2022 4 commits
-
-
Kevin Morris authored
Now, when we want to add, remove routes, our base routes should be defined in aurweb.routers.__init__.APP_ROUTES. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Move package request routes and related routes to their respective routers. In addition, move some utility used for requests over from `aurweb.packages`. Introduced routers: - `aurweb.routers.requests` Introduced package: - `aurweb.requests` Introduced module: - `aurweb.requests.util` Changes: - Moved `aurweb.packages.validate` to `aurweb.pkgbase.validate` - Moved requests listing & request closure routes to `aurweb.routers.requests` - Moved pkgbase request creation route to `aurweb.routers.pkgbase` - Moved `get_pkgreq_by_id` from `aurweb.packages.util` to `aurweb.requests.util` and fixed its return type hint. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Also brings over comaint utility functions to the pkgbase package. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Introduces new router: - `aurweb.routers.pkgbase` Introduces new package: - `aurweb.pkgbase` Introduces new modules: - `aurweb.pkgbase.actions` - `aurweb.pkgbase.util` Changes: - `pkgbase_{action}_instance` functions are now located in `aurweb.pkgbase.actions`. - `pkgbase`-wise routes have been moved to `aurweb.routers.pkgbase`. - `make_single_context` was moved to `aurweb.pkgbase.util.make_context`. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 01 Jan, 2022 5 commits
-
-
Kevin Morris authored
`delete_package` was processing package deletions through `Package` instances. This doesn't make sense; if we delete a package, we want to target its package base. This new function vastly simplifies the previous. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Previously, when the relationship was None, an <a> would still wrap the None value erroneously. This addresses that for all three user fields. In addition, this commit adds direct testing for the `templates/partials/packages/details.html` template. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This new constructor is a beginning to making Request a bit more easy to deal with for standard testing needs. With this commit, users can now specify a `user` and `authenticated` state while constructing a Request: request = Request(user=some_user, authenticated=True) By default, the `authenticated` kwarg is set to False and `user` is set to `aurweb.testing.requests.User()`. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 31 Dec, 2021 3 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Closes #226 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This removes an unneeded query from our path. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 30 Dec, 2021 1 commit
-
-
Kevin Morris authored
This commit centralizes comaintainer management with a few new functions and uses them more appropriately within routes: - aurweb.packages.util.latest_priority - aurweb.packages.util.remove_comaintainer - aurweb.packages.util.remove_comaintainers - aurweb.packages.util.add_comaintainer - aurweb.packages.util.add_comaintainers - aurweb.packages.util.rotate_comaintainers Closes #117 Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 29 Dec, 2021 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
As a maintainer, we don't deal with requests at all. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 28 Dec, 2021 4 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
While this does make more sense to me personally, there is no need to change how the AUR treats its users; it has been accepted for ages and not found to be ridden with flaws. Stay with the tried and true method. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
The credential alone does not completely encapsulate our new requirements for editing an account. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 27 Dec, 2021 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 26 Dec, 2021 1 commit
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-