Commit Graph

1004 Commits

Author SHA1 Message Date
Dan McGee
5379348c93 Add unneeded orphans report
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 18:21:43 -05:00
Dan McGee
e58eb76a1a Change big packages report
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 18:21:10 -05:00
Dan McGee
2d1cfc2423 Use single quotes only in dev report view 2011-04-29 17:58:31 -05:00
Dan McGee
23cda53f81 releng: auto-deactivate old ISO names
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 10:16:17 -05:00
Dan McGee
87983d141b releng: final touches before public showing
* Move URL prefix to /releng/feedback/
* Move link on main page to Development, not Community

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 09:38:34 -05:00
Dan McGee
abb3ae1502 releng: make rollback fs a standard_option
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 09:33:30 -05:00
Dan McGee
1ab065a982 releng: enhance admin, remove errant print statement
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29 09:31:16 -05:00
Dan McGee
b87a2c4864 Merge branch 'releng' 2011-04-28 18:01:01 -05:00
Dan McGee
461d27d75f releng: add initial migration
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 18:00:20 -05:00
Dan McGee
bfe6afcd7a Rename isotests to releng
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:58:13 -05:00
Dan McGee
11962fab9d Remove more hardcoded isotests links
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:53:23 -05:00
Dan McGee
1ff9c0fc5d isotests: massive overview refactor
Copy pasted code sucks. Fix it.

Also, ensure 500 errors aren't going to be popping up when people start
typing invalid URLs for fun, among a lot of other small fixes going in
here.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:53:22 -05:00
Dan McGee
684fb5353d isotests: clean up submissin form
Don't show stupid '-----' entries with radio buttons, remove the list
item style since we have radio buttons or checkboxes everywhere anyway.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:53:22 -05:00
Dan McGee
4fd34a7879 isotests: move form metaclass to end of definition
To match our style everywhere else.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:53:12 -05:00
Dan McGee
b5be7d6fd6 isotests: record submission IP address
Helps a lot if we start seeing bogus submissions to track down and
suppress the issue.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:52:51 -05:00
Dan McGee
cfb4f1bc6a isotests: make the various pages a bit more useful
Instructions are nice, as are links to other pages that actually flow
with the style of the rest of the site. Also fix the styling of the
labels on the results entry page as it looked a bit funky before.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 14:47:21 -05:00
Dan McGee
6516220b17 isotests: update some syntax and ways of doing things
To be more Django-like, Pythonic, or to fit better in the existing
archweb project. Also add some created fields to the models, as storing
dates for anything is almost always a good idea.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 14:00:54 -05:00
Tom Willemsen
1ea5be1a06 isotests: Cleaned up the page titles and syncisos command
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 14:00:54 -05:00
Tom Willemsen
c5a28f8893 isotests: modelines, imports, url and pass
* Added vim modelines to files.
* Rearranged import statements.
* Moved the arch releng isos url to settings.py.
* Fixed some issues that arose from forgetting to import the isotests urls
  package.
* removed redundant str() calls.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 14:00:54 -05:00
Tom Willemsen
c292dcfc6b isotests: various changes and updates
* isotests/fixtures/clockchoices.json: changed 'default' to 'unchanged'
* isotests/fixtures/filesystems.json: removed 'check the installed
  system' line from one of the options
* isotests/fixtures/modules.json: added
  'ext2','ext3','ext4','swap','xfs','jfs','reiserFS'
* isotests/models.py:
	* Added RollbackOption abstract class that adds the functions
	  get_rollback_success_test and get_rollback_failed_test on top of
	  the IsoOption abstract class for use with the Filesystem and
	  Module classes since Test uses these both in 2 ways (regular and
	  rollback). This keeps them seperated.
	* renamed the related names of these properties from rollback_test
	  to rollback_test_set (seems more in-tune with the other relations)
* isotests/views.py:
	* changed the order of the fields, the automatic order makes no
	  sense.
	* Added help texts to the fields success, filesystem,
	  rollback_filesystem and rollback_modules.
	* Removed help text from modules (made no sense)
	* Added a website field, should remain empty, a simplistic way to
	  hopefully reduce spambot entries.
* templates/isotests/results.html:
	* Removed the rollback yes/no section
	* The rollback labels should check get_rollback_success_test and
	  get_rollback_failed_test.
* Rollback checkbox removed.
* Clearly tell users that success must only be selected if everything
  works right.
* Clearly tell users to only fill in the rollback options if they did a
  rollback.
* Added a thanks page that tells people thanks.
* Added links between the pages.
* Added links to lists with tests of either a specific iso or of any
  iso where a specific option was selected.

Signed-off-by: Dan McGee <dan@archlinux.org>

Conflicts:

	templates/isotests/results.html
2011-04-28 13:19:49 -05:00
Tom Willemsen
db137d4db6 isotests: add syncisos command
* Installtype fixture places 'interactive' at the top now.
* Added a syncisos command to isotests to get new iso names from
  http://releng.archlinux.org/isos/ and add them to the database.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 13:18:35 -05:00
Tom Willemsen
00e096ddf0 isotests: style cleanup, ui improvements
* Using radio buttons for widgets is smarter.
* Model names cleanup.
  * Test.ms: totally un-descriptive field name, should be modules.
* models, Iso: Likely need more than a date field here. Removed date
  and added name.
* get_success_test/get_failed_test: now on abstract superclass
* tests.py: I wasn't using these, so I might as well remove it.
* admin.py: convention is not to use * imports.
* models.py: "# Create your models here." -> not needed.
* urls.py: I wasn't using info_dict anymore; I had a blank second
  pattern definition, and I should follow indentation patterns from
  elsewhere in the project.
* views.py, add: switched to using mostly direct_to_template to
  avoid some of the boilerplate.
* isotest/templates: was old, not used.
* I had 4 + 1 templates, but only two views- these other
  ones were old, unnecessary and not wired up.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 13:18:29 -05:00
Tom Willemsen
f4229daac6 isotests: view updates, choices->models, show results, admin
* Started changing the view portion
* Changed choices to models
* Show the latest failed/succeeded tests on results page
* Added some more admin pages

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 13:15:58 -05:00
Tom Willemsen
1547c7c49a isotests: entry and listing of release engineering tests
Add a new project for entry and listing of testing results for our
release ISOs. This will assist the release engineering team with
determining a good ISO to make into the real deal.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 13:15:54 -05:00
Dan McGee
174d04ad03 Add links to developer reports
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-25 18:17:56 -05:00
Dan McGee
381e0a7872 Developer reports
This commit adds four initial developer reports that are hopefully
useful to developers and packages in checking up on the state of things.
They include:

* big : the 100 biggest packages in the repos
* old : packages built > 2 years ago
* uncompressed-man : self-explanatory
* uncompressed-info : self-explanatory

There should obviously be some sort of index page to access all of
these, so that will be coming soon.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-25 18:09:39 -05:00
Dan McGee
e6717510a0 Update repos fixture with new fields
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-23 14:29:29 -05:00
Dan McGee
f1f01ecf02 Reimplement links code as template tags
These were starting to get a bit too much inside the model itself, and
they don't really belong there as they are view layer concerns anyway.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 23:26:13 -05:00
Dan McGee
d8022fd572 Add a "Report a Bug" link
We need Flyspray category data to make this more useful, and we can
prefill the Subject and Category fields (along with putting it on the
right project). Implements FS#23751.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 23:00:30 -05:00
Dan McGee
08ce9c5cd9 packages: pylint suggested cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 15:19:24 -05:00
Dan McGee
1b91de9435 mirrors: pylint discovered cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 15:10:20 -05:00
Dan McGee
1e3191ff56 Never parse generated lastsync file
We should be encouraging our mirrors to serve us the original file, not
something they create and come up with.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 14:49:28 -05:00
Dan McGee
43964627a3 Update out of date flag screen and email
Now that multiple packages get marked out of date whenever this form is
processed, have the page and email itself reflect this fact.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 13:48:44 -05:00
Dan McGee
9fd0995aa5 Only include known values in generated search query
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-16 09:43:45 -05:00
Dan McGee
96c59b1dc2 Add some simple template caching on developer dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-16 07:25:47 -05:00
Dan McGee
7a7d232c1b Remove old package search/ URLs
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-15 08:05:26 -05:00
Dan McGee
78a553e558 Add optional country override for individual mirror URLs
This allows a named top-level mirror to have geographically distributed
URLs, e.g. kernel.org and the geo-DNS setup.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-12 18:36:20 -05:00
Dan McGee
064813560c Show more info about todolists on developer dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-09 16:34:10 -05:00
Dan McGee
842f59d018 Rename local variables for clarity
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-09 16:34:10 -05:00
Dan McGee
12ff807338 Ascii-ize the todo list email package list
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-09 15:36:40 -05:00
Dan McGee
6fe08cd689 Utilize Django 1.3 'on_delete' feature on several foreign keys
The most important one here is PROTECT to keep people from making
bone-headed plays and deleting an Arch or Repo and every package along
with it. We can use this in a few other places, as well as some
carefully placed SET_NULL indicators.

Note that nothing here pushes deletion responsibilities down to the
database, although that will probably happen in a future commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:04:00 -05:00
Dan McGee
ac550af4c9 Update requirements.txt for Django 1.3
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:33 -05:00
Dan McGee
d456ff32aa Convert todolist delete to class-based view
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:33 -05:00
Dan McGee
b2f7cd61e8 Convert generic views in urls.py to class-based
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:33 -05:00
Dan McGee
77842a6c76 Consolidate caching black magic
Get the stuff used to retrieve and refresh the latest date values all in
the same place, and make it a bit more beautiful by refactoring it all
into a common set of methods.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:13 -05:00
Dan McGee
d766595965 Add some migrations to convert database to UTC time
This follows the earlier commit where we make sure any value going to or
being pulled from the database is UTC.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:06 -05:00
Dan McGee
01db07bad8 Use UTC datetime objects everywhere
Rather than the twisted mix of local times and UTC times we currently have.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:00 -05:00
Dan McGee
7d08d59280 Show a few more fields in package admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:01:51 -05:00
Dan McGee
ecfcdfda94 Select related needed objects when pulling package details
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:01:44 -05:00
Dan McGee
0d3e1eb796 Add a horrible hack to allow feed guid value to not be a permalink
Django, you make the simplest things so damn hard sometimes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:01:31 -05:00