Commit Graph

20 Commits

Author SHA1 Message Date
Dan McGee
e609552c59 Add bandwidth field to mirror URLs
Not using this anywhere just yet, but suggested by Florian so we can do
some more fancy things down the road, like determine bandwidth by
country.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-01 12:31:52 -05:00
Dan McGee
d3a36903d0 Convert ~~~ to date/username text when editing mirror notes
Requested by Florian to make leaving notes on mirrors a bit easier.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-05-31 15:30:18 -05:00
Dan McGee
945337177d Add last_modified column to mirrors
This will make it easier in the future to clear out inactive mirrors
that haven't been touched in a while.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-29 11:56:32 -05:00
Dan McGee
d83e084205 Add Flyspray Bug field to mirror model
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-14 11:15:42 -06:00
Dan McGee
3061d1c951 Django 1.6 upgrade, deprecation cleanup
PendingDeprecationWarning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form needs updating

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-06 20:56:15 -06:00
Dan McGee
64a92174c0 Begin removal of FTP mirror support
FTP is a terrible protocol these days compared to HTTP. IPv6 support is
spotty at best, it is much slower for the connect/begin transfer cycle,
and overall just doesn't provide anything HTTP does better. Start
killing bits that we've added to treat FTP as a first-class protocol and
regulate it to the back seat.

The expectation here is once this commit goes live to the production
site, the FTP mirror URLs themselves will get removed completely from
the database, and the FTP protocol object itself will get deleted.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-05-21 20:24:55 -05:00
Dan McGee
06e1e857ab Allow mirror rsync IPs to be IPv4/IPv6 addresses or networks
This gives us a bunch more flexibility on this field, and now supports
all the options that the rsync config file supports.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-10 21:03:09 -05:00
Dan McGee
71259ab4c2 Add mirror CheckLocationAdmin
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-06 19:53:11 -06:00
Dan McGee
6f0ae6746b Drop country column from mirror table
We now always look for this information at the URL level, not the mirror
level. This simplifies quite a bit of code in and around the mirror
views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-14 01:05:54 -06:00
Dan McGee
06f1bb9961 mirrors: add an alternate_email column
We have a lot of these in the freeform text area in the mirror notes;
attempt to make this data usable as necessary if we want to do some sort
of mirror notification automation in the future.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-18 21:36:05 -05:00
Dan McGee
20675141c3 Add django_countries country code fields and population migrations
This adds these columns and attempts to populate them with data from our
existing country column data.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-25 00:09:46 -05:00
Dan McGee
116751e4ba Rename mirror country fields to country_old in prep for normalization
We're going to move to using ISO 2 character codes via django countries,
so start by moving the old data out of the way first.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-25 00:00:36 -05:00
Dan McGee
3a1101db1d Don't select FTP by default in mirrorlists
More generally, add a new 'default' column to the mirror protocol model
so we can determine what is selected and shown by default.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-13 12:36:37 -06:00
Dan McGee
71e57570c2 Pylint suggested and other cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11 19:29:15 -05:00
Dan McGee
c5b370f432 Admin setup tweaks
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-22 16:42:06 -05:00
Dan McGee
5f0916a8df Move country filter last in mirror admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-28 18:26:23 -05:00
Dan McGee
6d5909ca5d Auto-resolve mirror URLs on save
This prevents people from having to mess with these checkboxes at all in
the admin, and we incur no delay on their initial values being correct
waiting for the cron job to run.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-27 12:44:30 -06:00
Dan McGee
db1524fd64 Auto map the protocol URL field
And perform better validation when doing so.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-27 12:31:12 -06:00
Dan McGee
3ebe31bdad Add is_download field to mirror protocols
This will replace all the usages of '!= rsync' and 'is ftp or http' we have
in the code with one check on a boolean flag.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30 14:20:45 -05:00
Dan McGee
7dba848eaf Move mirror models out of main app
South actually makes this relatively painless if you get everything right,
so might as well start getting these out of the legacy main application to
eventually eliminate models being separate from their views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-06 12:01:46 -05:00