This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git. Pull mirroring updated .
  1. 06 Jan, 2022 5 commits
  2. 05 Jan, 2022 3 commits
  3. 04 Jan, 2022 6 commits
  4. 03 Jan, 2022 1 commit
    • Kevin Morris's avatar
      feat(auth): add requires_{auth,guest} decorators · 51b60f42
      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's avatarKevin Morris <kevr@0cost.org>
      51b60f42
  5. 02 Jan, 2022 4 commits
    • Kevin Morris's avatar
      change(python): centralize router inclusion · 3e048e96
      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's avatarKevin Morris <kevr@0cost.org>
      3e048e96
    • Kevin Morris's avatar
      change(python): move request & pkgbase request routes · a1f46611
      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's avatarKevin Morris <kevr@0cost.org>
      a1f46611
    • Kevin Morris's avatar
      change(python): move comaint routes to pkgbase router · a77d44e9
      Kevin Morris authored
      
      
      Also brings over comaint utility functions to the pkgbase
      package.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      a77d44e9
    • Kevin Morris's avatar
      change(python): put pkgbase routes & impl into their own modules · bd2ad9b6
      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's avatarKevin Morris <kevr@0cost.org>
      bd2ad9b6
  6. 01 Jan, 2022 5 commits
  7. 31 Dec, 2021 3 commits
  8. 30 Dec, 2021 1 commit
    • Kevin Morris's avatar
      change(python): refactor & centralize comaintainer management · fc229d75
      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's avatarKevin Morris <kevr@0cost.org>
      fc229d75
  9. 29 Dec, 2021 2 commits
  10. 28 Dec, 2021 4 commits
  11. 27 Dec, 2021 2 commits
  12. 26 Dec, 2021 1 commit
  13. 25 Dec, 2021 1 commit
  14. 22 Dec, 2021 2 commits