Commit Graph

67 Commits

Author SHA1 Message Date
Jelle van der Waa
7a6bfc7441 tests: test feed 2017-06-11 18:43:14 +02:00
Jelle van der Waa
a215f25efa releng: Fix django warnings
Fixes warnings for releng.Test.modules and releng.Test.rollback_modules
(fields.W340) null has no effect on ManyToManyField.
2017-05-24 09:06:28 +02:00
Pierre Schmitz
5ceff906e0 Use x86_64 instead of dual postfix for ISO image names
Fixes FS#53524 and FS#53520
2017-04-02 08:48:47 +02:00
Thomas Bächler
6ec7daa181 netboot: Disable i686 support 2017-03-05 00:22:18 +01:00
Thomas Bächler
b246b751dc Add information and ipxe images for the new netboot system 2016-06-03 22:28:27 +02:00
Angel Velasquez
0427635558 Add netboot ipxe environment to archweb
Signed-off-by: Angel Velasquez <angvp@archlinux.org>
Signed-off-by: Thomas Bachler <thomas@archlinux.org>
2016-05-26 05:26:37 +00:00
Dan McGee
60327d96a6 Upgrade to python-markdown 2.5.2
safe_mode is now deprecated, so adjust things accordingly.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-12-08 19:52:55 -06:00
Dan McGee
bd2bc6a1c5 Add last modified date to releases
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-26 22:26:25 -05:00
Dan McGee
087b4b0003 Remove queryset specialization in JSON encoder
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21 09:40:14 -05:00
Dan McGee
9d0db65025 Fix up some IP address field issues
Ensure we always coerce values to unicode in our __unicode__ method, and
remove some now unneeded verbosity and comments since the upstream bug
has been fixed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01 18:26:05 -05:00
Dan McGee
0896b5697a Add auto-generated migrations from new Django migrations framework
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01 18:26:05 -05:00
Dan McGee
51d90e23c9 Remove old south migrations
Django 1.7 has built-in migrations support, so we no longer want these
around. All existing installs should be fully migrated at this point to
the latest schema.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01 18:26:05 -05:00
Dan McGee
0b17362c37 Add default value for boolean field
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01 15:35:06 -05:00
Dan McGee
35a44f7ca7 Releng release JSON view
FS#35049.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-02-02 15:19:40 -06:00
Dan McGee
b47b4e73b8 Remove release fields we can pull from the torrent
This makes entering new releases a bit less cumbersome as we don't
really need to enter either the file size or the torrent infohash.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-09 08:41:23 -06:00
Dan McGee
b7b2474064 Various minor code cleanups and fixes
Most of these were suggested by PyCharm, and include everything from
little syntax issues and other bad smells to dead or bad code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-16 22:12:01 -05:00
Dan McGee
5566d43a77 Use 'update_fields' model.save() kwarg
This was added in Django 1.5 and allows saving only a subset of a
model's fields. It makes sense in a few cases to utilize it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-09 16:50:45 -06:00
Dan McGee
bc539b6ed1 Extract torrent trackers into a settings variable
This allows them to be overridden and changed in a central location,
like we do with the SVN URL, PXE boot URL, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-28 14:13:53 -07:00
Dan McGee
7d4a8b9adf Add MD5 and SHA1 fields for releases
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-28 14:06:41 -07:00
Dan McGee
1a55c0f0bc Don't error on empty torrent data
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-28 13:50:33 -07:00
Dan McGee
b642c93aff Add a view to download the torrent available for a given release
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 17:40:26 -06:00
Dan McGee
4d52242f4b Mark release version string as unique
It should be unique anyway, but it is especially important now that we
are using it in URL patterns for lookup.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 17:19:27 -06:00
Dan McGee
71c0c7453a Implement torrent data parsing and extraction via bencode
This allows uploading of the actual torrent file itself into the webapp
and then pulling the relevant pieces of information out of it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 13:08:06 -06:00
Dan McGee
1a7e5d22f1 Add basic release list and details views
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 12:08:31 -06:00
Dan McGee
8cfaa39a04 Add more metadata to releng Release model
Add a file_size field which we will use in the RSS feed, and also add a
field for future storage of the torrent data itself.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 10:59:18 -06:00
Dan McGee
a732d3cebc Fix new magnet link generation
Apparently clients don't like urlencoded values in the magnet link, so
%3A isn't treated the same as ':'.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-21 00:56:08 -05:00
Dan McGee
c81a9271b8 Show release notes on downloads page
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-21 00:10:12 -05:00
Dan McGee
402487b007 Move some logic out of the templates to the Release model
This includes magnet URI generation, ISO paths, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-20 19:33:49 -06:00
Dan McGee
f7331a0eca Add Release model to releng
This should prevent the need for monthly template updates from Pierre
and Thomas; best to just let them enter the data themselves and have it
show up on the website.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-20 19:16:25 -06:00
Dan McGee
df208fb0bd Signal attachment cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-01 09:20:38 -05:00
Dan McGee
79b0ff49bd Use GenericIPAddressField for releng test IP address field
We were already using this on package flag requests, and we can support
IPv6 addresses here as well with minimal hassle.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-04 08:37:09 -05:00
Dan McGee
2e9094630b PEP8 spacing in releng models file
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-15 08:25:00 -05:00
Dan McGee
bc5dab41a8 releng views code cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-13 21:24:40 -05:00
Dan McGee
76c37ce3ac Replace deprecated direct_to_template() with render() shortcut
Now that Django actually provides a concise way to use a RequestContext
object without instantiating it, we can use that rather than the old
function-based generic view that worked well to do the same.
Additionally, these function-based generic views will be gone in Django
1.5, so might as well make the move now.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
c0bf9e2066 Remove custom utc_now() function, use django.utils.timezone.now()
This was around from the time when we handled timezones sanely and
Django did not; now that we are on 1.4 we no longer need our own code to
handle this.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
c1ccc88d07 Prune down table rows on ISO testing overview page
This table is getting very long as we have upwards of 210 ISOs in the
production database. However, it doesn't make much sense to list ISOs
that no longer exist and were never tested, so omit these from the
results page if we know this to be the case.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-17 15:36:33 -05:00
Dan McGee
822898e57b Merge branch 'django14'
Conflicts:
	templates/releng/result_section.html
2012-03-23 20:19:34 -05:00
Dan McGee
ea87160c39 releng: ensure links are valid for option names with spaces
Can't believe this went unnoticed for so long.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 20:16:58 -05:00
Dan McGee
90e08b4863 Make all datetime objects fully timezone aware
This is most of the transition to Django 1.4 `USE_TZ = True`. We need to
ensure we don't mix aware and non-aware datetime objects when dealing
with datetimes in the code. Add a utc_now() helper method that we can
use most places, and ensure there is always a timezone attached when
necessary.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
b8c20439c0 Change Django urls.py import
Until Django 1.3, the functions include(), patterns() and url() plus
handler404, handler500 were located in a django.conf.urls.defaults
module.

In Django 1.4, they live in django.conf.urls.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
20899d59c0 Add date_hierarchy for releng ISOs in admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:39:58 -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
871cf5ad2d Use verbose name for releng options display
So we see something like 'Hardware Type' instead of 'Hardware_Type'.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 20:54:01 -05:00
Dan McGee
366e438ed5 releng syncisos: reactive inactive ISOs if available
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 16:14:49 -05:00
Dan McGee
c80afa08c7 releng: refactor results overview page for performance
Use some annotation stuff and trickeration to reduce the number of
queries we need on the results overview page by quite a bit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 09:01:07 -05:00
Dan McGee
61311701a5 Add architecture to releng results listing
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 08:11:23 -05:00
Dan McGee
a489f355ec Implement get_absolute_url for Iso model
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 07:57:41 -05:00
Tom Willemsen
7954617a05 New page ISO Overview
ISO Overview shows a simple list of all the ISOs that are available
and how many times they've been tested successfully or have failed.

Signed-off-by: Tom Willemsen <ryuslash@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17 07:51:42 -05:00
Dan McGee
f7626c0571 Add a removed date for releng ISOs
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-16 14:39:41 -05:00
Dan McGee
5e85c5ac9e Move set_created_field() to shared utils class
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05 09:44:45 -05:00