Commit Graph

67 Commits

Author SHA1 Message Date
d0aa8ac119 Remove majordomo2 subscription form
Replace it with a redirect to lists.postgresql.org, where pglister lives.
2018-01-23 21:20:19 +01:00
689f9d9b8b 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.
2018-01-22 12:28:46 +01:00
9bd151082e Add tag support for news items
This lets us separate things like project news from other OSS and from
commercial postings, for example, allowing for people to subscribe to
different feeds with just the parts they are interested in.
2017-12-13 20:55:07 +01:00
07b6188954 Publish community recognition guidelines from the PostgreSQL Core Committee.
Publish the community recognition guidelines developed by the PostgreSQL Core
Committee from a navigation off of the "Community" section.  Add URLs from
several other pages on the PostgreSQL website in order to access the guidelines:

  * Donate
  * Events
  * User Groups

Additionally, this patch updates the contact email address for donation questions
to the PostgreSQL Funds Group.
2017-08-01 16:42:58 -04:00
20a0e178c5 Add simple API endpoint to activate and deactivate a list
Access is restricted by IP for the list server. Once the migration is
done, we should probably remove the endpoint again.
2017-07-03 15:35:55 +01:00
0354a5ec0f Remove support for repo updated trigger
This was never actually completed, and we have other ways to deal with
the deployments now that are faster.
2017-06-27 15:14:20 +02:00
8e8903bd48 Make yum download instructions more dyanamic
Using the crawled data, propulate dropdown boxes with versions and
platforms, to be able to show simpler instructions of exactly which
commands to use to install using the yum repository.
2017-06-08 13:06:39 +02:00
d09fde9ba3 Add function to spider reporpms from the yum repo
The ftp server can then submit a list (and structure) of which platforms
are supported for yum downloads, which can then later (in a separate
commit) be used to generate a nicer download for yum repo rpms.
2017-05-24 13:48:04 -04:00
88d6fdc224 Invent the concept of a "numtree" for versions
This property returns a single digit numbers for versions 10 and up (10,
11 etc), and keeps the two digit number for earlier (9.0, 9.1 etc).
2017-05-19 13:42:58 +02:00
0138a64cbe Handle URLS for the PG10 docs. This is a hack for now - we need to properly handle '10' vs. '9.6' formatting before GA. 2017-05-18 12:12:21 +01:00
428f299f48 Generate internal sitemap including devel docs
We'll use this to index some things in our own search engine without
exposing it to external sitemap parsers. Not from a security standpoint
of course, but something that will lead to it being possible to search
the devel docs again.
2017-03-23 12:11:22 +01:00
9b7a44da57 Move /selectable/ into /admin/ to avoid caching issues
Since we only use it for /admin/ for now, we can safely put it there
until we change that.
2016-06-23 18:06:05 +02:00
27e1c73368 Implement auto-complete for /admin/ forms that reference User
We have so many users now that loading these forms take forever.
Instead, implement a textbox with autocomplete using django-selectable,
which will not load the whole list of users at once.
2016-06-23 17:59:45 +02:00
9bcaa6ab33 Remove the "is behind cache" functionality
We're always behind cache now (we may or may not be cached, but that's
not what this check was about)
2016-05-24 21:14:33 +02:00
cd37dac7fd Move submitbug under /account/
In passing make it require ssl, make it no longer csrf-exempt,
and make it require a login so we don't let unauthenticated emails
through.
2016-05-17 17:37:09 -04:00
118b1193b8 Remove pwn module and links
The pwn module has never been used, as the pwn are simply sent to
-announce and nothing else. We've kept the code and model around for
doing it on the site for years now and it's unused, so let's remove it
to cut down on maintenance cost.
2016-05-14 22:17:07 +02:00
79350c87d9 Remove old mirror selection code and data
This has not been used for many years now, so let's get rid of
it to save some maintenance.
2016-05-14 21:42:38 +02:00
f9924efb7b Fix URL namespace changes
1. Prefix all our local modules with "pgweb" as required by the new
   project layout.
2. Change the django core imports to match 1.8
3. redirect_to has been changed to RedirectView

In passing also tabify the urls file which used a horrible mix of tabs
and spaces. The python standard is spaces, but since the rest of the
pgweb projects uses tabs, make the urls.py files do that as well.
2016-05-14 19:49:12 +02:00
8058accee0 Get rid of PgModel, replacing it with simple signals
We were already using signals for everything except delete, and even
in our old version of django the delete signal exists (it didn't exist
when this code was first written).

Django doesn't really like models to be OOP like this, so keeping PgModel
would cause issues with upcoming changes in django 1.8. Using simple functions
is easier, and the actual functionality is replicated straight off.
2016-03-07 21:41:45 +01:00
9c8006364e Add a system_information view available through SSL 2015-12-17 17:34:31 +01:00
31173f5fa6 the wiki is https for a while, make those mappings reflect that as well... 2014-11-03 20:17:07 +01:00
b39a87fa5f 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.
2014-04-13 14:11:19 +02:00
6dfd884f16 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
2013-12-28 17:24:47 +01:00
8e317528ee 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.
2013-09-14 14:13:20 +02:00
fdd1404f37 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
2013-08-17 17:28:36 +02:00
2ea607b942 Switch to using staticfiles app for serving, well, static files
This is required by the new admin interface
2013-06-16 16:35:21 +02:00
0289cbd439 Switch to using the new feeds framework 2013-06-16 16:35:20 +02:00
ec5b9fa183 Add usergroup listing module
Jonathan Katz
2013-05-08 22:07:30 +02:00
2cad1799ed Actually implement a way to look at older events (events archive)
This also changes the main URL to look at events to be /about/events/
instead of /about/eventsarchive/, and reuses /about/eventsarchive/ to
be the actual achive. Also separates out the training archive to it's
own page at /about/eventsarchive/training/, for easier browsing.
2013-01-30 14:28:16 +01:00
ef711553b9 Add (protected) API to queue varnish purge requests
We want an API for this so they end up in the queue with all the other
requests, and get delivered to all our frontends without needing each node
to know about which frontends exist.
2012-10-03 14:19:28 +02:00
1b3dd76a36 Redirect /downloads/ to /download/
Seems Berkus managed to push a broken link in the press release...
2012-09-10 13:16:18 +02:00
4102dd72de Fix URLs that weren't properly anchored 2012-05-25 12:51:31 +02:00
62983855ba Export list information as json
This makes it easier to sync information about which lists we have,
and how they are grouped, to external sites (such as the search crawler)
2012-01-21 14:50:01 +01:00
08b9ac643f Render list of supported versions on the main page
Now that we have more metadata, we can render this on the main page instead of
on the wiki. This commit copies all the text from the current wiki page, and
uses the new fields in the Version model to render the table on the same URL
as the reference was on before.
2012-01-07 13:09:20 +01:00
b68e68fecf Add a simple crash testing URL
It requires the file /tmp/crashtest to exist to actually test the crash,
without that it just renders a plaintext string...
2011-12-22 12:34:44 +01:00
758a721405 Allow for the ftpsite pickle to be uploaded via https
Previously this had to be rsynced outside of the website. By allowing the
upload here, and automatically purging the data from varnish, we will reach
"almost instant" updates of the ftp site structure on the web.
2011-12-06 19:13:32 +01:00
563790f170 Add views and templates to perform searches from the main web app
This makes it possible to render the search results on the main engine.
We still run the query on the seprate search server, so once has to be
configured in settings_local.py with the key SEARCH_DSN (standard
PostgreSQL/psycopg2 connection string)
2011-12-03 13:01:18 +01:00
89088c8e99 Add redirect for images used by some community websites 2011-11-27 15:23:59 +01:00
7e9742c678 Allow loading and serving of developer docs on the main website 2011-11-22 20:58:29 +01:00
7874abc24d Add a sync_timestamp URL to point automirror at 2011-11-05 18:51:10 +01:00
614bc1b576 Switch to new way of specifying admin urls
Should work for deployed version as well, and the old way stopped
working in 1.3, I believe.
2011-11-05 16:05:37 +01:00
248d940c7e Implement proper mergeing of organisations 2011-08-18 10:46:25 +02:00
9ffd26ca5d Correcly handle old versions of the docs, where the file extension is .htm 2011-07-12 14:16:46 +01:00
d8dbb7e378 Add license->licence redirect, same as on old site 2011-06-15 11:07:43 +02:00
f92709d2a6 Implement basic varnish purging
This allows all models inherited from PgModel to specify which
URLs to purge by either setting a field or defining a function
called purge_urls, at which point they will be purged whenever
the save signal is fired.

Also implements a form under /admin/purge/ that allows for manual
purging. This should probably be extended in the future to show
the status of the pgq slaves, but that will come later.

Includes a SQL function that posts the expires to a pgq queue. For
a local deployment, this can be replaced with a simple void function
to turn off varnish purging.
2011-06-14 19:48:48 +02:00
22f5578c29 Add support for generating sitemap.
Each module now contains a struct.py file that will return all
the URLs that it can generate (yes, this is a small break of the
abstraction of url.py, but we've broken that elsewhere as well),
and also which search-engine-weight (0.1-1.0) that this URL should
be given.
2010-09-28 16:12:13 +02:00
8fce64451e Fix typo 2010-09-28 15:46:10 +02:00
34023288b8 Add redirects as required to deal with legacy urls, for all the stuff
that was in .htaccess files on the old site.
2010-06-22 11:17:49 +02:00
f0e33b3718 Return a robots.txt file 2010-06-18 11:01:43 +02:00
12cdc90e3e Implement is_behind_cache() and get_client_ip() functions to handle
the fact that when pages are served through Varnish, the request will come
from the Varnish server and not from the client.

Create a /system_information page that shows some information about the
connection to help diagnose how the caches work.
2010-06-17 14:11:50 +02:00