Commit graph

3513 commits

Author SHA1 Message Date
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
1162303d24
Merge branch 'master' into live 2022-02-07 18:35:51 -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
d376ad5a71
Merge branch 'master' into live 2022-02-07 16:29:03 -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
40c064819a
Merge branch 'master' into live 2022-02-07 13:32:11 -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
ed3d91ce31
Merge branch 'master' into live 2022-02-07 01:23:11 -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
719b89ee6b
Merge branch 'master' into live 2022-02-07 01:00:33 -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
2a13c17cb8
Merge branch 'master' into live 2022-02-06 23:37:35 -08:00
Kevin Morris
3b5458051e
Merge branch 'master' into live 2022-02-06 23:30:15 -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
e33f115d44
Merge branch 'master' into live 2022-02-06 16:27:50 -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
Kevin Morris
fda400eea9
Merge branch 'master' into live 2022-02-05 19:26:43 -08:00
Kevin Morris
1545eab81d
feat: add timezone to datetime display across the board
- the "Flagged Out-of-date on ..." link in the package action panel does
  not contain a timezone specifier.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 18:35:50 -08:00
Kevin Morris
405c05b499
Merge branch 'master' into live 2022-02-05 04:40:52 -08:00
Kevin Morris
e777b7052e
fix: send out a FlagNotification when a package is flagged
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 04:40:25 -08:00
Kevin Morris
2d6c09bec5
fix: handling of user registration HideEmail
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 04:28:50 -08:00
Kevin Morris
5eb7b43d55
Merge branch 'master' into live 2022-02-05 03:55:21 -08:00
Kevin Morris
d5a1c16458
upgrade: bump to v6.0.7
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:48:58 -08:00
Kevin Morris
39d6f927e6
fix: Maintainer, Co-maintainer /package search
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:16 -08:00
Kevin Morris
7618101b1b
fix: depend on OutOfDateTS for flag state
It was found in the aur.al database that some records have
a non-null flagger, but are not flagged. Using the flagger
relationship, we were false redirecting away from the flag
page.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:16 -08:00
Kevin Morris
a445a40bea
fix: Maintainer's comaintainer annotation display
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:16 -08:00
Kevin Morris
c1420b52fb
fix: rpc doc should not have v=6 information
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:15 -08:00
Kevin Morris
28549b47bb
fix: /packages search by co-maintainer
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:15 -08:00
Kevin Morris
c80a16c254
fix: allow users to login using their email
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:14 -08:00
Kevin Morris
f3360d1249
fix: eradicate spaces from pgp key fingerprint input
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 03:47:14 -08:00
Kevin Morris
ac68f74c69
fix: Hide Email Address checkbox markup
also:
- support empty strings in util.strtobool

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-05 02:16:52 -08:00
Kevin Morris
faefb8e75c
Merge branch 'master' into live 2022-02-04 21:50:39 -08:00
Kevin Morris
6986d1bb1e
fix: update rpc documentation
- we no longer prefer the use of trailing slashes on the AUR
  website.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 21:27:01 -08:00
Kevin Morris
9336d92cf3
Merge branch 'master' into live 2022-02-04 20:27:47 -08:00
Kevin Morris
3cb106bc9d
upgrade: bump to v6.0.6
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 20:23:28 -08:00
Kevin Morris
b7bf83c5f0
fix: prioritize local db record in pkgname_link
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 20:13:24 -08:00
Kevin Morris
c783ce17be
fix: remove erroneous official pkg check
This causes an issue that should have been obvious from the get-go:
if a package request is up in the AUR, but the package has already
been picked up by an official repository, we would end up returning
a 404 here, leading a TU to not be able to perform an action for
a request's target.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 19:57:59 -08:00
Kevin Morris
8f2a2c74ce
Merge branch 'master' into live 2022-02-04 19:28:27 -08:00
Kevin Morris
101de8e7b1
temporarily support /rpc.php/?
We'll leave these routes in for one month. On 02/04, they'll be
removed. This gives some time for aur helpers to update their
method.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 19:26:36 -08:00
Kevin Morris
41f89ed723
Merge branch 'master' into live 2022-02-04 19:14:27 -08:00
Kevin Morris
0c1bd982ea
fix(rpc): remove trailing slash redirection
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 19:08:25 -08:00
Kevin Morris
2ccef3ac27
Merge branch 'master' into live 2022-02-04 18:49:10 -08:00
Kevin Morris
987f9eab3b
fix: link to user account in last votes by tu listing
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 18:36:29 -08:00
Kevin Morris
ab1479925b
fix: tu last votes listing vote id
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 18:02:33 -08:00
Kevin Morris
7932cd7934
Merge branch 'master' into live 2022-02-04 16:58:47 -08:00
Kevin Morris
2c08672f15
fix: participation display generation should check voteinfo.ActiveTUs
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 16:50:27 -08:00
Kevin Morris
8442a19ab8
Merge branch 'master' into live 2022-02-04 16:19:24 -08:00
Kevin Morris
2f8e2288ad
poetry: bump version to 6.0.5
... I need to stop missing this. We need to centralize version
setting into a single file and source it.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-04 16:18:44 -08:00
Kevin Morris
8141f3ddc0
Merge branch 'master' into live 2022-02-04 15:58:06 -08:00