This project is mirrored from https://gitlab.archlinux.org/archlinux/aurweb.git.
Pull mirroring updated .
- 01 Nov, 2021 1 commit
-
-
Kevin Morris authored
This is not used anymore in our FastAPI code, however, for back-compatibility with pre-FastAPI scripts, we need it. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 31 Oct, 2021 9 commits
-
-
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
We were selecting the entire record; we should just select the Name column as done in this commit. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
If the If-None-Match header is supplied with a previously obtained ETag from the same query, a 304 Not Modified is returned with no content. This allows clients to completely leverage the ETag header. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Since we're in the hot path, a constant re.compiled JSONP_EXPR is defined for checks against the callback. Additionally, reorganized `content_type` and `content` to avoid performing a DB query when we encounter a regex mismatch. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This change introduces alternate rendering of text/javascript JSONP-compatible callback content. The `examples/jsonp.html` HTML document can be used to test this functionality against a running aurweb server. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
When by == 'maintainer', we allow an unspecified keyword, resulting in a search of orphan packages. Fix our search check so that when no arg is given, it is set to an empty str(). We already check for valid args when type is not maintainer, so there's no need to worry about other args falling through. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This commit introduces a PackageSearch-derivative class: `RPCSearch`. This derivative modifies callback behavior of PackageSearch to suit RPC searches, including [make|check|opt]depends `by` types. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 30 Oct, 2021 14 commits
-
-
Kevin Morris authored
-
Kevin Morris authored
In this case, package search should return orphaned packages. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
-
Kevin Morris authored
The ETag header can be used for client-side caching. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
The previous method was super bad. Even if a variable was declared, if it was empty, we would run into a false-positive. Additionally, the previous method did not allow us to not specify the COMMIT_HASH variable; which is problematic for development environments. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This simply decouples depends and relations population into their own helper functions. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This is needed so that users can edit comments when they don't have Javascript being used in their browser. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This definitely leaked through in more areas. We'll need to reuse this new utility function in a few other routes in upcoming commits. 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
With this change, we've decoupled some partials shared between `/pkgbase/{name}` and `/account/{username}/comments`. The comment actions template now resolves its package base via the `comment` instance instead of requiring `pkgbase`. We've also modified the existing package comment routes to support execution from any location using the `next` parameter. This allows us to reuse code from package comments for account comments actions. Moved the majority of comment editing javascript to its own .js file. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 28 Oct, 2021 11 commits
-
-
Kevin Morris authored
This commit contains a base template of account comments in sorted order (based on ColumnTS.desc). 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
This uses the internally defined docker volume `git_data`, but the variable is configurable for changes in the future. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
In addition, specify FASTAPI_BACKEND=gunicorn for deployment. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Previously CGIT_CLONE_PREFIX_(PHP|FASTAPI), we found that we could use the same env var in multiple places, including non-cgit-clone-prefix areas. So, they were renamed, and one additional prefix was added. - CGIT_CLONE_PREFIX_PHP -> AURWEB_PHP_PREFIX - Used for cgit's clone prefix and AUR_CONFIG's aur_location for PHP - CGIT_CLONE_PREFIX_FASTAPI -> AURWEB_FASTAPI_PREFIX - Used for cgit's clone prefix and AUR_CONFIG's aur_location for FastAPI - AURWEB_SSHD_PREFIX - Used for aurweb's sshd clone prefix shown on package pages Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Additionally, for now, no-op usage of the MARIADB_SOCKET_DIR environment variable. This is particularly useful for a serious production setup, but we don't currently use that. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
The infrastructure changes are here[1]. [1] infrastructure!492
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
This change removes cookie re-emission of AURLANG and AURTZ, adds the AURREMEMBER cookie (the state of the "Remember Me" checkbox on login), and re-emits AURSID based on the AURREMEMBER cookie. Previously, re-emission of AURSID was forcefully modifying the expiration of the AURSID cookie. The introduction of AURREMEMBER allows us to deduct the correct cookie expiration timing based on configuration variables. With this addition, we now re-emit the AURSID cookie with an updated expiration based on the "Remember Me" checkbox on login. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 27 Oct, 2021 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Whitelisted keys: AURSID, AURTZ, AURLANG Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 26 Oct, 2021 1 commit
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 25 Oct, 2021 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Two new options have been added: - [devel] commit_url - URL including an %s format specifier that can be used to link to a webpage for the commit. - [devel] commit_hash - HEAD's commit hash (produced via `git rev-parse HEAD`) If a `[devel] commit_hash` is configured, a link to the commit based on `[devel] commit_url` will be displayed in the aurweb footer in the form: `HEAD@<commit_hash>`. If no `[devel] commit_url` is configured, a non-linked hash will be displayed. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-