aurweb merge requestshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests2023-01-25T22:40:36Zhttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/642fix:(revert): fix: only try to show dependencies if object exists2023-01-25T22:40:36ZLeonidas Spyropoulosfix:(revert): fix: only try to show dependencies if object existsThis reverts commit 0e44687ab11da81c611a2668b1249405d32cdb7f.
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>This reverts commit 0e44687ab11da81c611a2668b1249405d32cdb7f.
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/641fix(deps): update dependencies from renovate2023-01-25T21:20:22ZLeonidas Spyropoulosfix(deps): update dependencies from renovatefastapi ^0.89.0
coverage v7
srcinfo ^0.1.0
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>fastapi ^0.89.0
coverage v7
srcinfo ^0.1.0
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/640feature: increase mandatory coverage to 95%2023-01-25T21:17:37ZLeonidas Spyropoulosfeature: increase mandatory coverage to 95%Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/637fix: bleach upgrade 6.02023-01-24T09:25:43ZMario Oenningfix: bleach upgrade 6.0Need to convert `frozenset` to `list` so we can compose our own list with additional tags.
(`ALLOWED_TAGS` was a list before...)
Signed-off-by: moson-mo <mo-son@mailbox.org>Need to convert `frozenset` to `list` so we can compose our own list with additional tags.
(`ALLOWED_TAGS` was a list before...)
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/636fix(deps): update dependency bleach to v62023-01-24T09:25:41Zrenovatefix(deps): update dependency bleach to v6This MR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [bleach](https://github.com/mozilla/bleach) | `^5.0.0` -> `^6.0.0` | [![age](https://badges.renovateapi.com...This MR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [bleach](https://github.com/mozilla/bleach) | `^5.0.0` -> `^6.0.0` | [![age](https://badges.renovateapi.com/packages/pypi/bleach/6.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/bleach/6.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/bleach/6.0.0/compatibility-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/bleach/6.0.0/confidence-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
<details>
<summary>mozilla/bleach</summary>
### [`v6.0.0`](https://github.com/mozilla/bleach/blob/HEAD/CHANGES#Version-600-January-23rd-2023)
[Compare Source](https://github.com/mozilla/bleach/compare/v5.0.1...v6.0.0)
**Backwards incompatible changes**
- `bleach.clean`, `bleach.sanitizer.Cleaner`,
`bleach.html5lib_shim.BleachHTMLParser`: the `tags` and `protocols`
arguments were changed from lists to sets.
Old pre-6.0.0:
.. code-block:: python
bleach.clean(
"some text",
tags=\["a", "p", "img"],
### ^ ^ list
protocols=["http", "https"],
### ^ ^ list
)
New 6.0.0 and later:
.. code-block:: python
bleach.clean(
"some text",
tags={"a", "p", "img"},
### ^ ^ set
protocols={"http", "https"},
### ^ ^ set
)
- `bleach.linkify`, `bleach.linkifier.Linker`: the `skip_tags` and
`recognized_tags` arguments were changed from lists to sets.
Old pre-6.0.0:
.. code-block:: python
bleach.linkify(
"some text",
skip_tags=\["pre"],
### ^ ^ list
)
linker = Linker(
skip_tags=["pre"],
### ^ ^ list
recognized_tags=html5lib_shim.HTML_TAGS + ["custom-element"],
### ^ ^ ^ list
### |
### | list concatenation
)
New 6.0.0 and later:
.. code-block:: python
bleach.linkify(
"some text",
skip_tags={"pre"},
### ^ ^ set
)
linker = Linker(
skip_tags={"pre"},
### ^ ^ set
recognized_tags=html5lib_shim.HTML_TAGS | {"custom-element"},
### ^ ^ ^ set
### |
### | union operator
)
- `bleach.sanitizer.BleachSanitizerFilter`: `strip_allowed_elements` is now
`strip_allowed_tags`. We now use "tags" everywhere rather than a mishmash
of "tags" in some places and "elements" in others.
**Security fixes**
None
**Bug fixes**
- Add support for Python 3.11. ([#​675](https://github.com/mozilla/bleach/issues/675))
- Fix API weirness in `BleachSanitizerFilter`. ([#​649](https://github.com/mozilla/bleach/issues/649))
We're using "tags" instead of "elements" everywhere--no more weird
overloading of "elements" anymore.
Also, it no longer calls the superclass constructor.
- Add warning when `css_sanitizer` isn't set, but the `style`
attribute is allowed. ([#​676](https://github.com/mozilla/bleach/issues/676))
- Fix linkify handling of character entities. ([#​501](https://github.com/mozilla/bleach/issues/501))
- Rework dev dependencies to use `requirements-dev.txt` and
`requirements-flake8.txt` instead of extras.
- Fix project infrastructure to be tox-based so it's easier to have CI
run the same things we're running in development and with flake8
in an isolated environment.
- Update action versions in CI.
- Switch to f-strings where possible. Make tests parametrized to be
easier to read/maintain.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, click this checkbox.
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xODMuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE4My4wIn0=-->https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/635fix: show notifications checkbox when adding a comment2023-01-25T19:27:38ZMario Oenningfix: show notifications checkbox when adding a commentCurrently, the `Enable notifications` checkbox is only shown when editing a comment.
We should also show it when a new comment is about to be added.
When we edit a comment we can also enable notifications (if not yet enabled).
Howev...Currently, the `Enable notifications` checkbox is only shown when editing a comment.
We should also show it when a new comment is about to be added.
When we edit a comment we can also enable notifications (if not yet enabled).
However, currently it only enables notification if the comment was changed.
We should also enable them if there is no change to the comment text itself.
This was reported by "CyberShadow" in IRC a while ago.
See https://gitlab.archlinux.org/archlinux/aurweb/-/commit/e3ca3c96e5fe87d6ea8123b02ea037cf8255adb9
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/634feat: add "Last Updated" column to search results2023-01-25T21:42:04ZMario Oenningfeat: add "Last Updated" column to search resultsAdds `Last Updated` to the package search result list.
We use a red text color to highlight flagged packages (similar to the `Version` column)
Preview:
![image](/uploads/f48ea3748284df8decfdd55229629527/image.png)
![image](/uploads...Adds `Last Updated` to the package search result list.
We use a red text color to highlight flagged packages (similar to the `Version` column)
Preview:
![image](/uploads/f48ea3748284df8decfdd55229629527/image.png)
![image](/uploads/c694eae556b14cb275951acb7fc318a9/image.png)
Feature request: #371
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/633feat: add Support section to Dashboard2023-01-15T02:51:08ZMario Oenningfeat: add Support section to DashboardAdds the `Support` section (displayed on `Home`) to the `Dashboard` page as well.
Preview:
![image](/uploads/5a9801031cf6491cbd651568261278e4/image.png)
Issue report: #417
Signed-off-by: moson-mo <mo-son@mailbox.org>Adds the `Support` section (displayed on `Home`) to the `Dashboard` page as well.
Preview:
![image](/uploads/5a9801031cf6491cbd651568261278e4/image.png)
Issue report: #417
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/632fix: assert offset and per_page are positive2023-01-14T21:00:22ZLeonidas Spyropoulosfix: assert offset and per_page are positiveTraceback report 408
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Traceback report 408
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/631fix(docker): nginx health check2023-01-13T13:15:42ZMario Oenningfix(docker): nginx health checknginx health check always results in `unhealthy`:
There is no such option `--no-verify` for curl.
We can use `-k` or `--insecure` for skipping SSL checks.
Signed-off-by: moson-mo <mo-son@mailbox.org>nginx health check always results in `unhealthy`:
There is no such option `--no-verify` for curl.
We can use `-k` or `--insecure` for skipping SSL checks.
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/630fix: only try to show dependencies if object exists2023-01-14T21:11:24ZLeonidas Spyropoulosfix: only try to show dependencies if object existsSigned-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/629Update translations2023-01-12T09:29:05ZKevin Morriskevr@0cost.orgUpdate translationshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/628fix: remove trailing whitespace lint check for ./po2023-01-11T10:07:18ZKevin Morriskevr@0cost.orgfix: remove trailing whitespace lint check for ./poThis issue is breaking translation update linting. We don't care about linting the .po files; we can trust Transifex to produce the correct format.
Signed-off-by: Kevin Morris <kevr@0cost.org>This issue is breaking translation update linting. We don't care about linting the .po files; we can trust Transifex to produce the correct format.
Signed-off-by: Kevin Morris <kevr@0cost.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/594fix(rpc): provides search should return name match2023-01-05T19:22:03ZMario Oenningfix(rpc): provides search should return name matchWe need to return packages matching on the name as well.
(A package always provides itself)
Signed-off-by: moson-mo <mo-son@mailbox.org>We need to return packages matching on the name as well.
(A package always provides itself)
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/590perf: improve packages search-query2023-01-06T18:15:33ZMario Oenningperf: improve packages search-queryImproves performance for queries with large result sets.
The `group by` clause can be removed for all search types but the keywords.
In my tests this reduced the loading time of the [Packages](https://aur.archlinux.org/packages) page ...Improves performance for queries with large result sets.
The `group by` clause can be removed for all search types but the keywords.
In my tests this reduced the loading time of the [Packages](https://aur.archlinux.org/packages) page (which queries a list of all packages) from ~1.6s to ~0.5s.
Signed-off-by: moson-mo <mo-son@mailbox.org>https://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/587chore: bump to v6.1.92022-11-27T10:37:17ZLeonidas Spyropouloschore: bump to v6.1.9Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>6.1.9Leonidas SpyropoulosLeonidas Spyropouloshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/586fix: Search-by parameter for keyword links on package page2022-11-27T10:17:09ZMario Oenningfix: Search-by parameter for keyword links on package pageFixes:
Keyword-links on the package page pass wrong query-parameter.
Thus a name/description search is performed instead of keywords
Issue report: #397
Signed-off-by: moson-mo <mo-son@mailbox.org>Fixes:
Keyword-links on the package page pass wrong query-parameter.
Thus a name/description search is performed instead of keywords
Issue report: #397
Signed-off-by: moson-mo <mo-son@mailbox.org>6.1.9Mario OenningMario Oenninghttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/585fix: Add "Show more..." link for "Required by" on package page2022-11-26T13:29:50ZMario Oenningfix: Add "Show more..." link for "Required by" on package pageFix glitch on the package page:
"Show more..." not displayed for the "Required by" list
Fix test case:
Function name does not start with "test" hence it was never executed during test runs
Issue report: #363
Signed-off-by: moson-mo <m...Fix glitch on the package page:
"Show more..." not displayed for the "Required by" list
Fix test case:
Function name does not start with "test" hence it was never executed during test runs
Issue report: #363
Signed-off-by: moson-mo <mo-son@mailbox.org>6.1.9Mario OenningMario Oenninghttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/584fix(test): FastAPI 0.87.0 - Fixing tests2022-11-25T11:42:27ZMario Oenningfix(test): FastAPI 0.87.0 - Fixing testsFixing the test suite for the new httpx based TestClient introduced with FastAPI 0.87.0
* `allow_redirects` is deprecated and replaced by `follow_redirects`
* cookies need to be defined on request instance instead of being passed in the...Fixing the test suite for the new httpx based TestClient introduced with FastAPI 0.87.0
* `allow_redirects` is deprecated and replaced by `follow_redirects`
* cookies need to be defined on request instance instead of being passed in the method calls
References:
https://fastapi.tiangolo.com/release-notes/#0870
https://github.com/encode/starlette/pull/1376
Signed-off-by: moson-mo <mo-son@mailbox.org>6.1.9Leonidas SpyropoulosLeonidas Spyropouloshttps://gitlab.archlinux.org/archlinux/aurweb/-/merge_requests/583fix(deps): update dependencies from renovate2022-11-22T23:25:57ZLeonidas Spyropoulosfix(deps): update dependencies from renovateSigned-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>6.1.9Leonidas SpyropoulosLeonidas Spyropoulos