Commit graph

126 commits

Author SHA1 Message Date
Joakim Saario
9c6c13b78a
style: Run pre-commit 2022-08-22 22:40:45 +02:00
Kevin Morris
4565aa38cf
update: Swedish translations
Pulled from Transifex on 08/12/2022 - 08/13/2022.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-08-13 23:51:49 -07:00
Kevin Morris
ed41a4fe19
feat: add paging to package depends & required by
This patch does not include a javascript implementating, but
provides a pure HTML/HTTP method of paging through these lists.

Also fixes erroneous limiting. We now use a hardcoded limit of 20
by default.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-30 17:07:40 -07:00
Kevin Morris
49c5a3facf
feat: display stats about total & active TUs on proposals
This patch brings in two new features:
- when viewing proposal listings, there is a new Statistics section,
  containing the total and active number of Trusted Users found in the
  database.
- when viewing a proposal directly, the number of active trusted users
  assigned when the proposal was added is now displayed in the details
  section.

Closes #323

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 20:28:09 -08:00
Leonidas Spyropoulos
acc8885844
docs: revert changes from *.po
These will be done automatically from next transifex pull

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-02-08 18:40:38 +00:00
Leonidas Spyropoulos
d79d7bdd1e
docs: update issues url to gitlab
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-02-08 17:57:50 +00:00
Kevin Morris
d3d4424bc5
merge: updated translations
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-01-18 10:15:47 -08:00
Kevin Morris
c07c40bcb6
fix: clean up package action templates (merge, delete, disown)
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-01-17 11:53:05 -08:00
Kevin Morris
d675c0dc26
feat(python): catch all exceptions thrown through fastapi route paths
This commit does quite a bit:
- Catches unhandled exceptions raised in the route handler and
  produces a 500 Internal Server Error Arch-themed response.
- Each unhandled exception causes a notification to be sent to new
  `notifications.postmaster` email with a "Traceback ID."
- Traceback ID is logged to the server along with the traceback which
  caused the 500: `docker-compose logs fastapi | grep '<traceback_id>'`
- If `options.traceback` is set to `1`, traceback is displayed in
  the new 500.html template.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-01-09 23:10:02 -08:00
Kevin Morris
26b1674c9e
fix(requests): rework handling of requests
This commit changes several things about how we were handling
package requests.

Modifications (requests):
-------------
- `/requests/{id}/close` no longer provides an Accepted selection.
  All manual request closures will cause a rejection.
- Relevent `pkgbase` actions now trigger request closures:
  `/pkgbase/{name}/delete` (deletion), `/pkgbase/{name}/merge` (merge)
  and `/pkgbase/{name}/disown` (orphan).
- Comment fields have been added to
  `/pkgbase/{name}/{delete,merge,disown}`, which is used to set the
  `PackageRequest.ClosureComment` on pending requests. If the comment
  field is left blank, a closure comment is autogenerated.
- Autogenerated request notifications are only sent out once
  as a closure notification.
- Some markup has been fixed.

Modifications (disown/orphan):
-----------------------------
- Orphan requests are now handled through the same path as
  deletion/merge.
- We now check for due date when disowning as non-maintainer;
  previously, this was only done for display and not functionally.
  This check applies to Trusted Users' disowning of a package.

This style of notification flow does reduce our visibility, but
accounting can still be done via the close request; it includes
the action, pkgbase name and the user who accepted it.

Closes #204

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-12-09 19:09:51 -08:00
Kevin Morris
e3fff9e357
Merge branch 'feat-csrf-login-check' into pu 2021-11-15 12:00:07 -08:00
Kevin Morris
85ebc72e8a
fix(fastapi): only elevated users are allowed to suspend accounts
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-11-08 18:51:39 -08:00
Steven Guikal
020409ef46 fix(FastAPI): prevent CSRF forging login requests
Signed-off-by: Steven Guikal <void@fluix.one>
2021-11-04 14:34:14 -04:00
Kevin Morris
65be8b8e07
fix(fastapi): support "Account Type:" input for account edit
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-25 22:05:23 -07:00
Kevin Morris
60bffa4fb6
feat(FastAPI): add /packages (post) action: 'delete'
Improvements:

- Package deletion now creates a PackageRequest on behalf of
  the deleter if one does not yet exist.
- All package deletions are now logged to keep track of who did what.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-23 18:23:15 -07:00
Kevin Morris
13b344d238
feat(FastAPI): add /packages (post) action: 'disown'
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-22 19:38:14 -07:00
Kevin Morris
f1ad1b9aed
feat(FastAPI): add /packages (post) action: 'adopt'
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-22 19:01:13 -07:00
Kevin Morris
d5520c9ed2
feat(FastAPI): add /packages (post) action: 'unnotify'
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-21 17:38:44 -07:00
Kevin Morris
b277d94e0b
feat(FastAPI): add /packages (post) action: 'notify'
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-21 16:52:04 -07:00
Kevin Morris
2d46811c45
fix(FastAPI): display VCS note when flagging a VCS package
Closes: #131

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-15 16:16:11 -07:00
Lukas Fleischer
a09c4d8168 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-03-27 08:31:46 -04:00
Lukas Fleischer
d4632aaffa Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-02-10 11:05:27 +01:00
Lukas Fleischer
8ff21fd39c Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-02-02 12:12:43 +01:00
Lukas Fleischer
b922811061 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2019-10-19 00:20:09 -04:00
Lukas Fleischer
2aa78d75d3 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2018-07-07 16:08:33 +02:00
Lukas Fleischer
840ee20f7b Rename translation resources from aur to aurweb
* Rename the aur project to aurweb on Transifex.
* Rename aur.pot to aurweb.pot.
* Update documentation and Makefile.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2018-07-07 16:05:12 +02:00
Lukas Fleischer
d24737f3f5 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2018-05-17 22:58:54 +02:00
Lukas Fleischer
f7a57c82bc Localize notification emails
Add support for translating notification emails and send localized
notifications, based on the user's language preferences. Also, update
the translations Makefile to add strings from the notification script
to the message catalog.

Implements FS#31850.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2018-05-17 22:58:54 +02:00
Lukas Fleischer
f44705a640 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-12-02 21:30:44 +01:00
Lukas Fleischer
d09ee5fdd7 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-11-28 08:52:22 +01:00
Lukas Fleischer
0ba88c4795 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-03-09 06:18:06 +01:00
Lukas Fleischer
e4bc2e7af3 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-02-26 10:28:03 +01:00
Lukas Fleischer
d0a7a70e2d Update message catalog 2017-02-25 13:41:22 +01:00
Lukas Fleischer
08f56e76d7 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-02-23 07:42:25 +01:00
Lukas Fleischer
3f5bf62285 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-10-15 19:45:48 +02:00
Lukas Fleischer
0dce4c4bca Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-10-08 14:59:33 +02:00
Lukas Fleischer
5766a37e4a Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-09-30 17:48:49 +02:00
Lukas Fleischer
d43f8478b4 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-08-14 07:59:32 +02:00
Lukas Fleischer
ac6b091724 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-08-06 11:44:40 +02:00
Lukas Fleischer
0350de4b42 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-06-25 16:10:01 +02:00
Lukas Fleischer
e2632ea6c9 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-02-15 08:17:23 +01:00
Lukas Fleischer
cd1756a4ed Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-02-09 21:58:48 +01:00
Lukas Fleischer
6d6df72183 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2016-01-28 23:04:00 +01:00
Lukas Fleischer
b8c1cd7cc3 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-12-12 21:59:35 +01:00
Lukas Fleischer
34153f41a9 Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-10-03 09:26:32 +02:00
Lukas Fleischer
e66595fb92 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-09-26 07:49:27 +02:00
Lukas Fleischer
311c7f0366 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-09-23 21:46:33 +02:00
Lukas Fleischer
046d3e25fa Translation updates from Transifex
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-08-08 12:57:23 +02:00
Lukas Fleischer
0abe03c419 Update message catalog
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-06-28 10:10:19 +02:00
Lukas Fleischer
b1e3bfb48f po/Makefile: Add more context to strings in the catalog
Pass the --add-location=file parameter to xgettext(1) when building the
message catalog, such that each string is annotated with the file it
originates from.

Fixes FS#45401.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2015-06-27 13:04:03 +02:00