Jonathan S. Katz [Sun, 15 Apr 2018 18:56:40 +0000 (14:56 -0400)]
Titleize "Additional Software" on the "Downloads" page.
Jonathan S. Katz [Sun, 15 Apr 2018 18:55:46 +0000 (14:55 -0400)]
Update GSoC page
Jonathan S. Katz [Sun, 15 Apr 2018 18:20:53 +0000 (14:20 -0400)]
Create link back to postgresql.org on server sponsors page.
Jonathan S. Katz [Sun, 15 Apr 2018 18:16:50 +0000 (14:16 -0400)]
Update language for how to reach out to start a user group.
Includes language updates on the "Contact" page for reaching out
to user group liaison as well as on the "Local User Group" page.
Jonathan S. Katz [Sun, 15 Apr 2018 18:09:06 +0000 (14:09 -0400)]
Ensure UK spelling for language across pgweb.
Jonathan S. Katz [Sun, 15 Apr 2018 17:42:49 +0000 (13:42 -0400)]
Alphabetize functions in pgfilters for easier mainetnance.
Jonathan S. Katz [Sun, 15 Apr 2018 17:39:21 +0000 (13:39 -0400)]
Add helpful Django filters created for PGLister.
PGLister adds several filters that make it easier to work with
Django forms with HTML, particularly with the Bootstrap framework.
These filters will be utilized as pgweb shifts to a newer design
framework.
The original code can be found here:
https://gitlab.com/pglister/pglister/blob/master/web/pglister/lists/templatetags/pglister.py
Jonathan S. Katz [Sun, 15 Apr 2018 17:35:24 +0000 (13:35 -0400)]
Add "mailto" anchor to Professional Services
Jonathan S. Katz [Sun, 15 Apr 2018 17:25:35 +0000 (13:25 -0400)]
Add "mailto" anchors to help text for News & Event submissions.
Jonathan S. Katz [Sun, 15 Apr 2018 17:16:05 +0000 (13:16 -0400)]
Update language on "Submit Documentation Comment" page.
The language is more thorough in describing how to use the form,
in an effort to help improve the overall quality of submissions to
pgsql-docs.
Jonathan S. Katz [Sun, 15 Apr 2018 17:05:15 +0000 (13:05 -0400)]
Ensure "News Article" and "Professional Service" are titles.
In the "Your Account" workflow, ensure that "News Article" and
"Professional Service" appear as titles throughout.
Magnus Hagander [Thu, 5 Apr 2018 17:43:40 +0000 (19:43 +0200)]
Change title of submitbug save button
Magnus Hagander [Thu, 5 Apr 2018 17:42:23 +0000 (19:42 +0200)]
Change field labels for docs comments form
Clearly indicate what's subject, what's body, and that it's sending an
email.
Magnus Hagander [Wed, 4 Apr 2018 16:25:02 +0000 (18:25 +0200)]
Remove setting no longer used
Magnus Hagander [Tue, 3 Apr 2018 13:04:47 +0000 (15:04 +0200)]
Turn off tidy indent on docs older than 11
It seems the newer tidy in Debian Stretch breaks with the output from
the old docs toolchain, causing indention to happen inside <pre> blocks
which clearly breaks rendering.
Turn it off for thos, but keep it enabled for version 11 and up (at this
point that's just dev), because the output becomes a lot easier to read
when trying to debug things.
Magnus Hagander [Mon, 2 Apr 2018 10:31:41 +0000 (12:31 +0200)]
Update scrubbing script for new reality
Magnus Hagander [Thu, 29 Mar 2018 10:00:05 +0000 (12:00 +0200)]
Don't send notifications generated internally in the system
Django 1.11 fires the save signals in more cases than 1.8 did it seems,
so we can generate extra notifications for example when the twitter
script posts a news item to twitter.
To avoid this, just don't send notification if the user is unknown
(=None).
Per discussion with Jonathan
Magnus Hagander [Sun, 25 Mar 2018 14:51:48 +0000 (16:51 +0200)]
Fix template loaders for django 1.11
Seems django 1.11 automatically enables caching template loader, which
of course breaks the ability to make any changes to the pages of a
website without restarting it. And there is no way to turn it off other
than to explicitly configure individual loders (the logic to turn it on
in non-debug configurations is hardcoded and cannot be changed).
Magnus Hagander [Fri, 23 Mar 2018 13:16:23 +0000 (14:16 +0100)]
Pdf wrapper should not inherit from django model
It was already storing the version as a field, the inheriting from the
actual model was never used. Remove it, since newer django tries to
access a table based on the class name..
Magnus Hagander [Fri, 23 Mar 2018 12:54:22 +0000 (13:54 +0100)]
Fix unnecessary warning
null=False means nothing on a ManyToMany, new django warns about it.
Magnus Hagander [Fri, 23 Mar 2018 12:47:31 +0000 (13:47 +0100)]
Fix more template syntax error
Can't use = for comparison, must use ==. Been broken for a long time,
but older django painted over the problem.
Magnus Hagander [Fri, 23 Mar 2018 12:45:27 +0000 (13:45 +0100)]
Fix template syntax error
Magnus Hagander [Fri, 23 Mar 2018 12:18:55 +0000 (13:18 +0100)]
Re-implement password reset token sending natively
The django version of password reset is broken in multiple way. What's
hurting us in particular is it cannot reset the password of a user where
the old password was generated by a deprecated hasher. Which, of course,
is exactly one of the cases where being able to reset the password is
important.
We still use the same infrastructure, and we use the actual django code
for *changing* the password -- this just replaces the token sender with
something that's a lot simpler and less broken.
Daniel Gustafsson [Thu, 22 Mar 2018 20:17:01 +0000 (21:17 +0100)]
Fix runaway paragraph on developer/core
The member profile paragraph was missing the terminating </p> tag.
Daniel Gustafsson [Thu, 22 Mar 2018 10:46:57 +0000 (11:46 +0100)]
Tweak wording around minor rev upgrades
Change "risk of upgrading" to "risk associated with upgrading".
Magnus Hagander [Wed, 21 Mar 2018 13:40:24 +0000 (14:40 +0100)]
Only report "updated list n" if it's actually updated
Magnus Hagander [Wed, 21 Mar 2018 13:28:56 +0000 (14:28 +0100)]
Remove stupid debugging code left behind
Magnus Hagander [Wed, 21 Mar 2018 13:18:42 +0000 (14:18 +0100)]
Add tool to sync list information from archives server
pgweb is no longer the master of this information, so add a tool to make
it sync it from the archives server.
Any changes made locally will be overwritten by this tool except the
sortkey field on groups which is local. For now.
Magnus Hagander [Wed, 21 Mar 2018 13:17:51 +0000 (14:17 +0100)]
Remove incorrect commented out line
Can't use that line without the comment, so get rid of the comment.
Magnus Hagander [Wed, 21 Mar 2018 13:15:27 +0000 (14:15 +0100)]
Backpatch validators into initial migration
It's just silly to do a real migration with this
Magnus Hagander [Wed, 21 Mar 2018 13:12:26 +0000 (14:12 +0100)]
Remove externallink field from Mailinglist model
This is not used for anything...
Magnus Hagander [Wed, 21 Mar 2018 12:15:59 +0000 (13:15 +0100)]
Reference mailinglists by name when sending search query
This way we don't have to keep the exact id values in sync between
different systems, which makes it much less evil.
Magnus Hagander [Wed, 21 Mar 2018 09:33:54 +0000 (10:33 +0100)]
Remove temporary API used during pglister migration
Jonathan S. Katz [Sun, 18 Mar 2018 15:17:31 +0000 (11:17 -0400)]
Added more books to /docs/books/
Information collected by Sarah Conway <sarah.conway@crunchydata.com>
Magnus Hagander [Sat, 10 Mar 2018 15:58:47 +0000 (10:58 -0500)]
Fix model diffing to be compatible with both 1.8 and 1.11
Magnus Hagander [Sat, 10 Mar 2018 15:58:26 +0000 (10:58 -0500)]
Rendering a template takes a dict and not a context
This is optional in Django 1.8, but a mandatory change in 1.11.
Backwards compatible.
Magnus Hagander [Sat, 10 Mar 2018 15:57:55 +0000 (10:57 -0500)]
Fix context processor class name for newer django
Missed this in
09f904f787616c19080032e1dfe0ef08404007c7
Magnus Hagander [Sat, 10 Mar 2018 15:57:25 +0000 (10:57 -0500)]
Magnus Hagander [Sat, 10 Mar 2018 15:54:13 +0000 (10:54 -0500)]
Fix that HttpServerError now takes a request as parameter
Magnus Hagander [Sat, 10 Mar 2018 15:47:00 +0000 (10:47 -0500)]
Show django version in system_information
Magnus Hagander [Sat, 10 Mar 2018 15:40:30 +0000 (10:40 -0500)]
Remove specific url handler for favicon
Only used locally anyway, so we don't care. In production this is
handled by the webserver.
Magnus Hagander [Sat, 10 Mar 2018 15:34:50 +0000 (10:34 -0500)]
Replace NavContext and render_to_response with render_pgweb
render_to_response does not work on newer django, so it needs to be
replaced. And using a speicfic context actually overcomplicates things,
it's easier to just use a wrapper function. For those cases where we
don't need NavContext, just use render() (the new shortcut function from
django), which also removes the need to use RequestContext.
Magnus Hagander [Fri, 9 Mar 2018 21:43:49 +0000 (16:43 -0500)]
Import newer version of django-selectable
Sync up to the same version we have on the commitfest app, which will
also be required for eventual django 1.11 support.
Magnus Hagander [Fri, 9 Mar 2018 20:58:49 +0000 (15:58 -0500)]
Update template configuration for newer django
Also fully backwards compatible
Magnus Hagander [Fri, 9 Mar 2018 20:36:02 +0000 (15:36 -0500)]
Update URL formats to be compatible with newer django
This format is supported both on the current 1.8 deployment and on newer
versions, so no incompatibilities to worry about.
Magnus Hagander [Fri, 9 Mar 2018 20:14:32 +0000 (15:14 -0500)]
Validate ssh keys as they are entered in the profile
In particular, reject ssh-dss keys here. They don't work anymore since
an upgrade, for security reasons, but there was not really a way for the
user to know why. With this they will at least know if when they try to
save or change the keys.
Jonathan S. Katz [Mon, 5 Mar 2018 14:34:38 +0000 (09:34 -0500)]
Update Recognized Conference guidelines
Update the recognized conference guidelines in the "Financial"
section to be clearer as to how to create a statement of how
financial proceeds are applied.
Magnus Hagander [Mon, 5 Mar 2018 12:10:50 +0000 (13:10 +0100)]
Support contacting archives search server over http
This makes it a lot easier to do local testing. Of course, in production
we use https and by default.
Jonathan S. Katz [Thu, 1 Mar 2018 12:42:42 +0000 (07:42 -0500)]
Shoutboux for
20180301 release
Jonathan S. Katz [Wed, 28 Feb 2018 13:43:54 +0000 (08:43 -0500)]
Fix URL reference to the "commands" module and improve language.
Reported by Raymond O'Donnell <rod@iol.ie>
Magnus Hagander [Sun, 25 Feb 2018 17:28:01 +0000 (18:28 +0100)]
Allow unlinked CVEs and poll for valid links
This way new CVEs that are added will start off being listed, but not
with a link. When upstream (currently redhat) publishes the CVE, a
cronjob will pick this up and update it with a link.
Of course, we still only show CVEs that are listed as public, but this
should hopefully get rid of some of the questions of why we link to a
404.
Magnus Hagander [Tue, 20 Feb 2018 17:50:38 +0000 (18:50 +0100)]
Make it more clear tha bug reports are public
Make it super clear that bug reports and docs corrections are both
posted to a public mailinglist and archived in the public archives.
Dave Page [Tue, 20 Feb 2018 12:39:34 +0000 (12:39 +0000)]
Purge /applications-v2.xml when SB apps are changed.
Daniel Gustafsson [Fri, 16 Feb 2018 13:59:57 +0000 (14:59 +0100)]
Fix spelling on docsbug form
Stefan Kaltenbrunner [Thu, 15 Feb 2018 17:52:02 +0000 (18:52 +0100)]
Fix "RedHat" type and add instructions for the SUSE rpm repository.
Patches by Devrim Gündüz on pgsql-www.
Magnus Hagander [Thu, 15 Feb 2018 15:34:50 +0000 (16:34 +0100)]
Fix yum spider for versions with >1 repo rpm
The code was supposed to pick the latest version of the repo rpm in this
scenario, but at some point the data structure was updated and the code
was not, so it ended up actually picking the *oldest* version of the
repo rpm.
Magnus Hagander [Thu, 8 Feb 2018 21:23:39 +0000 (22:23 +0100)]
Mark security archives redirect as permanent
This silences a deprecation warning.
Daniel Gustafsson [Thu, 8 Feb 2018 21:08:38 +0000 (22:08 +0100)]
Fix mailinglist link in README
Use https rather than http and the new URL for the list page.
Daniel Gustafsson [Thu, 8 Feb 2018 20:57:42 +0000 (21:57 +0100)]
Add a top margin on the newstag
The newstag label was sitting close on the textblock, add a bit of
top-margin to create separation.
Reviewed by: Magnus Hagander <magnus@hagander.net>
Magnus Hagander [Thu, 8 Feb 2018 14:27:17 +0000 (15:27 +0100)]
Fix ordering of CVE entries
Jonathan S. Katz [Thu, 8 Feb 2018 13:22:56 +0000 (08:22 -0500)]
Content for 2018-02-08 cumulative release.
Daniel Gustafsson [Mon, 5 Feb 2018 11:58:25 +0000 (12:58 +0100)]
Fix markup on about/advantages
Close paragraph which was left open, causing the next heading to
be in the wrong context.
Dave Page [Mon, 5 Feb 2018 11:43:37 +0000 (11:43 +0000)]
Update SPI address.
Daniel Gustafsson [Thu, 1 Feb 2018 20:19:32 +0000 (21:19 +0100)]
Remove undefined class declaration
There is no navFooter class defined in the CSS, a fact made quite
clear due to one of its uses being misspelled without any problems.
Remove class declaration.
Daniel Gustafsson [Thu, 1 Feb 2018 20:15:36 +0000 (21:15 +0100)]
Close input tags
XHTML requires all tags to be closed.
Daniel Gustafsson [Thu, 1 Feb 2018 20:14:12 +0000 (21:14 +0100)]
Fix paragraphs on donate page
There was a stray opening paragraph, and a missing closing one.
Remove and add.
Daniel Gustafsson [Thu, 1 Feb 2018 19:52:33 +0000 (20:52 +0100)]
Avoid redirect on opensource.org links
http://www.opensource.org/licenses/postgresql redirects with a
301 to its https counterpart, update the link to save a redirect
for our users.
This link is present in all the presskits as well, but the amount
of clicks there should be low enough to not bother.
Daniel Gustafsson [Thu, 1 Feb 2018 19:50:50 +0000 (20:50 +0100)]
Fix incorrect anchors on event archive
The name attribute of an anchor link cannot contain spaces,
pass the header name via the slugify filter to ensure it's
compliant.
Daniel Gustafsson [Tue, 30 Jan 2018 18:56:57 +0000 (19:56 +0100)]
Use https for all postgresql.org links
Daniel Gustafsson [Tue, 30 Jan 2018 18:42:19 +0000 (19:42 +0100)]
Presskit 10: rename OSX to macOS
There is no such thing as OSX anymore, it is now macOS. This
updates the version 10 presskit, but leaves the backbranch
presskits even though Apple has retroactively renamed the old
versions macOS as well.
Daniel Gustafsson [Tue, 30 Jan 2018 15:25:08 +0000 (16:25 +0100)]
Ensure all <img> tags are closed
The <img .. /> tag is required to be to closed in XHTML, as opposed
to HTML where <img ..> is valid. Properly close all currently open
img tags and also add alt="" attributes where missing.
Dave Page [Wed, 31 Jan 2018 10:01:29 +0000 (10:01 +0000)]
Update URLs for EDB installers. The old ones were 2 website generations ago, and incurred at least 2 redirects.
Magnus Hagander [Sat, 27 Jan 2018 11:21:06 +0000 (12:21 +0100)]
Clarify some wording
Magnus Hagander [Sat, 27 Jan 2018 11:21:02 +0000 (12:21 +0100)]
Fix typo
Magnus Hagander [Fri, 26 Jan 2018 10:28:53 +0000 (11:28 +0100)]
Don't list unsupported versions that have no patches at all
That just generates a completely empty page in the output, so remove the
link completely instead.
For supported versions we list all of them, including if they have no
patches.
Magnus Hagander [Fri, 26 Jan 2018 10:20:19 +0000 (11:20 +0100)]
Activate new security pages
This also removes the two previous static pages for this information.
Access to the old "security archives" URL is now redirected back to the
main security page, since the archive is replaced with a dynamically
built of per-version security patches.
Magnus Hagander [Fri, 26 Jan 2018 10:18:39 +0000 (11:18 +0100)]
Remove dead code
Magnus Hagander [Fri, 26 Jan 2018 10:18:02 +0000 (11:18 +0100)]
Fix query for version-specific security support list
When asking for version x, we should still list all versions the patch
in question applies to, not limit it to the current one.
Magnus Hagander [Fri, 26 Jan 2018 10:12:04 +0000 (11:12 +0100)]
Small refectoring
Makes the code easier to use in future feed support
Magnus Hagander [Fri, 26 Jan 2018 10:03:10 +0000 (11:03 +0100)]
Add explicit group permissions check for varnish purge and pending mod
Previously we just used "is member of staff", but for better granuality
explicitly also check membership of groups. This introduces the new
group "varnish purgers" for that permission.
Magnus Hagander [Thu, 25 Jan 2018 21:30:22 +0000 (22:30 +0100)]
Remove references to vector_other
The actual field was already removed, but references in admin.py were
accidentally left around. Oops.
Magnus Hagander [Thu, 25 Jan 2018 20:59:13 +0000 (21:59 +0100)]
Database:ify the list of security patches
This finally moves the patches into the db, which makes it a lot easier
to filter patches in the views.
It also adds the new way of categorising patches, which is assigning
them a CVSSv3 score.
For now, there are no public views to this, and the old static pages
remain. This is so we can backfill all existing security patches before
we make it public.
Magnus Hagander [Tue, 23 Jan 2018 20:20:19 +0000 (21:20 +0100)]
Remove majordomo2 subscription form
Replace it with a redirect to lists.postgresql.org, where pglister lives.
Magnus Hagander [Tue, 23 Jan 2018 20:12:15 +0000 (21:12 +0100)]
Change mailpref redirect to go to pglister
Magnus Hagander [Mon, 22 Jan 2018 11:28:46 +0000 (12:28 +0100)]
Add view that lists all available tags as json
For external consumption. Only tag and description is viewed, but URLs
to the feeds and pages can easily be constructed using it.
Magnus Hagander [Mon, 22 Jan 2018 11:28:14 +0000 (12:28 +0100)]
Fix admin base for non-notification models
Magnus Hagander [Sat, 13 Jan 2018 17:14:13 +0000 (18:14 +0100)]
Add a createuser callback for cauth django plugin
This callback can prevent new users from being created based on specific
criteria. The plugin is defined in settings.py, so it can be any python
code. For example, it can look up in a specific table if this user is
supposed to be allowed to log in at all.
Magnus Hagander [Sat, 13 Jan 2018 17:11:21 +0000 (18:11 +0100)]
Add ability to import user to django cauth example
This has been in used around a number of community sites already,
backpatch it into the upstream master.
Magnus Hagander [Sat, 13 Jan 2018 17:09:27 +0000 (18:09 +0100)]
Add possibility to turn off django cauth using settings in sample
This sample is used across most of our other sites, so add functionality
to install without having a local master repo.
Back-patch of pgeu commit
3e4d8c9101c2d309b134c2f5638aa40db8ef2cf5
Magnus Hagander [Sat, 6 Jan 2018 16:49:30 +0000 (17:49 +0100)]
Fix doc comments for devel version
Don't say version 0.0 in the emails that are sent out. That's what we
call it internally, but the URL should have /devel/ in it. Fix this both
in the template, and then if it comes through in the form again in case
the user picked up a link elsewhere that is incorrect.
Jonathan S. Katz [Fri, 5 Jan 2018 18:59:00 +0000 (13:59 -0500)]
Modify sentence on production PostgreSQL instances on about page.
Jonathan S. Katz [Thu, 4 Jan 2018 17:19:46 +0000 (12:19 -0500)]
Add URL to @postgresql on global footer and Contact page
Magnus Hagander [Thu, 28 Dec 2017 15:09:31 +0000 (16:09 +0100)]
Don't crash when adding models with optional m2m fields
If the m2m field is optional, there will be no "pre" data available, not
even an empty one. Don't crash in this case, just assume it's empty
(which it is).
This could happen when adding a new Organisation, which currently is the
only model we have with optional m2m fields
Magnus Hagander [Wed, 27 Dec 2017 11:14:41 +0000 (12:14 +0100)]
Mark text as safe in bug report email
Since we're sending the email as text/plain, we shouldn't be doing HTML
escaping on it.
Magnus Hagander [Thu, 21 Dec 2017 10:47:43 +0000 (11:47 +0100)]
Update migration with previous changes
This was missed in
ab36183fdac33c699ae7ed076a7ee85a9cbd895e. It's not a
change that actually changes the database in any way, so no need to
create an actual migration.
Magnus Hagander [Thu, 21 Dec 2017 10:43:58 +0000 (11:43 +0100)]
Consistently refer to Community events in submission form
Original patch had "badged", and it was renamed to Community event to
make it more clear, but all texts clearly didn't get the memo.
Magnus Hagander [Wed, 20 Dec 2017 12:58:17 +0000 (13:58 +0100)]
Remove support for "remove after notify" on moderation
This broke when we had ManyToMany relations on a record. We didn't use
to have that, but with tags for news we now do. With this change, the
"reject with a notice" becomes a two step operation, the first one
adding the notification and the second one doing the removal. That'll
have to do for now, and at some point in the future we may create a
completely separate (non /admin/) workflow for moderation and fix it
that way.
Magnus Hagander [Mon, 18 Dec 2017 15:24:23 +0000 (16:24 +0100)]
Fix reply-to address for docs comments emails
Magnus Hagander [Mon, 18 Dec 2017 15:22:11 +0000 (16:22 +0100)]
Set sender name on bug report and docs comments email
Magnus Hagander [Mon, 18 Dec 2017 15:21:01 +0000 (16:21 +0100)]
Add support for setting recipient name and sender name