pgweb.git
5 years agoAdd explicit links to git history for policies
Magnus Hagander [Wed, 12 Aug 2020 15:52:52 +0000 (17:52 +0200)]
Add explicit links to git history for policies

We don't do this for all pages, but specifically for policies that
already included the "Last update", it's friendly to have a link to the
full set of changes.

We still lave the "Last updated" field as manually updated, because we
don't want to update that one if we just fix a typo or similar, it
should be reserved for when we make acstual content updates to a policy.

This creates and uses a specific template tag to automate the creation
of the links (that can of course be used elsewhere as well if needed).

5 years agoUse an include to list the yearly coc reportts
Magnus Hagander [Wed, 12 Aug 2020 15:30:46 +0000 (17:30 +0200)]
Use an include to list the yearly coc reportts

For some reason this was done with copy/paste before, but an include
seems much better.

5 years agoSimplify transaction handling in the changetracker daemon
Magnus Hagander [Wed, 12 Aug 2020 15:17:32 +0000 (17:17 +0200)]
Simplify transaction handling in the changetracker daemon

Previously we used a combination of optimistic concurrency control
(by DELETEing with both the id and the date included in the WHERE
clause) and REPEATABLE READ transactions. This would create
serialization conflicts when completely unnecessary. Since in this case
it doesn't matter if we happen to push the same thing twice, switch
completely to optimistic concurrency control. That gets rid of having to
deal with serialization issues.

5 years agoUpdate nagios monitor to check for duplicated email addresses
Magnus Hagander [Wed, 12 Aug 2020 15:14:19 +0000 (17:14 +0200)]
Update nagios monitor to check for duplicated email addresses

This should not be possible if things are done through the appropriate
interfaces, and those interfaces are bug-free (right..). But really bad
things can probably happen if they don't, so put a monitor in place to
check for it.

This also adds a view in the db that shows all registered email
addresses and their accounts, regardless of if it's primary or secondary
address. This is used by the nagios check but can of course be useful to
manual checks as well.

5 years agoTweak mediawiki to handle NULL in email fields
Magnus Hagander [Wed, 12 Aug 2020 10:45:33 +0000 (12:45 +0200)]
Tweak mediawiki to handle NULL in email fields

It really shouldn't exist, but we clearly have cases where the community
auth plugin sets the email to NULL, so we need to handle that case when
looking for what to update.

5 years agoUse unbuffered output by default in changetracker
Magnus Hagander [Tue, 11 Aug 2020 10:00:48 +0000 (12:00 +0200)]
Use unbuffered output by default in changetracker

5 years agoRemove symlink to selectable
Magnus Hagander [Tue, 11 Aug 2020 09:46:32 +0000 (11:46 +0200)]
Remove symlink to selectable

We already removed the dependency in
5d7cf9833f27718733cbd805e86036eae24b86bc, but forgot this symlink.

5 years agoAdd cauth push receiver plugins for mediawiki and redmine
Magnus Hagander [Mon, 10 Aug 2020 11:23:23 +0000 (13:23 +0200)]
Add cauth push receiver plugins for mediawiki and redmine