Commit graph

3394 commits

Author SHA1 Message Date
Kevin Morris
4e641d945c
fix: unset InactivityTS for users on login
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 13:53:45 -08:00
Kevin Morris
b2508e5bf8
upgrade: bump to v6.0.15
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 18:27:00 -08:00
Kevin Morris
dcaf407536
fix: /packages search result count
We need to query for this after we've applied all filters.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 17:55:02 -08:00
Kevin Morris
bfd592299c
change: display default package search parameter values in its form
The previous behavior was carried over from PHP. It has been requested
that we use the true defaults when rendering the default form, making
search a bit more sensible.

Closes #269

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 17:54:57 -08:00
Kevin Morris
0bfecb9844
upgrade: bump to v6.0.14
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 16:14:31 -08:00
Kevin Morris
2fd9f3436d
Merge branch 'fix-request-autogen' 2022-02-17 16:08:18 -08:00
Kevin Morris
e3864d4b7c
fix: set RequestTS when autogenerating requests
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 15:54:04 -08:00
Kevin Morris
361163098f
fix: /packages search ordering links
This was not including other parameters that should be persisted for
users.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 15:49:41 -08:00
Kevin Morris
040c9bc3e6
fix: send up to date flag notifications
These were being produced with the db state before the flag was set,
which is not what should be done for flag notifications, as the
notification contains data about the comment and the current flagger.

Closes #292

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-17 15:30:32 -08:00
Kevin Morris
640630faff
upgrade: bump to v6.0.13
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-14 15:45:59 -08:00
Kevin Morris
da0e74a648
Merge branch 'master' of ssh://gitlab.archlinux.org:222/archlinux/aurweb 2022-02-14 15:43:37 -08:00
Kevin Morris
9327594926
upgrade: bump to v6.0.12
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-14 15:42:18 -08:00
Kevin Morris
29061c000c
fix: pkgbase -> package redirection
We were redirecting in some error-cases, which this commit sorts out:
- package count == 1 and package base name != package name
- was redirecting to {name} and not the only associated Package

Now, when we have a package base name that mismatches its only
package, we display the package base page. Otherwise, we redirect
to the first package's page.

Closes #282

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-14 15:38:00 -08:00
Kevin Morris
1671868956
fix: links to cgit should be url encoded
Closes #283

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-13 17:44:40 -08:00
Kevin Morris
708ade4dbf
fix: allow co-maintainers to [un]pin comments on a package
Closes #279

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-11 16:24:42 -08:00
Kevin Morris
35e7486ea3
upgrade: bump to v6.0.11
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-11 00:50:34 -08:00
Kevin Morris
50b726d739
fix: send notifications when users submit comments
Closes #278

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-11 00:43:50 -08:00
Kevin Morris
a2e993119e
fix: correct typo in Bug.md
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 14:52:03 -08:00
Kevin Morris
bd13d6904b
change: add explanation of aurweb vs user packages in Bug.md
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 14:49:28 -08:00
Kevin Morris
41a6e9740f
upgrade: bump to v6.0.10
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 13:55:18 -08:00
Kevin Morris
7485cc231e
change: report unhandled tracebacks to a repository
As repeats of these traceback notifications were annoying some of
the devops staff, and it took coordination to share tracebacks with
developers, this commit removes that responsibility off of devops
by reporting tracebacks to Gitlab repositories in the form of issues.

- removed ServerErrorNotification
- removed notifications.postmaster configuration option
- added notifications.gitlab-instance option
- added notifications.error-project option
- added notifications.error-token option
- added aurweb.exceptions.handle_form_exceptions, a POST route decorator

Issues are filed confidentially. This change will need updates
in infrastructure's ansible configuration before this can be
applied to aur.archlinux.org.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 13:44:10 -08:00
Kevin Morris
e2eb3a7ded
fix: restore missing typeahead js on authenticated dashboard
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 13:32:37 -08:00
Kevin Morris
0c20e4056e
change(git-cliff): remove space in "bug fixes"
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 09:17:37 -08:00
Kevin Morris
e80891f2f2
housekeep: cleanup extra space in test_config.py
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 09:16:43 -08:00
Kevin Morris
3af66cafbe
fix(rpc): restore "Too Many Package Results" error
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 01:04:25 -08:00
Kevin Morris
86caee74c5
fix(rpc): use max_rpc_results for type=multiinfo result limit
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 00:32:35 -08:00
Kevin Morris
f928a49c8a
doc(rpc): Request Types -> Request Methods & reword description
The POST description was ridiculously confusing. This cleans up the
doc a bit and is hopefully a bit more straight-forward.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 00:16:32 -08:00
Kevin Morris
3f95ac7db3
fix: correct redirects for package actions & requests
For requests, we always pass a `next` of /requests, leading us
back to the requests page. For a standard package, we get redirected
to the involved pkgbase, or target pkgbase if a merge action was taken.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 22:59:01 -08:00
Kevin Morris
c883c71053
upgrade: bump to v6.0.9
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 20:14:52 -08:00
Kevin Morris
2cb53411c0
change: remove comaintainers when fulfilling orphan request
Closes FS#50079

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 20:03:38 -08:00
Kevin Morris
4ae72af4b5
fix: address missing coverage from previous changes
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 17:58:43 -08:00
Kevin Morris
b6321bbdc5
Merge branch 'mr440' 2022-02-08 17:49:50 -08:00
Awal Garg
b119db251b fixup: feat(archives): add .sha256 and construct archives in tmpdir 2022-02-09 07:03:12 +05:30
Kevin Morris
40a0e866e7
feat(archives): add {archive}.sha256 and construct archives in tmpdir
This change brings some new additions to our archives:
- SHA-256 .sha256 hexdigests
- We construct our archives in a tmpdir now and move them to the
archive destination when all are completed. This removes some
corrupted downloading when archiving is in-process.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 13:28:39 -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
bf0623d8c7
change(git-cliff): include a header for untagged cliffs
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 09:43:07 -08:00
Kevin Morris
310484a8cc
change: display git-cliff's commit scope
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 09:39:14 -08:00
Kevin Morris
a21c48afe7
change: format git-cliff commit hashes a bit better
Use a ':' instead of a '-' to separate commit hash from message

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 09:32:46 -08:00
Kevin Morris
477e814cd8
change: set git-cliff's output format to asciidoc style
we'll be using git-cliff to produce changelogs for new tags from
now on. we want to include these changelogs within the tag body
without markdown.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 09:29:31 -08:00
Kevin Morris
95bbdfc3bb
upgrade: bump to v6.0.8
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 09:13:47 -08:00
Kevin Morris
4c14a10b91
fix: support multiple SSHPubKey records per user
There was one blazing issue with the previous implementation regardless
of the multiple records: we were generating fingerprints by storing
the key into a file and reading it with ssh-keygen. This is absolutely
terrible and was not meant to be left around (it was forgotten, my bad).

Took this opportunity to clean up a few things:
- simplify pubkey validation
- centralize things a bit better

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-08 07:50:41 -08:00
Kevin Morris
660d57340a
fix: TUVote inner join TUVoteInfo for "Last Votes by TU" listing
By implicitly joining, sqlalchemy joined on
`TUVote.UsersID = TUVoteInfo.SubmitterID`. This should be joining on
`TUVote.VoteID = TUVoteInfo.ID` instead to include all TUVote instances
found in the database.

Closes #266

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-07 18:16:15 -08:00
Kevin Morris
957803a70b
fix: M/c search with multiple keywords
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-07 16:22:21 -08:00
Kevin Morris
828847cfcd
fix: OutOfDateTS db fetch for pkgbase action display
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-07 12:23:35 -08:00
Kevin Morris
33cddb36ff
fix: restore URL field in mkpkglists meta archives
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-07 01:20:42 -08:00
Kevin Morris
2dfa41c9a5
feat(rpc): support POST method
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-07 00:49:34 -08:00
Kevin Morris
26f0b014f9
fix: /packages search by keywords
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-06 23:29:09 -08:00
Kevin Morris
83f5d9e460
fix: RSS aurlogo.png url
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-06 21:32:48 -08:00
Kevin Morris
750653361f
fix: remove /packages search count limit
...took this opportunity to use the new options.max_search_results
tunable for a PP upper-bound.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-06 16:21:56 -08:00