Magnus Hagander [Sat, 19 Jan 2019 18:34:14 +0000 (19:34 +0100)]
Update to new style exception catching
Jonathan S. Katz [Thu, 24 Jan 2019 17:09:02 +0000 (12:09 -0500)]
Added "PostgreSQL for DBA volume 1..." to "Books"
Magnus Hagander [Thu, 17 Jan 2019 21:20:37 +0000 (22:20 +0100)]
Fix accidentally reversed check
Magnus Hagander [Thu, 17 Jan 2019 20:30:01 +0000 (21:30 +0100)]
Fix silly typo
Magnus Hagander [Thu, 17 Jan 2019 20:26:41 +0000 (21:26 +0100)]
Add a githook and a config file to run pep8 pre-commit
Magnus Hagander [Thu, 17 Jan 2019 20:19:57 +0000 (21:19 +0100)]
Fix deprecated comparison structs
Magnus Hagander [Thu, 17 Jan 2019 19:52:17 +0000 (20:52 +0100)]
Remove multi-statement lines, per pep8
Magnus Hagander [Thu, 17 Jan 2019 19:49:33 +0000 (20:49 +0100)]
Fix import order, per pep8
Magnus Hagander [Thu, 17 Jan 2019 19:47:43 +0000 (20:47 +0100)]
Fix whitespace and indentation, per pep8
Magnus Hagander [Thu, 17 Jan 2019 14:30:25 +0000 (15:30 +0100)]
Tabs, meet your new overlords: spaces
In a quest to reach pep8, use spaces to indent rather than tabs.
Magnus Hagander [Thu, 17 Jan 2019 09:27:51 +0000 (10:27 +0100)]
Redirect the user upon successful bug report submission
Previously the result page was rendered directly and if the user hit the
refresh button the bug woulb be duplicated. Instead redirect to a
results page (with the bug number) which can be freely refreshed.
Magnus Hagander [Thu, 17 Jan 2019 09:24:55 +0000 (10:24 +0100)]
Create and track a mapping between bug ids and messageids
Not used yet (though a prototype redirect view is present) since we need
to populate it with data from the past, but with this we start
collecting the mapping for future bugs.
Magnus Hagander [Thu, 17 Jan 2019 09:08:33 +0000 (10:08 +0100)]
Seems GA also needs data: urls sometimes
Jonathan S. Katz [Fri, 11 Jan 2019 21:16:11 +0000 (16:16 -0500)]
Ensure font size for <h5> blocks are smaller than <h4>
<h5> was not explicitly set prior.
Jonathan S. Katz [Wed, 9 Jan 2019 15:31:46 +0000 (10:31 -0500)]
Add further indentation to variable lists to distinguish groups.
This was an regression introduced by the new styles that affects
readability of nested variables lists (e.g. on the message protocol
page). This brings the look more in line with the previous documentation
styles and should help with readability.
Jonathan S. Katz [Sun, 6 Jan 2019 21:32:02 +0000 (16:32 -0500)]
Retain documentation version when navigating paginated links.
The old code always raised an exception as the variable being checked
was not defined at that point. Now, it checks the variable that one
expects to be set.
Magnus Hagander [Sat, 5 Jan 2019 12:15:58 +0000 (13:15 +0100)]
Remove inline script from debian/ubuntu download page
Magnus Hagander [Thu, 3 Jan 2019 13:57:58 +0000 (14:57 +0100)]
Remove legacy onfocus event handler
This one goes back 10+ years and nobody really knows what it's for. And
it does create issues for the content security policy, so let's just get
rid of it.
Magnus Hagander [Sat, 29 Dec 2018 10:48:02 +0000 (11:48 +0100)]
Allow framing google.com on account signup page
This is used for the recaptcha. Also enable this for oauth signups,
previously missed.
Magnus Hagander [Sat, 29 Dec 2018 10:25:43 +0000 (11:25 +0100)]
Allow data: url for image and fonts
Turns out data: is not included in "*" for images, so just add it. For
fonts, data: is used by google fonts.
Magnus Hagander [Sat, 29 Dec 2018 10:18:05 +0000 (11:18 +0100)]
Allow google analytics to do "connect" as well
Based on CSP reports collected
Magnus Hagander [Wed, 26 Dec 2018 11:44:25 +0000 (12:44 +0100)]
Fix unicode in error message about ssh keys
Caused an exception when somebody tried to upload an SSH key where the
*key type* contains non-ascii (this would normally be things like
"ssh-rsa", and there are definitely no legit key types outside the ascii
range, but we still shouldn't crash)
Jonathan S. Katz [Sat, 22 Dec 2018 16:35:31 +0000 (11:35 -0500)]
Remove inline styles from feature matrix generator.
This moves the HTML code generated for the filters into the Django
template, instead of the JavaScript portion.
Magnus Hagander [Sat, 22 Dec 2018 16:06:48 +0000 (17:06 +0100)]
Don't try to validate organisation ownership for new orgs
Magnus Hagander [Sat, 22 Dec 2018 15:28:42 +0000 (16:28 +0100)]
Allow unsafe inline style on docs
Our new docs build seems to put this in there, and only older docs were
tested it seems.
Magnus Hagander [Sat, 22 Dec 2018 15:24:10 +0000 (16:24 +0100)]
Another try at fixing google analytics vs CSP
Magnus Hagander [Sat, 22 Dec 2018 15:22:35 +0000 (16:22 +0100)]
Allow all of google-analytics in CSP
It needs a tleast both www.google-analytics and ssl.google-analytics..
Magnus Hagander [Sat, 22 Dec 2018 15:07:28 +0000 (16:07 +0100)]
Stopgap fix for lack fo permissions check on organistions
Magnus Hagander [Thu, 20 Dec 2018 15:50:24 +0000 (16:50 +0100)]
Enable setting of security http headers
The following security policy headers are set:
X-XSS-Protection: 1; mode=block -- always set
X-Frame-Options: DENY is set for all pages except for the documentation
pages, primarily because pgadmin4 loads them in an iframe which would
break.
Content-Security-Policy: <x>-src
Is set to allow the default of self only, then allowing scripts for
google analytics and fonts for google fonts. Images are allowed from everywhere.
frame-ancestors 'none' is set by the same rules as X-Frame-Options
This also adds a decorator for @script_sources to have a single view
allow extra sources, and this is used for recaptcha. A generic decorator
is also made for other types of exclusions, though we don't have any at
this point.
If the setting SECURITY_POLICY_REPORT_ONLY is set to True then the policy
will be report-only and not enforced (for testing), otherwise enforcing
mode is enabled.
The setting SECURITY_POLICY_REPORT_URI sets where to send security
policy reports, if any.
Magnus Hagander [Thu, 20 Dec 2018 16:12:06 +0000 (17:12 +0100)]
Get rid of all inline styles
Some of these should be replaced with proper responsive tables for
example at some point, but this is a quick-fix.
Magnus Hagander [Thu, 20 Dec 2018 15:28:34 +0000 (16:28 +0100)]
Remove unexpected inline stylesheet in very old presskit
Magnus Hagander [Thu, 20 Dec 2018 15:27:55 +0000 (16:27 +0100)]
Include base stylesheet via link instead of style
Instead of using <style> with import, set an explicit link like we do
for other stylesheets. This will make it possible to turn on a content
security policy for CSS.
Magnus Hagander [Thu, 20 Dec 2018 15:27:24 +0000 (16:27 +0100)]
Move admin custom css over to separate css file instead of inline
Magnus Hagander [Thu, 20 Dec 2018 14:47:24 +0000 (15:47 +0100)]
Move google analytics and scrolling code into main.js
This moves the remaining inline javascript out of the base templates
Magnus Hagander [Thu, 20 Dec 2018 14:42:57 +0000 (15:42 +0100)]
Move scripts from admin changeform to their own JS file
Could be made more efficient by combining some files, but tihs is just
the /admin/ interface so not used very often.
Magnus Hagander [Thu, 20 Dec 2018 14:34:29 +0000 (15:34 +0100)]
Use autofocus html attribute instead of javascript
Magnus Hagander [Thu, 20 Dec 2018 14:31:25 +0000 (15:31 +0100)]
Move javascript for forms into separate JS file
In passing also clean up a few things that can be passed directly in the
template instead, and simplify things now that we have jquery all the
time.
Magnus Hagander [Thu, 20 Dec 2018 10:21:21 +0000 (11:21 +0100)]
Move debian/ubuntu downloads javascript into main.js
Magnus Hagander [Thu, 20 Dec 2018 10:15:31 +0000 (11:15 +0100)]
Move featurematrix javascript into a separate script file
Magnus Hagander [Thu, 20 Dec 2018 15:23:30 +0000 (16:23 +0100)]
Remove unused templates
Magnus Hagander [Sun, 16 Dec 2018 15:10:40 +0000 (16:10 +0100)]
Don't crash on an incorrectly quoted suburl parameter
Magnus Hagander [Wed, 5 Dec 2018 15:38:38 +0000 (16:38 +0100)]
Remove training events
The way these were handled they weren't really providing any value to
users, because a lot of sessions were registered and never run etc etc,
but did cause a lot of work for our moderators.
The general feature may return later in the form of "training providers"
or similar as part of the professional services section, but for now
there is no point in maintaining this data.
Daniel Gustafsson [Tue, 4 Dec 2018 20:51:08 +0000 (21:51 +0100)]
Fix typos in comments
Review by Stephen Frost and Jonathan S. Katz
Discussion: https://postgr.es/m/
6EEB2B47-D274-4E65-83B1-
2EF8C917C55F%40yesql.se
Daniel Gustafsson [Tue, 4 Dec 2018 20:49:09 +0000 (21:49 +0100)]
Fix user facing typos
Review by Stephen Frost and Jonathan S. Katz
Discussion: https://postgr.es/m/
6EEB2B47-D274-4E65-83B1-
2EF8C917C55F%40yesql.se
Daniel Gustafsson [Tue, 4 Dec 2018 11:36:18 +0000 (12:36 +0100)]
Remove duplicate <tbody>
Commit
5f8ca8d67285000f16a9bdd0f6a99a0a41c0d418 accidentally copy
pasted one row too many when adding a new entry, and duplicated the
<tbody> tag. Fix by removing.
Dave Page [Mon, 3 Dec 2018 10:00:32 +0000 (10:00 +0000)]
Add PostgreSQL 11 Server Side Programming Quick Start Guide book
Jonathan S. Katz [Tue, 27 Nov 2018 11:51:21 +0000 (06:51 -0500)]
Make "Support" section on "Contact" page more prominent.
There has been a recent uptick in emails asking general questions and
support going to special purpose mailing lists. This renames the
"Technical Support" section to "Support," moves is further up the page,
and rewords it to help guide people to the appropriate places to help
get their questions answered.
Dave Page [Tue, 20 Nov 2018 13:46:13 +0000 (13:46 +0000)]
Fix image link
Dave Page [Tue, 20 Nov 2018 13:44:55 +0000 (13:44 +0000)]
Add new book.
Magnus Hagander [Sat, 17 Nov 2018 18:56:10 +0000 (19:56 +0100)]
Re-enable markdown safe mode
This was removed when django removed support for it, but we then
switched markdown library and didn't re-enable it.
Since all content is moderated it's not so bad (per previous commit
message), but better safe than sorry.
Jonathan S. Katz [Thu, 8 Nov 2018 20:40:09 +0000 (15:40 -0500)]
Add buttons on homepage to submit new events and news.
It was not necessarily obvious how to do this from our navigation,
so this should help.
Jonathan S. Katz [Thu, 8 Nov 2018 16:44:20 +0000 (11:44 -0500)]
s/9.5.13/9.5.15/
Jonathan S. Katz [Mon, 5 Nov 2018 22:07:06 +0000 (17:07 -0500)]
2018-11-08 cumulative release.
Daniel Gustafsson [Tue, 6 Nov 2018 19:39:10 +0000 (20:39 +0100)]
Fix typo
Enrique Benitez via Github
Jonathan S. Katz [Sun, 4 Nov 2018 15:26:21 +0000 (10:26 -0500)]
Added Japanese translation for the Code of Conduct.
As this is the first translation of the Code of Conduct to be added
to pgweb, this also includes the "infratstructure" to add additional
translations.
Jonathan S. Katz [Mon, 5 Nov 2018 22:08:57 +0000 (17:08 -0500)]
Add link to Code of Conduct in the website footer.
Jonathan S. Katz [Mon, 5 Nov 2018 15:50:14 +0000 (10:50 -0500)]
Use "old-style" string format on doc URL redirect.
This eliminates a unicode error.
Jonathan S. Katz [Sun, 4 Nov 2018 16:43:04 +0000 (11:43 -0500)]
Allow checkboxes that have help text associated with be visible to user.
For instances, the "Community Event" check box has instructions for how a
user can verify whether or not they are submitting a community event.
Jonathan S. Katz [Sun, 4 Nov 2018 15:47:54 +0000 (10:47 -0500)]
Remove "Description for Community Event" from form and deprecrate for admins.
This was used primarily to collect information about potential community
events in the beginning of the process. Now that we have about a years'
worth of data, we don't need this form anymore, and can start to sunset
it out.
Jonathan S. Katz [Mon, 5 Nov 2018 15:32:03 +0000 (10:32 -0500)]
Update help text for core.Version.eoldate in the migration file.
The change to the help text was introduced in
669b3782, which caused
a Django migration warning, even though schema changes were introduced.
This also shows the proper way for updating non-schema-altering
field changes that are introduced into Django.
Jonathan S. Katz [Sun, 4 Nov 2018 16:34:41 +0000 (11:34 -0500)]
Remove references to the (static|interactive) path to documentation.
While the permanent redirect will fix this over the course of time,
it is still better that we do not reference the old path from pgweb.
Jonathan S. Katz [Sun, 4 Nov 2018 16:32:18 +0000 (11:32 -0500)]
Remove "/static/" from doc URLs.
This creates a permanent redirect for any doc URL that references the
"static" path (i.e. all doc URLs), which allows a format similar to:
/docs/current/index.html
This is in response to not having "interactive" as an available option,
which should lead to shorter, less confusing URLs.
Jonathan S. Katz [Sun, 4 Nov 2018 15:52:29 +0000 (10:52 -0500)]
Make "Included in Distribution" on par with other headings on Red Hat page.
Suggested to help make it easier to follow post-installation directions.
Jonathan S. Katz [Sun, 4 Nov 2018 15:15:10 +0000 (10:15 -0500)]
Add missing <span> tags on PG11 presskit.
Jonathan S. Katz [Sun, 4 Nov 2018 15:14:03 +0000 (10:14 -0500)]
Fix <i> to be <em> on CoC page.
<i> is just used for icons; <em> is used for italicizing text.
Jonathan S. Katz [Sun, 4 Nov 2018 14:43:22 +0000 (09:43 -0500)]
Make CTA for submitting new news/events/etc. more clear.
Instead of a hyperlink, this appears as a button, so it is not
as hidden on the page.
Jonathan S. Katz [Sun, 4 Nov 2018 14:39:30 +0000 (09:39 -0500)]
Break up "Awaiting Moderation" and "Approved" articles/events/etc.
This was becoming illegible and also hard to maintain based on how
we changed up the look/feel of the entire site. That way, we have
two distinct categories for both types of objects, which makes it
easier for the user to understand what is what.
Also reworded the explanation for what is going on, both based on
the structural change and because it read like a literal interpretation
of the code.
Jonathan S. Katz [Sun, 4 Nov 2018 13:19:48 +0000 (08:19 -0500)]
Specify which red indicates an item that is awaiting moderator approval.
As all the links are red now, this will ensure the user knows what is
still in moderation.
Jonathan S. Katz [Wed, 24 Oct 2018 22:45:54 +0000 (23:45 +0100)]
Fix regression where doc search would not search over current version.
Jonathan S. Katz [Wed, 24 Oct 2018 11:20:32 +0000 (12:20 +0100)]
Modify supported platforms for Windows/OS X installers.
This fix came from feedback about confusion whether or not the installers
supported PostgreSQL 11, which upon manual inspection, they do.
Jonathan S. Katz [Tue, 23 Oct 2018 13:31:47 +0000 (14:31 +0100)]
On RedHat page, improve "Included in Distro / Post-installation" grouping
The aforementioned sections appeared as their own instead of being
subgroups of the main "PostgreSQL Yum Repository" section. This
brings those two sections underneath "PostgreSQL Yum Repository."
Reported By: Keith Fiske
Jonathan S. Katz [Mon, 22 Oct 2018 11:52:22 +0000 (12:52 +0100)]
Remove padding from inline documentation elements.
In some situations, this would make it look like some directives
required spaces (e.g. .pgpass file set up), which would be incorrect.
Reported By: Vik Fearing
Jonathan S. Katz [Thu, 18 Oct 2018 16:39:13 +0000 (09:39 -0700)]
Added Presskit FAQ item about the Code of Conduct.
Author: Mark Wong
Jonathan S. Katz [Thu, 18 Oct 2018 13:24:44 +0000 (09:24 -0400)]
Fixed typo on homepage for PG11 release.
Jonathan S. Katz [Wed, 17 Oct 2018 20:08:58 +0000 (16:08 -0400)]
PostgreSQL 11 Released!
Jonathan S. Katz [Tue, 9 Oct 2018 01:32:09 +0000 (21:32 -0400)]
Update various language across website to reflect PostgreSQL 11 release.
Jonathan S. Katz [Mon, 8 Oct 2018 19:43:54 +0000 (15:43 -0400)]
International press kits for PostgreSQL 11 Release
Jonathan S. Katz [Wed, 17 Oct 2018 00:16:29 +0000 (20:16 -0400)]
Allow for blue section headers for tables in older documentation.
Some of the loaded documentation uses "<b>" tags instead of "<p>"
tags, so this accounts for those documents.
Jonathan S. Katz [Wed, 17 Oct 2018 00:01:55 +0000 (20:01 -0400)]
Make section headers for tables in documentation more clear.
Ensure the section headers for tables in the documentation are both
blue and bold.
Jonathan S. Katz [Tue, 16 Oct 2018 14:39:34 +0000 (10:39 -0400)]
Title case for "Events Archive" "Upcoming Events" & "Latest News"
Jonathan S. Katz [Tue, 16 Oct 2018 14:35:47 +0000 (10:35 -0400)]
Fix text on CTA buttons.
The anchor tag updates were overriding the font color on the CTA buttons. This
ensures that they should not be overriden.
Author: Sarah Conway
Jonathan S. Katz [Tue, 16 Oct 2018 14:30:05 +0000 (10:30 -0400)]
Ensure "Versioning Policy" is titlecased.
Jonathan S. Katz [Tue, 16 Oct 2018 14:20:37 +0000 (10:20 -0400)]
Ensure all navigation URLs match top nav colors.
This should create more consistency for the navigation experience.
Jonathan S. Katz [Tue, 16 Oct 2018 14:13:28 +0000 (10:13 -0400)]
Use title-casing on the homepage banner.
This was affected by the patch that stopped automatically uppercasing
all banners.
Sarah Conway [Thu, 11 Oct 2018 20:01:29 +0000 (13:01 -0700)]
Apply modern pgweb styles to web-based documentation.
This patch brings the web-based documentation to match the current styles
on the main postgresql.org website. The CSS supports the generated markup
from the main PostgreSQL documentation and supports the new/old class
that are visible in the documentation (e.g. uppercase classes pre-v10).
Authors: Sarah Conway, Jonathan Katz
Jonathan S. Katz [Sun, 16 Sep 2018 20:32:12 +0000 (16:32 -0400)]
Modify preformatted block / code styles.
Based on feedback, this should help readability.
Author: Sarah Conway
Jonathan S. Katz [Sun, 16 Sep 2018 20:30:06 +0000 (16:30 -0400)]
Apply padding to shoutbox for larger screen sizes.
Prior to this, there was limited padding on the shoutbox and it would look
smushed.
Author: Sarah Conway
Jonathan S. Katz [Sun, 16 Sep 2018 21:24:26 +0000 (17:24 -0400)]
Updated color of anchor tags in body of site.
This should allow more distinction between main content and clickable
URLs.
Authors: Sarah Conway, Jonathan Katz
Jonathan S. Katz [Sun, 16 Sep 2018 20:28:14 +0000 (16:28 -0400)]
Change global site font color.
This should make the text crisper and easier to read on the entire site.
Author: Sarah Conway
Jonathan S. Katz [Sun, 16 Sep 2018 20:47:56 +0000 (16:47 -0400)]
Update font and style for headers.
The global headers by default were uppercase and at times were challenging to
read. This modification sets the font to be the same throughout the entire site,
and allows the text author to decide whether or not content should be
capitalized.
Author: Sarah Conway
Jonathan S. Katz [Mon, 15 Oct 2018 21:55:43 +0000 (17:55 -0400)]
Fixed broken URL to presskit on the "Press" page.
This was inadvertently during the removal of the legacy URLs.
Magnus Hagander [Fri, 12 Oct 2018 11:53:59 +0000 (13:53 +0200)]
Retire some legacy URL redirects
Some of this goes back to the old website, and some goes back even
further. Clean some up, leave those that are still clearly in use.
Jonathan S. Katz [Tue, 9 Oct 2018 13:12:23 +0000 (09:12 -0400)]
PostgreSQL 11 RC 1 release.
Jonathan S. Katz [Tue, 9 Oct 2018 01:28:03 +0000 (21:28 -0400)]
Provided additional language on the "Testing" page.
Additional guidance on what the content on this page is for and how
to work with the unstable builds.
Jonathan S. Katz [Mon, 8 Oct 2018 16:18:47 +0000 (12:18 -0400)]
Remove "Regional Press Contacts" page
Press enquiries are consolidated to the press@postgresql.org mailing
list. This will cut down on the administrative overhead for the
sysadmins team as well as for future work on the press release process
itself.
Jonathan S. Katz [Mon, 8 Oct 2018 15:55:49 +0000 (11:55 -0400)]
Rewrite of some language on "Beta Information page"
Primarily, this is to help more clearly define what a release candidate
is and isn't, but also took the time to add more clarifying language
around the beta process, what to expect, and what the community needs.
Magnus Hagander [Tue, 25 Sep 2018 08:52:35 +0000 (10:52 +0200)]
Oops, fix generated messageid to include <>
Magnus Hagander [Mon, 24 Sep 2018 20:50:17 +0000 (22:50 +0200)]
Generate bug-specific messsageids when generating bug reports
This makes the messageids shorter and easier to identify when linking to
them in the archives.
Stephen Frost [Mon, 24 Sep 2018 14:04:49 +0000 (10:04 -0400)]
Update references for NOTIFICATION_EMAIL
This updates various references to use NOTIFICATION_EMAIL, since that's
what we actually send the emails too.
Also change the moderators group to be 'pgweb moderators'.
Stephen Frost [Thu, 20 Sep 2018 14:40:40 +0000 (10:40 -0400)]
Fix pgsql-docs address
The pgsql-docs mailing list is now pgsql-docs@lists.postgresql.org,
update the docsbug page to refer to that address.