Dave Page [Mon, 18 Feb 2019 10:36:53 +0000 (10:36 +0000)]
Move project policies to the website.
Changes by myself and Jonathan Katz
Review by Jonathan Katz and Daniel Gustafsson
Jonathan S. Katz [Thu, 14 Feb 2019 13:26:56 +0000 (08:26 -0500)]
Fixed one missing version bump.
Jonathan S. Katz [Thu, 14 Feb 2019 12:26:46 +0000 (07:26 -0500)]
2019-02-14 Cumulative Update Release.
Jonathan S. Katz [Tue, 12 Feb 2019 21:22:52 +0000 (16:22 -0500)]
Apply navbar fix to the documentation pages.
For some reason, I missed this in my original patch.
Magnus Hagander [Sun, 10 Feb 2019 13:46:53 +0000 (14:46 +0100)]
Update migrations for py3
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.
No actual changes included in this patch.
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.
Magnus Hagander [Sun, 10 Feb 2019 13:28:47 +0000 (14:28 +0100)]
Make it possible to block OAuth signin to accounts
This adds a checkbox to each user account letting the user block the use
of OAuth to this account, forcing the use of internal authentication.
Dave Page [Wed, 6 Feb 2019 11:49:36 +0000 (11:49 +0000)]
Tell folks how they can add/update contributors.
Jonathan S. Katz [Sun, 3 Feb 2019 14:33:00 +0000 (09:33 -0500)]
Pin the navigation bar to the top of the page.
From user feedback, the scrolling navigation bar would cause problems with
readability, especially in larger font views. This keeps the navigation bar
pinned to the top, until we can find a way to more easily handle this.
Daniel Gustafsson [Thu, 31 Jan 2019 12:42:25 +0000 (13:42 +0100)]
Avoid redirects for mailinglist links
The /community/lists/ URL is redirecting to /list/ since the new
archive and list code. Rewrite the final links to avoid the redirect.
Also remove the #developer anchor since the new list page doesn't
have anchors.
Reviewed-by: Magnus Hagander
Magnus Hagander [Mon, 28 Jan 2019 13:06:29 +0000 (14:06 +0100)]
Make docs comment suggestions do a redirect
This is the same as
b2ed4946551c098079d1a156b222d4ebf5c85cba did for bug
reports.
This changes the regexps for all the doc comment suggestions forms to be
a little bit more specific than before.
Magnus Hagander [Mon, 28 Jan 2019 13:00:29 +0000 (14:00 +0100)]
Fix docs comment form for version = "current"
Normally not reachable with "current", only with explicit version,
but as proven by some live crashes, there is some way to. So make
sure we look up the current version instead of crashing.
Jonathan S. Katz [Sat, 26 Jan 2019 19:21:28 +0000 (14:21 -0500)]
Bring requirements.txt up-to-date for Python 3 libs.
Hopefully makes it easier for people to get up and running.
Magnus Hagander [Sat, 26 Jan 2019 16:21:37 +0000 (17:21 +0100)]
Update docsload to use tidylib instead of tidy
The old library is not supported on py3. This is the same migration
we've done for other projects like pgarchives.
Magnus Hagander [Sat, 26 Jan 2019 15:46:40 +0000 (16:46 +0100)]
Another encoding fix for yum
Magnus Hagander [Sat, 26 Jan 2019 15:45:41 +0000 (16:45 +0100)]
Fix datatype and encoding for yum spider
Jonathan S. Katz [Sat, 26 Jan 2019 15:42:43 +0000 (10:42 -0500)]
Fix integer division in search.
Caused error in pagination on site search.
Magnus Hagander [Sat, 26 Jan 2019 15:40:55 +0000 (16:40 +0100)]
Re-instate previously hardcoded hostname in spiders
Magnus Hagander [Sat, 26 Jan 2019 15:23:10 +0000 (16:23 +0100)]
Fix sorting in file browser
Magnus Hagander [Thu, 24 Jan 2019 12:07:21 +0000 (13:07 +0100)]
Re-implement modification notifications in simple_form
The way signals are sent for many2many apparently changed completely
between the python2 and python3 versions of the same Django version,
which broke the way we did this before. And it was always a bit of a
hack...
Instead, reimplement notifications in the simple_form handler. This now
also consolidates regular field notificationss and many2many
notifications in a much cleaner way.
This will, however, *only* have an effect on changes made through
simple_form. Luckily that's the most common way we handle forms, with
the exception being /admin/. So leave the old code in place to handle
the changes through /admin/, as well as the deletion of objects.
In the end the only thing lost is the ability to get m2m differences
when an admin makes changes, and that's the least important of all
notification. And as a bonus, the regular change notifications and in
particular "new item" notifications look a lot nicer.
Magnus Hagander [Wed, 23 Jan 2019 21:14:56 +0000 (22:14 +0100)]
Update search crawler for python3
This includes the switch to requests, but also a bunch of other changes.
While at it, fix it so we can do proper https validation.
Magnus Hagander [Mon, 21 Jan 2019 11:23:37 +0000 (12:23 +0100)]
Fix integer division
Magnus Hagander [Mon, 21 Jan 2019 11:23:23 +0000 (12:23 +0100)]
Update for new module/namespace for urllib
Magnus Hagander [Mon, 21 Jan 2019 11:21:46 +0000 (12:21 +0100)]
Switch recaptcha, search, spiders and varnish to requests
Easiser to switch to the requests package than to figure out how to deal
with some of the encoding changes manually. And as a bonus, it's much
nicer to work with the requests package for the future.
Magnus Hagander [Mon, 21 Jan 2019 09:52:51 +0000 (10:52 +0100)]
Fix changed names of imports
Magnus Hagander [Mon, 21 Jan 2019 09:51:12 +0000 (10:51 +0100)]
Remove trailing windows newline
Magnus Hagander [Mon, 21 Jan 2019 09:42:05 +0000 (10:42 +0100)]
More generic changes from 2to3
Magnus Hagander [Sun, 20 Jan 2019 10:10:14 +0000 (11:10 +0100)]
Attempt to fix localhtmlvalidate
It was already broken and didn't work properly, but update to py3 and at
least make it run. More changes are necessary to actually make it happy
again.
Magnus Hagander [Sat, 19 Jan 2019 19:23:16 +0000 (20:23 +0100)]
Remove indexer for old archives
We have been using the new archives for many years now, so remove this
instead of trying to port it to python3.
Magnus Hagander [Sat, 19 Jan 2019 19:17:36 +0000 (20:17 +0100)]
Update script shebangs to use python3
Magnus Hagander [Sat, 19 Jan 2019 19:12:52 +0000 (20:12 +0100)]
Fix unicode for hashlib operations
Magnus Hagander [Sat, 19 Jan 2019 19:09:24 +0000 (20:09 +0100)]
Update print and input syntax for python 3
Magnus Hagander [Sat, 19 Jan 2019 19:03:33 +0000 (20:03 +0100)]
Fix base64 encodings
Magnus Hagander [Sat, 19 Jan 2019 19:00:35 +0000 (20:00 +0100)]
Import latest auth.py from pgeu as sample
Magnus Hagander [Sat, 19 Jan 2019 18:48:47 +0000 (19:48 +0100)]
Generic unicode updates
Magnus Hagander [Sat, 19 Jan 2019 18:38:00 +0000 (19:38 +0100)]
Update syntax for relative imports
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.