aurweb merge requestshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests2023-09-04T18:26:14Zhttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/757feat: Indicate dependency source2023-09-04T18:26:14ZMario Oenningfeat: Indicate dependency sourceDependencies might reside in the AUR or official repositories.
Adds ᴬᵁᴿ as superscript letters to indicate if a package/provider is present in the AUR.
![image](/uploads/399938ad0cdc410ef8984206fe120213/image.png)
ToDo:
- [x] Write t...Dependencies might reside in the AUR or official repositories.
Adds ᴬᵁᴿ as superscript letters to indicate if a package/provider is present in the AUR.
![image](/uploads/399938ad0cdc410ef8984206fe120213/image.png)
ToDo:
- [x] Write test case(s)
Feature request: #480Mario OenningMario Oenninghttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/755housekeep: TU rename2023-10-15T22:08:06ZMario Oenninghousekeep: TU renameRenaming of `Trusted User` to `Package Maintainer`.
ToDo (code):
- [X] Variables, values and strings in DB - `Trusted User(s)`
- [X] UI elements and translations - `Trusted User(s)`
- [x] Test cases (`test_tu_...`)
- [x] Comments
- [x] ...Renaming of `Trusted User` to `Package Maintainer`.
ToDo (code):
- [X] Variables, values and strings in DB - `Trusted User(s)`
- [X] UI elements and translations - `Trusted User(s)`
- [x] Test cases (`test_tu_...`)
- [x] Comments
- [x] Anything referencing `TU`, `TUs`
- [x] Table / Column names
- [x] Routes (rename)
ToDo (other projects / dependent changes):
- [x] Bylaws rename (tu-bylaws!6)
- [x] MR to be created at infra for nginx config changes (bylaws url, /tu redirect) / combine with new release
Related issues/MRs: #446, tu-bylaws!6v6.2.8Mario OenningMario Oenninghttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/500Split raw database connections out of aurweb.db2022-08-13T04:30:06ZEvangelos FoutrasSplit raw database connections out of aurweb.dbThe aurweb-git-auth script does not need any ORM functionality, only
access to the raw database connection. We can avoid the (~0.5s) time
penalty of importing aurweb.db, by splitting the raw connection part
into a separate aurweb.db_conn...The aurweb-git-auth script does not need any ORM functionality, only
access to the raw database connection. We can avoid the (~0.5s) time
penalty of importing aurweb.db, by splitting the raw connection part
into a separate aurweb.db_connection module.
Fixes: #374August release 6.1.0Evangelos FoutrasEvangelos Foutrashttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/25swap uvicorn out for hypercorn2021-05-13T20:51:59ZEli Schwartzswap uvicorn out for hypercornuvicorn is subjectively nicer to play with for local dev work, but hypercorn is required in order to do HTTP/2 which is fairly performance-important.
Signed-off-by: Kevin Morris <kevr@0cost.org>
Signed-off-by: Lukas Fleischer <lfleische...uvicorn is subjectively nicer to play with for local dev work, but hypercorn is required in order to do HTTP/2 which is fairly performance-important.
Signed-off-by: Kevin Morris <kevr@0cost.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Co-authored-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/765fix: make dependency source use superscript tag2023-10-18T16:35:33ZHanabishi Reccafix: make dependency source use superscript tagAvoid using special characters and use `<sup>` HTML tag instead.
To not rely on user's fonts Unicode coverage.
Closes: #490Avoid using special characters and use `<sup>` HTML tag instead.
To not rely on user's fonts Unicode coverage.
Closes: #490https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/759Draft: Rename TU - Testbox2023-10-02T11:09:36ZMario OenningDraft: Rename TU - Testbox* [x] Deploy environment
* [x] Import prod data
* [x] Add commits from `rename-tu` branch
* [x] Re-provision environment
* [x] Review and test* [x] Deploy environment
* [x] Import prod data
* [x] Add commits from `rename-tu` branch
* [x] Re-provision environment
* [x] Review and testhttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/716only check the latest revision for PKGBUILD and .SRCINFO2024-02-28T12:15:39ZChristian Heuselonly check the latest revision for PKGBUILD and .SRCINFOThis mainly does two things
- move the existance check for `.SRCINFO` and `PKGBUILD` to be only done on the latest commit
- create a new function for the `.SRCINFO` checking and invoke it only once, not once per commit
I am aware that ...This mainly does two things
- move the existance check for `.SRCINFO` and `PKGBUILD` to be only done on the latest commit
- create a new function for the `.SRCINFO` checking and invoke it only once, not once per commit
I am aware that this breaks tests, thats why I only opened a Draft, feedback is still welcome! :thumbsup:
This MR was created as a first try of implementation for the feture requested in issue https://gitlab.archlinux.org/archlinux/aurweb/-/issues/444.https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/712fix: change handling of cookies2023-05-26T21:06:38ZMario Oenningfix: change handling of cookies* Settings for authenticated users are retrieved from the DB and don't need to be stored as a cookie (`AURTZ`, `AURLANG`).
* Fix `AURREMEMBER` cookie check. Currently always evaluates to bool->`True`, although the cookie value is `"False...* Settings for authenticated users are retrieved from the DB and don't need to be stored as a cookie (`AURTZ`, `AURLANG`).
* Fix `AURREMEMBER` cookie check. Currently always evaluates to bool->`True`, although the cookie value is `"False"`
* `AURREMEMBER` should be a persistent cookie, otherwise it might happen that the `AURSID` lifetime is reset to the minimal lifetime even though the user ticked the "Remember me" box when logging in.
* If "remember me" was not ticked we make `AURSID` a session cookie instead of short-lived permanent one.
* Make `AURLANG` a "permanent" cookie with 400 days lifetime (no need for a non-authed user to constantly set the language again)
* Don't refresh cookies during requests (not required): `AURLANG`, `AURREMEMBER` are valid 400 days with the changes above. `AURREMEMBER` is (re)set on login, so latest every 30 days it's renewed anyways. `AURSID` is either a session cookie or valid for 30 days.
Note that a users session validity is checked with [every request](https://gitlab.archlinux.org/archlinux/aurweb/-/blob/d39b28ed8d752316610c9b66fe957ced970dceb6/aurweb/auth/__init__.py#L106).
This is currently either 2 hours ("remember me" on) or 30 days ("remember me" off).
With this MR we just adapt cookie lifetimes and fix a few glitches to increase convenience for the user, mainly noticeable for unauthenticated users (-> language setting) and for those where session cookies vanish on browser-close (which should be the default behavior of a browser).
We might want to increase the config setting `login_timeout` (the shorter one / when "remember me" = False) to 4 hours or so.
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/706feat: Add "Requests" filter option for package name2023-05-30T13:59:57ZMario Oenningfeat: Add "Requests" filter option for package name- Add package name textbox for filtering requests (with auto-suggest)
- Make "x pending requests" a link for TU/Dev on the package details page
(linking to the requests page, pre-filtered with the pkg name)
- .gitignore - add test mail...- Add package name textbox for filtering requests (with auto-suggest)
- Make "x pending requests" a link for TU/Dev on the package details page
(linking to the requests page, pre-filtered with the pkg name)
- .gitignore - add test mails directory (not related to this feature)
![image](/uploads/cba2d97d69a9deb5f88550d8143d4c11/image.png)
![image](/uploads/b8d564612676c35ec575a9ece99c9e9e/image.png)
Issue-report/Feature-request: IRC conversation. @jelle and @gromit want this :wink:
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/703chore(deps): "Group all minor and patch updates together"2023-05-06T22:47:57ZDaniel M. Capellachore(deps): "Group all minor and patch updates together"https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/681feat: allow users to hide deleted comments2023-04-25T19:53:44ZLeonidas Spyropoulosfeat: allow users to hide deleted commentsCloses: #435Closes: #435Leonidas SpyropoulosLeonidas Spyropouloshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/655fix(RTL): make RTL layout properly displayed2023-02-19T19:41:54ZLeonidas Spyropoulosfix(RTL): make RTL layout properly displayedCloses: #290Closes: #290https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/651fix: per-page needs to be non zero2023-02-08T17:18:42ZLeonidas Spyropoulosfix: per-page needs to be non zeroSigned-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Leonidas SpyropoulosLeonidas Spyropouloshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/649fix: validate timezone before use2023-02-07T12:18:47ZLeonidas Spyropoulosfix: validate timezone before useCloses: #427Closes: #427Leonidas SpyropoulosLeonidas Spyropouloshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/647chore(release): prepare for 6.2.12023-01-27T21:02:32ZLeonidas Spyropouloschore(release): prepare for 6.2.1Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/638fix: occasional errors when loading package details2023-02-01T18:34:23ZMario Oenningfix: occasional errors when loading package detailsFixes errors that might occur when loading the package details page.
Problem:
We are querying a list of "Required by" packages.
This list is loaded with all details for a "PackageDependency" record.
Now we also have a reference to ...Fixes errors that might occur when loading the package details page.
Problem:
We are querying a list of "Required by" packages.
This list is loaded with all details for a "PackageDependency" record.
Now we also have a reference to some attributes from the
related package (PackageDependency.Package.xxx)
This will effectively trigger the ORM to run another query (lazyload)
to fetch the missing Package data (for each PackageDependency record).
At that point it might have happened that a referenced package
got deleted / updated so that we can't retrieve this data anymore and
our dep.Package object is "None"
Fix:
We can force our query to include Package data right away.
Thus we can avoid running a separate query (per "required by"...)
As a side-effect we get better performance.
---
Draft: Still trying to find a proper way to write a test for this.
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/597feat: add link to mailing list article on requests page2023-01-12T11:37:19ZMario Oenningfeat: add link to mailing list article on requests pageProvides a convenient way to check for responses on the mailing list prior to Accepting/Rejecting requests.
We compute the Message-ID hash that can be used to link back to the article in the mailing list archive.
![image](/uploads/495d...Provides a convenient way to check for responses on the mailing list prior to Accepting/Rejecting requests.
We compute the Message-ID hash that can be used to link back to the article in the mailing list archive.
![image](/uploads/495d9885ae87ac9dc61730064cd8c1ac/image.png)
Related issue reports: #356, #416
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/591simplify the docker development setup instructions2023-01-15T09:27:34ZChristian Heuselsimplify the docker development setup instructionsuse `docker compose exec` instead of `docker ps` and `docker exec`
Signed-off-by: Christian Heusel <christian@heusel.eu>use `docker compose exec` instead of `docker ps` and `docker exec`
Signed-off-by: Christian Heusel <christian@heusel.eu>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/589feat: pagination changes for comments2022-12-31T19:17:45ZMario Oenningfeat: pagination changes for comments* Fixing the alignment of the pagination element (as it was in the PHP version)
* Adding pagination to the bottom of the comments list to stay in line with other pages
Before:
![image](/uploads/0d37b122788da87a9c01f28efa3dfdeb/image.p...* Fixing the alignment of the pagination element (as it was in the PHP version)
* Adding pagination to the bottom of the comments list to stay in line with other pages
Before:
![image](/uploads/0d37b122788da87a9c01f28efa3dfdeb/image.png)
After:
![image](/uploads/c45d9e05bc00d0fd7ef0c72484fd4306/image.png)
Issue report: #390
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/554fix: include orphaned packages in metadata output2022-10-11T22:04:03ZKevin Morriskevr@0cost.orgfix: include orphaned packages in metadata outputSigned-off-by: Kevin Morris <kevr@0cost.org>Signed-off-by: Kevin Morris <kevr@0cost.org>6.1.7Kevin Morriskevr@0cost.orgKevin Morriskevr@0cost.org