Commit graph

626 commits

Author SHA1 Message Date
Kevin Morris
cf4295a13e
upgrade: bump to v6.0.27
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-31 17:45:39 -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
d8564e446b
upgrade: bump to v6.0.26
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-30 12:30:21 -07:00
Kevin Morris
afd25c248f
fix: remove HEAD and OPTIONS handling from metrics
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-14 06:26:37 -07:00
Kevin Morris
c149afb1f1
Merge remote-tracking branch 'fosskers/colin/prework-reformatting' 2022-03-14 05:14:59 -07:00
Kevin Morris
d7cb04b93d
upgrade: bump to v6.0.25
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 20:35:21 -08: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
Kevin Morris
0afa07ed3b
upgrade: bump to v6.0.24
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 19:16:02 -08:00
Kevin Morris
a1a88ea872
fix(rpc): suggestions should only suggest based on <keyword>%
Previously, Python code was looking for suggestions based on
`%<keyword>%`. This was inconsistent with PHP's suggestion
implementation and cause more records to be bundled with a suggestion,
along with supplying misleading suggestions.

Closes #343

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 19:00:19 -08:00
Kevin Morris
9791704632
Merge branch 'fix-none-path' 2022-03-08 18:34:38 -08:00
Kevin Morris
2a393f95fa
upgrade: bump to v6.0.23
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 17:59:00 -08:00
Kevin Morris
e00cf5f124
test: use smtplib.SMTP[_SSL] timeout = notifications.smtp-timeout
A new option has been added for configuration of SMTP timeout:
- notifications.smtp-timeout

During tests, we can change this timeout to be small, so we aren't
depending on hardware-based RNG to pass the timeout.

Without a timeout, users can run into a long-running test for no
particular reason.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 17:53:31 -08:00
Kevin Morris
13217be939
fix: don't check suspension for ownership changes
People can change comaintainer ownership to suspended users if they
want to.

Suspended users cannot login, so there is no breach of security
here. It does make sense to allow ownership to be changed, imo.

Closes #339

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-08 17:51:25 -08:00
Kevin Morris
e2a17fef95
upgrade: bump to v6.0.22
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-07 23:57:54 -08:00
Kevin Morris
f11e8de251
upgrade: bump to v6.0.21
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-07 23:32:14 -08:00
Kevin Morris
6a243e90db
fix: only reject addvote for users with running proposals
This was incorrectly indiscriminately targetting _any_ proposal
for a particular user.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-03-07 23:23:49 -08:00
Kevin Morris
c7c79a152b
upgrade: bump to v6.0.20
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-25 19:44:10 -08:00
Kevin Morris
9204b76110
fix: ...do not add to ActiveTUs when voting on a proposal
Straight up bug.

Closes #324

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-25 19:28:03 -08:00
Kevin Morris
07e479ab50
upgrade: bump to v6.0.19
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-23 14:37:41 -08:00
Kevin Morris
51d4b7f993
fix(rpc): limit Package results, not relationships
...This was an obvious bug in hindsight. Apologies :(

Closes #314

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-23 14:17:41 -08:00
Colin Woodbury
3aa8d523f5
change(rpc): search module reformatting 2022-02-21 16:56:10 -08:00
Leonidas Spyropoulos
6e837e0c02
fix: always provide a path
891efcd142
2022-02-21 10:25:01 +00:00
Kevin Morris
1e31db47ab
upgrade: bump to v6.0.18
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-19 16:32:49 -08:00
Kevin Morris
80622cc966
fix: suspend check should check Suspended...
This was causing some false negative errors in the update process,
and it clearly not correct -- oops :(

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-19 16:26:31 -08:00
Kevin Morris
4a4fd01563
fix: blanking out particular fields when editing accounts
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-19 16:01:06 -08:00
Kevin Morris
c83c5cdc42
change: log out details about PROMETHEUS_MULTIPROC_DIR
Additionally, respond with a 503 if the var is not set when
/metrics is requested.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-19 12:08:55 -08:00
Kevin Morris
388e64d0af
upgrade: bump to v6.0.17
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 17:54:36 -08:00
Kevin Morris
7cc20cd9a4
fix: suspended users should not be able to login
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 17:50:35 -08:00
Kevin Morris
e43e1c6d20
upgrade: bump to v6.0.16
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 17:17:14 -08:00
Kevin Morris
14347232fd
fix: treat all keywords as lowercase when updating
In addition, treat package search by keywords as lowercase.

Closes #296, #297, #298, #301

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 16:58:02 -08:00
Kevin Morris
8387f325f6
fix: resolve null VoteTS columns via migration
Somehow, many aur.al records of PackageVotes do not have a valid VoteTS
value. This migration fixes that issue by setting all null VoteTS
columns to the epoch timestamp.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 16:16:07 -08:00
Kevin Morris
1d86b3e210
fix: use a transaction for package query; remove refresh
Closes #284

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-18 15:58:42 -08:00
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
41a6e9740f
upgrade: bump to v6.0.10
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-10 13:55:18 -08:00