- Oct 15, 2023
-
-
Mario Oenning authored
Signed-off-by:
moson <moson@archlinux.org>
-
- Oct 12, 2023
-
-
Mario Oenning authored
When setting up a context with user provided variables, we should not override any existing values previously set. Signed-off-by:
moson <moson@archlinux.org>
-
- Oct 05, 2023
-
-
Mario Oenning authored
* Updating typing-extensions (4.5.0 -> 4.8.0) * Installing annotated-types (0.5.0) * Updating anyio (3.6.2 -> 3.7.1) * Installing pydantic-core (2.10.1) * Updating certifi (2023.5.7 -> 2023.7.22) * Updating cffi (1.15.1 -> 1.16.0) * Updating greenlet (2.0.2 -> 3.0.0) * Updating markupsafe (2.1.2 -> 2.1.3) * Updating packaging (23.1 -> 23.2) * Updating pluggy (1.0.0 -> 1.3.0) * Updating pydantic (1.10.7 -> 2.4.2) * Updating charset-normalizer (3.1.0 -> 3.3.0) * Updating click (8.1.3 -> 8.1.7) * Updating coverage (7.2.7 -> 7.3.2) * Updating cryptography (40.0.2 -> 41.0.4) * Updating dnspython (2.3.0 -> 2.4.2) * Updating execnet (1.9.0 -> 2.0.2) * Updating fastapi (0.100.1 -> 0.103.2) * Updating httpcore (0.17.0 -> 0.17.3) * Updating parse (1.19.0 -> 1.19.1) * Updating prometheus-client (0.16.0 -> 0.17.1) * Updating pytest (7.4.0 -> 7.4.2) * Updating redis (4.6.0 -> 5.0.1) * Updating urllib3 (2.0.2 -> 2.0.6) * Updating aiofiles (23.1.0 -> 23.2.1) * Updating alembic (1.11.2 -> 1.12.0) * Updating fakeredis (2.17.0 -> 2.19.0) * Updating filelock (3.12.2 -> 3.12.4) * Updating orjson (3.9.2 -> 3.9.7) * Updating protobuf (4.23.4 -> 4.24.4) * Updating pygit2 (1.12.2 -> 1.13.1) * Updating werkzeug (2.3.6 -> 3.0.0) Signed-off-by:
moson <moson@archlinux.org>
-
- Oct 02, 2023
-
-
Mario Oenning authored
Wrong config option was used to display the minimum length error msg. (username_min_len instead of passwd_min_len) Signed-off-by:
moson <moson@archlinux.org>
-
- Sep 30, 2023
-
-
Mario Oenning authored
Fix some more test functions Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
TU_VoteInfo -> VoteInfo TU_Votes -> Votes TU_VoteInfo.ActiveTUs -> VoteInfo.ActiveUsers script: tuvotereminder -> votereminder Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Changes to comments, function descriptions, etc. Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Rename tests: Function names, variables, etc. Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Change /tu to /package-maintainer Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Rename all UI elements and translations. Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Renaming of symbols. Functions, variables, values, DB values, etc. Basically everything that is not user-facing. This only covers "Trusted User" things: tests, comments, etc. will covered in a following commit.
-
- Sep 26, 2023
-
-
Mario Oenning authored
Signed-off-by:
moson <moson@archlinux.org>
-
- Sep 03, 2023
-
-
Mario Oenning authored
Dependencies might reside in the AUR or official repositories. Add "AUR" as superscript letters to indicate if a package/provider is present in the AUR. Signed-off-by:
moson <moson@archlinux.org>
-
- Sep 01, 2023
-
-
Mario Oenning authored
It could happen that test data is already generated by a previous test. (running in the same worker) Make sure we clear everything before performing our checks. Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
All tests within a file run in the same worker and out test DB names are unique per file as well. We don't really need a locking mechanism here. Same is valid for the test-emails. The only potential issue is that it might try to create the same directory multiple times and thus run into an error. However, that can be covered by specifying "exist_ok=True" with os.makedirs such that those errors are ignored. Signed-off-by:
moson <moson@archlinux.org>
-
- Aug 27, 2023
-
-
Mario Oenning authored
Clone infrastructure repository and run playbook to provision our VM with aurweb. Signed-off-by:
moson <moson@archlinux.org>
-
Kristian Klausen authored
Also removed the logic for deploying to the long gone aur-dev box. Ansible will be added in a upcoming commit for configurating and deploying aurweb on the VM. [1] https://docs.gitlab.com/ee/ci/review_apps/
-
- Aug 18, 2023
-
-
Mario Oenning authored
The current "cleanup" function that is removing orphan prometheus files is actually never invoked. We move this to a default gunicorn config file to register our hook(s). https://docs.gunicorn.org/en/stable/configure.html https://docs.gunicorn.org/en/stable/settings.html#child-exit Signed-off-by:
moson <moson@archlinux.org>
-
- Aug 04, 2023
-
-
Leonidas Spyropoulos authored
Signed-off-by:
Leonidas Spyropoulos <artafinde@archlinux.org>
-
renovate authored
-
Mario Oenning authored
We should check if a user (target) exists before validating permissions. Otherwise things crash when a TU is trying to edit an account that does not exist. Fixes: aurweb-errors#529 Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 27, 2023
-
-
renovate authored
-
- Jul 25, 2023
-
-
renovate authored
-
- Jul 24, 2023
-
-
renovate authored
-
- Jul 23, 2023
-
-
Mario Oenning authored
Adds gauge for requests by type and status Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Problem is that we join with PackageBase, thus we are missing requests for packages that were deleted. Fixes: #483 Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Allows us to set different cache eviction timespans for search queries and statistics. Stats and especially "last package updates" should probably be refreshed more often, whereas we might want to cache search results for a bit longer. So this gives us a bit more flexibility playing around with different settings and tweak things. Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
The new module/class helps us constructing queries and count records to expose various statistics on the homepage. We also utilize for some new prometheus metrics (package and user gauges). Record counts are being cached with Redis. Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 22, 2023
-
-
Mario Oenning authored
We currently validate all commits going from latest -> oldest. It would be nicer to go oldest -> latest so that, in case of errors, we would indicate which commit "introduced" the problem. Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 20, 2023
-
-
Mario Oenning authored
The current query is a bit mixed up. The intention was to return the number of unaccepted records. Now it does also count all records that were accepted by some other user though. Let's check the total number of terms vs. the number of accepted records (by our user) instead. Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 17, 2023
-
-
Mario Oenning authored
The chance of finding multiple object IDs when performing lookups with a shortened SHA1 hash (7 digits) seems to be quite high. In those cases pygit2 will throw an error. Let's catch those exceptions and gracefully handle them. Fixes: aurweb-errors#496 (and alike) Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 15, 2023
-
-
renovate authored
-
- Jul 13, 2023
-
-
Mario Oenning authored
Some fixes for the /rss endpoints * Load all data in one go: Previously data was lazy loaded thus it made several sub-queries per package (> 200 queries for composing the rss data for a single request). Now we are performing a single SQL query. (request time improvement: 550ms -> 130ms) This also fixes aurweb-errors#510 and alike * Remove some "dead code": The fields "source, author, link" were never included in the rss output (wrong or insufficient data passed to the different entry.xyz functions) Nobody seems to be missing them anyways, so let's remove em. * Remove "Last-Modified" header: Obsolete since nginx can/will only handle "If-Modified-Since" requests in it's current configuration. All requests are passed to fastapi anyways. Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 10, 2023
-
-
Mario Oenning authored
In some translations we might be missing replacement placeholders (%). This turns out to be problematic when calling the format function. Wrap the jinja2 format function and just return the string unformatted when % is missing. Fixes: #341 Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 09, 2023
-
-
Mario Oenning authored
Our set of keys returned by "util.parse_ssh_keys" is unordered so we have to adapt our test to not rely on a specific order for multiple keys. Fixes: 5ccfa7c0 ("fix: same ssh key entered multiple times") Signed-off-by:
moson <moson@archlinux.org>
-
Mario Oenning authored
Users might accidentally past their ssh key multiple times when they try to register or edit their account. Convert our of list of keys to a set, removing any double keys. Signed-off-by:
moson <moson@archlinux.org>
-
- Jul 08, 2023
-
-
Leonidas Spyropoulos authored
Signed-off-by:
Leonidas Spyropoulos <artafinde@archlinux.org>
-
Mario Oenning authored
show "<deleted-account>" in comment headers in case a user deleted their account. Signed-off-by:
moson <moson@archlinux.org>
-
Leonidas Spyropoulos authored
Signed-off-by:
Leonidas Spyropoulos <artafinde@archlinux.org>
-