Magnus Hagander [Sun, 13 Apr 2014 12:59:47 +0000 (14:59 +0200)]
Fix git pull from the wrong directory :O
Magnus Hagander [Sun, 13 Apr 2014 12:53:48 +0000 (14:53 +0200)]
IP restrictions don't currently work on SSL
Since we pipe all SSL through frontends, and explicitly reject directly
accessing the main host. However, this call has no payload, so we can
safely allow it without SSL through the frontends. Do that for now, while
we should look at fixing the SSL issue sometime in the future
Magnus Hagander [Sun, 13 Apr 2014 12:16:31 +0000 (14:16 +0200)]
Reorder update script to pull static repo first
Prior to this, the static repo would only update if there were
*some* changes in the main repo, which clearly wasn't intended.
Also, shorten the forced delay to 10 seconds.
Magnus Hagander [Sun, 13 Apr 2014 12:11:19 +0000 (14:11 +0200)]
Add API url that drops a trigger file for updates
The idea is a git repository hook will send a POST to this URL, which
will drop a trigger file somewhere. A cronjob (or inotify listener if
we want to be really fancy sometiem in the future) will pick up that
cronjob and run the update script. The goal being to shorten the time
required to process an update.
Magnus Hagander [Sun, 13 Apr 2014 12:05:49 +0000 (14:05 +0200)]
Fix spelling error in comments
Magnus Hagander [Fri, 28 Mar 2014 18:18:42 +0000 (19:18 +0100)]
Fix accidentally swapped CVE numbers
Reported by Steve Christey Coley
Dave Page [Thu, 20 Mar 2014 14:13:57 +0000 (14:13 +0000)]
Fix date.
Dave Page [Thu, 20 Mar 2014 14:11:16 +0000 (14:11 +0000)]
PostgreSQL updates 9.3.4, 9.2.8, 9.1.13, 9.0.17, and 8.4.21 released
Thom Brown [Sat, 15 Mar 2014 14:35:59 +0000 (14:35 +0000)]
Replace locally-hosted jQuery with CDN-hosted version.
Magnus Hagander [Sat, 15 Mar 2014 14:00:40 +0000 (15:00 +0100)]
Remove hardcoding of list of unsupported versions
Instead, query it from the database, so that it's properly updated when
a new release goes out of support.
Thom Brown [Thu, 13 Mar 2014 15:26:19 +0000 (15:26 +0000)]
Add filters to feature matrix.
As the feature matrix is useful for seeing how far PostgreSQL has come, we
still want to keep older versions on display. However, this is causing
problems displaying the newer versions on smaller screens.
This change adds a filter which only shows supported versions by default,
and allows folk to choose which versions they wish to compare. This will
have no effect on browsers with Javascript disabled.
Magnus Hagander [Sat, 1 Mar 2014 19:08:43 +0000 (14:08 -0500)]
Fix indentation
Yay for spaces vs tabs!
Magnus Hagander [Sat, 1 Mar 2014 19:06:56 +0000 (14:06 -0500)]
Remove obvious debugging code left in
Stefan Kaltenbrunner [Fri, 28 Feb 2014 20:51:50 +0000 (21:51 +0100)]
the sorting in the ftpbrowser for source tarballs has always been odd,
this is a small hack to make it better for the most common usecases...
Stefan Kaltenbrunner [Fri, 28 Feb 2014 19:53:31 +0000 (20:53 +0100)]
avoid creating a header field with a completely empty value, should
reduce the chance that SA is getting confused on it
Thom Brown [Mon, 24 Feb 2014 18:53:38 +0000 (18:53 +0000)]
Update GSoC page now that we've been approved for participation.
Dave Page [Thu, 20 Feb 2014 14:44:01 +0000 (14:44 +0000)]
2014-02-20 releases.
Magnus Hagander [Tue, 18 Feb 2014 18:51:56 +0000 (19:51 +0100)]
Correct which version of django is used (and is in Wheezy)
Vik Fearing
Thom Brown [Fri, 14 Feb 2014 10:15:15 +0000 (10:15 +0000)]
Actually commit the changes to the summer of code page this time.
Thom Brown [Fri, 14 Feb 2014 09:23:12 +0000 (09:23 +0000)]
Archive GSoC 2013 and update all dates and links for 2014.
Magnus Hagander [Sun, 9 Feb 2014 12:56:06 +0000 (13:56 +0100)]
Remove links to smaller/normal text size
This functionality is already implemented in browsers, there is no need
for us to have our own implementation.
Magnus Hagander [Sat, 8 Feb 2014 16:30:07 +0000 (17:30 +0100)]
Fix (hopefully) unicode encodings in moderation messages
It worked perfectly fine to have unicode in text fields, but if there
were unicode characters in one of the dropdown fields, then sometimes
it would not be possible to save the entries since the moderation email
generation would crash even if they run through the same codepath.
Hopefully this fix will take care of some of the random errors that have
shown up with submissions - there might be more issues like it around the
code, however.
Magnus Hagander [Fri, 17 Jan 2014 09:39:51 +0000 (10:39 +0100)]
Truncate titles to 128 characters
That's all we can store in the database anyway...
Stephen Frost [Mon, 13 Jan 2014 03:49:41 +0000 (22:49 -0500)]
Add Message-Id header to emails
The previous code, which was submitting locally, apparently didn't
need to provide a Message-Id header. However, now that we're
directly submitting to a remote system, we need to make sure that
a Message-Id header exists or the emails will get bounced.
In addition, the Python docs for this module state that Message-Id
is really one of the required fields anyway. It's unclear how many
real bugs we lost because of this, but I got involved when there
was complaining on IRC that a bug submitted didn't show up on the
-bugs list.
In case folks are wondering why I'm committing/pushing this (or how),
I've already fixed this on wrigleys (thanks to Andrew Gierth for
helping me debug and test the changes) and subsequently gave myself
access to this repo, to get this commit in, before anyone else
commits and overwrites my local hacks and breaks the bugs form again.
Magnus Hagander [Sat, 11 Jan 2014 19:44:57 +0000 (20:44 +0100)]
Track which emails are "user generated" for different antispam treatment
Basically, user generated email (bug report form) will be sent to the mail
frontends for antispam. Any errors generated there will be ignored and
the mails "dropped on the floor". Other emails keep entering the system
through localhost and delivered there.
Dave Page [Sat, 11 Jan 2014 15:44:28 +0000 (15:44 +0000)]
Add the Postgres Succinctly book.
Magnus Hagander [Sat, 11 Jan 2014 11:33:06 +0000 (12:33 +0100)]
Switch email sending go through a queue table in the database
Import the code from the PostgreSQL Europe website to handle this, since it's
well proven by now.
Any points that send email now just write them to the database using the
functions in queuedmail.util. This means we can now submit notification
emails and such things within transactions and have them properly roll bcak
if something goes wrong (so no more incorrect notifications when there is
a database error).
These emails are picked up by a cronjob that runs frequently (typically
once per minute or once every 2 minutes) that submits them to the local
mailserver. By doing it out of line, this gives us a much better way of
dealing with cases where mail delivery is really slow.
The submission from the cronjob is now done with smtp to localhost instead
of opening a pipe to the sendmail command - though this should have no
major effects on anything.
This also removes the setting SUPPRESS_NOTIFICATIONS, as no notifications
are actually ever sent unless the cronjob is run. On development systems
they will just go into the queuedmail table, and can be deleted from there.
Magnus Hagander [Thu, 2 Jan 2014 11:04:54 +0000 (12:04 +0100)]
Wrong order of decorators
We really need to clean the code up so this does not matter...
Magnus Hagander [Thu, 2 Jan 2014 11:00:32 +0000 (12:00 +0100)]
Don't redirect dynamic CSS from https to http
This can break things (d'uh).
Do this by introducing a new decorator, @ssl_optional. When this is
present, no SSL redirection will happen, regardless of whether the
access comes in over http or https.
This decorator overrides @ssl_required, but for redability's sake,
never use both at the same time.
Magnus Hagander [Wed, 1 Jan 2014 15:31:06 +0000 (16:31 +0100)]
Remove unused code causing warnings
Magnus Hagander [Wed, 1 Jan 2014 15:33:29 +0000 (16:33 +0100)]
Replace wildcard imports with explicit ones
Magnus Hagander [Wed, 1 Jan 2014 14:42:30 +0000 (15:42 +0100)]
Clean up imports
Remove unused imports and some other completely unused code.
Magnus Hagander [Wed, 1 Jan 2014 14:24:51 +0000 (15:24 +0100)]
Enable cache-busting URLs for CSS and JS
This will allow us to increase the cache times in the browser for our
CSS, which almost never changes.
Enables a new value to be used in templates, {{gitrev}}, which can be
used to bust pretty much any URL. We could do this for all the images
in the templates as well, but since most of them almost never change,
we'll just enable it manually for each individual image as it becomes
necessray - or just use a ?1, ?2 etc for those.
Enabled by default for CSS and JavaScript links, since those are much
more likely to be changed without having the URL changed.
Cache times aren't increased yet - we'll do that later one we're sure
that all existing caches are expired first.
Magnus Hagander [Sun, 29 Dec 2013 14:10:41 +0000 (15:10 +0100)]
If we don't commit the transaction, varnish purges are not sent
The updates still gets saved, but the manually executed SQL in the
post save handler that creates the varnish purge gets rolled back.
Magnus Hagander [Sun, 29 Dec 2013 13:52:43 +0000 (14:52 +0100)]
Make it possible for a contributor to edit his/her own data
Only for users that are already listed under /community/contributors/,
make it possible to edit this data, so we don't have to track it manually.
For obvious reasons, we don't allow editing of the "contributor level"
field...
This also changes the contributors model to send a notification to
the slaves list whenever a contributor record is changed, so we can do
post-moderation if necessary.
Magnus Hagander [Sun, 29 Dec 2013 13:41:06 +0000 (14:41 +0100)]
Properly send notifications for objects that don't have an approved field
Preivously we crashed when this happened - but it turned out we had no such
objects in the code. We will in the future.
Magnus Hagander [Sun, 29 Dec 2013 13:11:37 +0000 (14:11 +0100)]
Add a link from contributors to their userid
This will be used to allow users to edit their own contributor records.
Requires SQL:
ALTER TABLE contributors_contributor add column "user_id" integer REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED;
CREATE INDEX "contributors_contributor_user_id" ON "contributors_contributor" ("user_id");
UPDATE contributors_contributor set user_id=(select id from auth_user where auth_user.email=contributors_contributor.email) where contributors_contributor.email is not null;
Magnus Hagander [Sat, 28 Dec 2013 17:05:44 +0000 (18:05 +0100)]
Use minified version of jquery
Magnus Hagander [Sat, 28 Dec 2013 17:05:02 +0000 (18:05 +0100)]
Load some of our scripts asynchronously
Magnus Hagander [Sat, 28 Dec 2013 16:22:36 +0000 (17:22 +0100)]
Dynamically merge CSSes into a single one
This will make CSS downloading a single request, instead of making
6-7 requests for each page as it is now. It also moves all the definitions
of URLs for CSS into the templates and not in the raw CSS itself, which
will make it possible to enable client side caching in the future.
Fixes #91
Magnus Hagander [Sat, 28 Dec 2013 16:10:13 +0000 (17:10 +0100)]
Remove unnecessary CSS import
docs isn't actually needed for docs large - it needs either docs or
base. And those are always loaded before docs_large anyway.
Magnus Hagander [Sat, 28 Dec 2013 11:09:43 +0000 (12:09 +0100)]
Optimize PNG compression of some images on the frontpage
Note by Stefan Kaltenbrunner using Google Pagespeed Insights
Magnus Hagander [Sat, 28 Dec 2013 11:05:45 +0000 (12:05 +0100)]
Remove image not being used and never will be used
Magnus Hagander [Fri, 27 Dec 2013 18:19:02 +0000 (19:19 +0100)]
The Red Hat name is supposed to have a space in it
Per Devrim.
Magnus Hagander [Fri, 27 Dec 2013 16:23:57 +0000 (17:23 +0100)]
Update RedHat family installation instructions
Consistently refer to "RedHat family" instead of listing individual
distributions. Include explicit mention of Oracle Linux, and which
versions it ships with by default.
Clarify exactly which distribtutions are supported by the yum
repository.
Magnus Hagander [Fri, 27 Dec 2013 16:23:25 +0000 (17:23 +0100)]
Fix installation instructions on Fedora 19+
Magnus Hagander [Fri, 27 Dec 2013 16:22:25 +0000 (17:22 +0100)]
Add mention of Fedora 20 to the RedHat download page
Per note from Devrim. Also add a short sentence about distros
not mentioned on the page.
Magnus Hagander [Fri, 27 Dec 2013 13:07:00 +0000 (14:07 +0100)]
Clarify information about which versions of Ubuntu/Debian are supported
This information was implicitly in the dropdown boxes for configuration already,
but for those that don't get that far...
Devrim Gunduz [Thu, 12 Dec 2013 08:24:46 +0000 (09:24 +0100)]
Add missing line breaks.
Devrim Gunduz [Wed, 11 Dec 2013 15:08:39 +0000 (16:08 +0100)]
* Mention about Fedora 19
* Add instructions about initdb, etc. on Fedora 19 (systemd based) systems.
* Fix a package name (remove spaces)
Dave Page [Thu, 5 Dec 2013 14:15:17 +0000 (14:15 +0000)]
2013-12-05 update releases.
Magnus Hagander [Mon, 25 Nov 2013 18:40:31 +0000 (19:40 +0100)]
Ensure db connection is closed before script exits
This is required in django 1.4, but was closed automatically back
in 1.2 when it was created.
Scott Mead [Thu, 21 Nov 2013 17:16:00 +0000 (17:16 +0000)]
Replace the OpenSCG Java bundles with their new BigSQL bundle.
Stefan Kaltenbrunner [Wed, 6 Nov 2013 18:14:51 +0000 (19:14 +0100)]
use 9.3 as the default version for the download/installation instructions on linux
Dave Page [Tue, 5 Nov 2013 15:25:28 +0000 (15:25 +0000)]
Update the EDB sponsor logo.
Dave Page [Tue, 5 Nov 2013 15:21:14 +0000 (15:21 +0000)]
Sponsors aren't listed in alphabetical order.
Jonathan S. Katz [Wed, 21 Aug 2013 03:14:21 +0000 (23:14 -0400)]
List 5 events on homepage; move navigation / RSS feed links for events above "Upcoming Training"
List 5 events on homepage; move navigation / RSS feed links for events above "Upcoming Training"
To maintain the balance of the end columns, this patch also extends the list of
News articles and Planet postings to 7
Magnus Hagander [Sat, 19 Oct 2013 13:47:32 +0000 (15:47 +0200)]
Also ensure unmanaged transaction is committed after purge
Magnus Hagander [Sat, 19 Oct 2013 13:09:47 +0000 (15:09 +0200)]
Make explicit cache purge on survey votes
It should have been done through the model, but that is somehow not working.
Therefor, make an immediate purge of the results to the specific survey that
is being voted on.
Magnus Hagander [Fri, 18 Oct 2013 15:58:49 +0000 (17:58 +0200)]
Exclude repositories from ftp browser
There is no need to browse into the repositories on the main website.
It's still possible to browse there directly on the ftp servers of course,
for those that need to debug a repository install and things like that.
Dave Page [Thu, 10 Oct 2013 13:06:03 +0000 (14:06 +0100)]
Push 9.3.1, 9.2.5, 9.1.10, 9.0.14 and 8.4.18
Dave Page [Wed, 9 Oct 2013 15:05:44 +0000 (16:05 +0100)]
Update Dalibo's logo.
Stefan Kaltenbrunner [Sun, 22 Sep 2013 06:10:28 +0000 (08:10 +0200)]
fix a type - noted by Ralph Graulich on -www...
Dave Page [Mon, 16 Sep 2013 11:53:27 +0000 (06:53 -0500)]
Recommend using postgresql-setup initdb on later versions of Fedora.
Dave Page [Mon, 16 Sep 2013 11:41:42 +0000 (06:41 -0500)]
Fix typo, per Sam Griff.
Magnus Hagander [Sat, 14 Sep 2013 12:11:12 +0000 (14:11 +0200)]
Replace /community/lists/ page with a redirect to /list/
This new page is served from the archives backend, and has been enhanced
to contain the combination of the contents of both pages.
Magnus Hagander [Sat, 14 Sep 2013 07:50:04 +0000 (09:50 +0200)]
Fix doc-comments link to use the major version number only
This was broken in commit
8e458731cba7658bec1957455dc6db753e4bd711 when
an actual reference between documents and versions was created.
Magnus Hagander [Tue, 10 Sep 2013 11:54:21 +0000 (13:54 +0200)]
Make the varnish queue id configurable
This is required if the queue is dropped and recreated in pgq as it
gets a new id, which needs to be used when viewing the current status
of the queue in the admin interface.
Dave Page [Mon, 9 Sep 2013 16:53:16 +0000 (17:53 +0100)]
Add Spanish presskit.
Dave Page [Mon, 9 Sep 2013 14:15:42 +0000 (15:15 +0100)]
Remove br.html which is unused and the same as pt.html.
Remove es.html from the presskit links as it doesn't exist.
Dave Page [Mon, 9 Sep 2013 14:12:53 +0000 (15:12 +0100)]
Correct the name of the Ukraininan press kit.
Dave Page [Mon, 9 Sep 2013 13:13:31 +0000 (14:13 +0100)]
9.3 pressit.
Dave Page [Mon, 9 Sep 2013 12:57:58 +0000 (13:57 +0100)]
Use the elephant image in the shout box.
Dave Page [Mon, 9 Sep 2013 12:52:54 +0000 (13:52 +0100)]
9.3.0!
Magnus Hagander [Thu, 5 Sep 2013 16:16:43 +0000 (18:16 +0200)]
Don't have bots index /search/
We don't link statically to it anywhere, but people can link to it from
emails or other places around the world, that sets the search engines
on it's trail.
Magnus Hagander [Wed, 4 Sep 2013 18:11:40 +0000 (20:11 +0200)]
Create pkill command that doesn't kill itself
Dave Page [Tue, 3 Sep 2013 11:57:19 +0000 (12:57 +0100)]
Add PostgreSQL Replicagtion book.
Dave Page [Fri, 30 Aug 2013 14:29:04 +0000 (15:29 +0100)]
Add Huawei and Salesforce sponsor logos.
Dave Page [Tue, 27 Aug 2013 10:14:03 +0000 (11:14 +0100)]
Remove obsolete link.
Magnus Hagander [Thu, 22 Aug 2013 12:54:06 +0000 (14:54 +0200)]
Fix typo
Magnus Hagander [Thu, 22 Aug 2013 12:44:49 +0000 (14:44 +0200)]
Fix beta versioning to be more generic test versioning
This allows us to specify both beta and rc versions.
Requires SQL:
ALTER TABLE core_version RENAME COLUMN beta TO testing;
ALTER TABLE core_version ALTER COLUMN testing TYPE integer USING CASE WHEN testing THEN 2 ELSE 0 END;
Dave Page [Thu, 22 Aug 2013 12:32:33 +0000 (13:32 +0100)]
9.3RC1
Dave Page [Tue, 20 Aug 2013 13:49:39 +0000 (14:49 +0100)]
Add a new field to the StackBuilder catalog to specify a manifest URL.
The manifest URL (which is optional) will point to an XML file that
describes the command line, option file and environment options that
can be passed to an installer, to allow automated or non-interactive
deployment tools to figure out what info is required to run an
installer and how to pass it to it.
Requires SQL:
ALTER TABLE downloads_stackbuilderapp ADD COLUMN manifesturl character varying(500);
UPDATE downloads_stackbuilderapp SET manifesturl = '';
ALTER TABLE downloads_stackbuilderapp ALTER COLUMN manifesturl SET NOT NULL;
Magnus Hagander [Sun, 18 Aug 2013 17:40:04 +0000 (19:40 +0200)]
Update command should run the kill as sudo
Magnus Hagander [Sat, 17 Aug 2013 15:48:28 +0000 (17:48 +0200)]
Fix strange float casting problems in python
Magnus Hagander [Sat, 17 Aug 2013 15:43:09 +0000 (17:43 +0200)]
Fix links to frontpage of documentation for old versions
I forgot that old versions have strange names for their homepage, and
we only switched to index.html in 7.2.
Magnus Hagander [Sat, 17 Aug 2013 15:38:27 +0000 (17:38 +0200)]
Oops, we're not supposed to include supported versions in the archive
Magnus Hagander [Sat, 17 Aug 2013 15:33:52 +0000 (17:33 +0200)]
Expire list of docs and manuals when versions are updated
Magnus Hagander [Sat, 17 Aug 2013 15:33:14 +0000 (17:33 +0200)]
Use same header in manual list and manual archive
Magnus Hagander [Sat, 17 Aug 2013 15:32:36 +0000 (17:32 +0200)]
Move docs templates into the docs/ app, now that they are not plain pages
Magnus Hagander [Sat, 17 Aug 2013 15:28:36 +0000 (17:28 +0200)]
Get the list of documentation versions out of the database
Instead of having to update this list manually in multiple places when
releasing new versions, just take the information out of the database
where it has to be anyway.
Fixes #90
Closes #93
Also make the code automatically pick up wich PDF files exist in the
static checkout, and auto-detect their size, both A4 and US sizes. This
removes yet one more manual step, yay!
Fixes #163
Magnus Hagander [Sat, 17 Aug 2013 14:47:14 +0000 (16:47 +0200)]
Make an actual foreign key between docs versions and core versions
This was originally not done because we had a lot of old legacy data
that didn't have entries in both tables. This is no longer the case,
and the docloads script already enforced that it couldn't happen again.
Requires SQL:
ALTER TABLE core_version ADD CONSTRAINT version_unique_tree UNIQUE(tree);
ALTER TABLE docs ADD CONSTRAINT docs_version_fkey FOREIGN KEY (version) REFERENCES core_version(tree);
Magnus Hagander [Sat, 17 Aug 2013 14:32:37 +0000 (16:32 +0200)]
Don't generate broken links to /docs/0.0/ in the sitemap
Generate proper /devel/ URLs, and then exclude them again in robots.txt
so we don't include them in google results, but we do include them in
our own.
Magnus Hagander [Sat, 17 Aug 2013 14:16:52 +0000 (16:16 +0200)]
Include development and beta versions in search indexes
This includes both the sitemap used by google and friends and our own
site index, which uses the sitemap to decide which URLs to crawl.
Fixes #171
Closes #172
Magnus Hagander [Sat, 17 Aug 2013 14:10:08 +0000 (16:10 +0200)]
Indicate survey posting date on survey result page
Fixes #207
Magnus Hagander [Sat, 17 Aug 2013 13:55:30 +0000 (15:55 +0200)]
Explicitly list beta and development versions in docs as "devel"
Previously we listed both those as unsupported, which confused some users
particularly with new beta releases. While they are technically not supported
yet, it gave off the image that specific features would not be in newer
versions anymore, since they got listed as unsupported.
In passing, fix the style of the links in case they only exist in old
versions, which would put an extra | character in the version list.
Magnus Hagander [Sat, 17 Aug 2013 13:35:42 +0000 (15:35 +0200)]
Use a proper database field for beta releases
This replaces the previous ugly hack where beta versions had a negative number
as latestminor, giving a much cleaner model.
Requires SQL:
ALTER TABLE core_version ADD COLUMN beta boolean NOT NULL DEFAULT 'f';
ALTER TABLE core_version ALTER COLUMN beta DROP DEFAULT;
(Yes, we really need to move to something that can do automatic migrations)
Magnus Hagander [Sat, 17 Aug 2013 13:31:38 +0000 (15:31 +0200)]
Indicate unsupported versions in RSS feed
Magnus Hagander [Wed, 14 Aug 2013 09:48:53 +0000 (11:48 +0200)]
Remove extra closing tag
Stefan Kaltenbrunner [Tue, 13 Aug 2013 21:56:32 +0000 (23:56 +0200)]
bring the example code for the mediawiki plugin more in line with what
we actually use in production, this mostly consists of the "new style" support
for raw data passthrough, but does not fix the actual problem (which is dealing
with url "double" encoding/decoding - or rather the loss of information about
that) yet...
Will fix that and sync up exactly with the production code for MW 1.19 soon...