Commit Graph

1298 Commits

Author SHA1 Message Date
Dan McGee
f451e61725 Add retro views from 2003 through 2011
These follow the prior commit adding the framework and an initial 2002
retro view.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18 20:40:15 -06:00
Dan McGee
48f51dea41 Add a retro site view and link it to a URL
This is from our friends at web.archive.org, who's earliest capture of
the Arch Linux website was on March 28, 2002. Seems like something nice
to do around the 10th anniversary of the website being up and the distro
being around, and not hotlinking their servers also seems like a good
idea.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18 19:24:33 -06:00
Dan McGee
03a0d27971 Update sidebar links
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-16 14:07:25 -06:00
Dan McGee
ef9d1c1ea2 Require message when flagging package out of date
This is not a very high bar to meet, and should cut down on at least a
few bogus or spam requests.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-14 10:32:01 -06: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
fa6f85f127 Reduce false positives returned by uncompressed manpages report
Explicitly exclude '.html' files from the report. This fixes the issue
noted in FS#28372.

We also add `is_directory=False` to both the manpage and info page
queries; this could help the database come up with a better plan.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-12 22:47:25 -06:00
Dan McGee
30acd5c816 Protect urlencode calls against Unicode data
These would cause page errors if passed anything not in the ASCII
character set. This change allows for packages to have names composed of
any Unicode characters, not just those in the ASCII set.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-12 21:54:05 -06:00
Dan McGee
c3ebf7deae Show current version in todolist details view
This also reorders the columns to be in the same order as package search
for consistency.

Addresses FS#28369.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-11 18:53:23 -06:00
Dan McGee
2ac90512fd reporead: only reset flag date if upstream version changes
This preserves the flag date if only a simple pkgrel bump occurred,
which makes sense more often than not for rebuilds.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-11 18:46:02 -06:00
Dan McGee
6dfc85affc Update requirements.txt
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-08 12:40:26 -06:00
Dan McGee
b2cfd30094 Show the latest flag request on package details if out of date
This only shows up for logged in users, but might be helpful for
developers browsing around the site, especially if they did not receive
the email themselves, or in the case of orphan packages.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-07 00:47:21 -06:00
Dan McGee
087aca5cce FlagRequest model behavior tweaks
* Add a default field to be used for latest() calls.
* Remove signal-based set of created date; instead, set it explicitly so
  all of our packages and flag request have the exact same date and time
  attached.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-07 00:47:14 -06:00
Dan McGee
f0a858aab6 Make rematch command do a bit more
Now that we have a few objects that can potentially link back to
developers, allow flag requests to also be rematched.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-07 00:46:21 -06:00
Dan McGee
d7d01e3c59 Add testing version column to dashboard flagged packages table
As requested in FS#28298.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06 23:43:39 -06:00
Dan McGee
7977214c57 Clean up details dependency display logic
This moves this lengthy conditional block of template into an include so
it is a bit more manageable. This makes the fix for FS#28286, where
provided optional dependencies were not displayed as expected.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06 23:34:29 -06:00
Dan McGee
33fe337d08 Encourage bug reports to have a summary
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06 23:18:29 -06:00
Dan McGee
1f18484cae Extract split_package_details() method
This is never currently called directly as a view method, but is used by
the normal package details view as a fallback if a package cannot be
located.

This also fixes an issue where looking up a package in a repo it is not
in returns the split details page for one package, which is incorrect
behavior.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-02 09:36:29 -06:00
Dan McGee
07f74a87dd Remove ambiguity in PGPSignature verbose field names
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-29 13:29:36 -06:00
Dan McGee
d4ebdc5b97 Support more characters in package names
Fixes FS#28106, where we couldn't view packages with names containing
the '@' symbol. Rather than whitelist things, switch to a blacklist of
only a space and slash character.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-28 17:48:34 -06:00
Dan McGee
bb570809f1 Add repo to flag request admin columns
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-26 14:40:04 -06:00
Dan McGee
32633d4558 Update D3 JS resources
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-21 13:35:52 -06:00
Dan McGee
1a6554dab7 reporead: simplify and fix transaction management in update_common()
We can use the easier transaction.commit_on_success() decorator if we be
sure to explicitly mark the transaction dirty. This fixes the issue
where a raised exception in this code called neither commit nor
rollback.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-19 10:55:27 -06:00
Dan McGee
b2b5c1a064 Add old version string to saved flag requests
This makes it easier to match up a flag request with the package state
at the time of flagging, and might also help to determine if flagging
actions were legit. We only store it if it is the same across all
packages to be marked.

Also, move the various database write activities when flagging packages
into a single transaction.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-10 23:31:11 -06:00
Dan McGee
6b16b9487a Adjust page and content caching lengths and decorators
Remove never_cache from many places now that we don't actually need it
since we aren't caching by default. Adjust our cache_function decorator
times be shorter values, and also randomize them a bit to make cache
invalidations not all line up.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-05 13:03:00 -06:00
Dan McGee
7b7dcfaa7c Add new todolist pkgbase list view
This is for use after rebuilds when moving packages out of the staging
and testing repositories.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-04 12:15:29 -06:00
Dan McGee
9ddbe26e4c Add a few cache headers and minor feed caching back in
Now that we aren't using the middleware, add cache headers on our
primary pages so we can prevent some repeat traffic, and cache all feeds
for five minutes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 15:00:49 -06:00
Dan McGee
5a91a246a8 Remove all cache middleware
It's time to stop serving up stale pages. Remove this middleware caching
and start pushing it down to spots where we can actually control it more
appropriately (and only cache things that are expensive anyway).

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 14:22:01 -06:00
Dan McGee
3b545d23b6 Add checkbox range selection to stale relations page
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 14:18:22 -06:00
Dan McGee
64da32a3f3 Add maintainer and packager data to package JSON view
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 14:17:59 -06:00
Dan McGee
ab97f5cdea Fix mismatched URL keyword arg
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-22 10:22:25 -06:00
Dan McGee
56af1e4f50 reporead: more efficient deletion of files
Rather than delegating to Django and batch deletion by ID, force issuing
of a single delete query to clear out all existing file objects when
necessary. This should speed up the deletion and update of packages with
a lot of files by a non-trivial amount.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12 09:59:42 -06:00
Dan McGee
99eada1722 Use full version in signoff admin list view
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12 09:58:46 -06:00
Dan McGee
78f23956e0 Add signoff model admin interface
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12 07:03:36 -06:00
Dan McGee
a60801bb7d PyLint suggested cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-11 19:52:27 -06:00
Dan McGee
e65d2bc6db Switch back to using standard deviation in mirror check page
This got checked in by default, whoops.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-11 19:43:24 -06:00
Dan McGee
8228295584 Master keys are new, not packages
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 15:56:31 -06:00
Dan McGee
463676a775 Add new icon to new features
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 10:19:47 -06:00
Dan McGee
c4ca96b269 Enable PGP signature visualization
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 10:19:37 -06:00
Dan McGee
057e252d6d Retitle package differences page
Now that this has two different tables on it, we should make the page
title a bit more generic.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 10:14:01 -06:00
Dan McGee
d198137d71 Prefilter packages when looking up uncompressed man/info pages
This vastly speeds up the reports if you just want to look at your own
packages and not the complete list, especially if the list of packages
you maintain is relatively short.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 09:30:18 -06:00
Dan McGee
73cd4adf9f Add CSS classes to front page package update objects
This adds the repo name, 'staging', and 'testing' as appropriate to a
classes field on the package updates object. This means we don't have to
update the CSS stylesheet to include hardcoded names of repositories
(e.g., 'kde-unstable').

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 09:29:15 -06:00
Dan McGee
4fa709ea86 populate_signoffs: add an SVN log cache for duplicate lookups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-09 09:28:49 -06:00
Dan McGee
5006da5647 Store flag requests in the database
This makes them persistent rather than the transient beings they
currently are. We attempt to capture all the metadata we need to be able
to do things with this later- aka IP address (for spam checking later),
fields that allow us to mark the request as spam or not an actual
out-of-date report, etc.

As a bonus, logged-in developers now get the email address field filled
in for free. Yay.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-08 15:02:28 -06:00
Dan McGee
3e094a548f Add a new FlagRequest model
This will be used to store all of the submitted data we get via flag out
of date forms on the website.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-08 15:02:11 -06:00
Dan McGee
a2317295bb Remove auto-deletion of package relations on inactive users
We have a page where these can all be managed now, so best leave it
alone in case someone accidentally marks a user inactive and all the
data is lost.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-08 13:52:53 -06:00
Dan McGee
96fecb1079 Multilib differences report
This new tables shows multilib packages paired with their regular
counterparts in the normal repos if the pkgver differs. A few name hacks
are needed to trim lib32-, -multilib, etc. from the name to find the
matching package.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-08 10:51:52 -06:00
Dan McGee
604c748f8f Admin index template updates
We can't do everything in the upcoming 1.4 release, but we can take care
of a few small bugfixes and changes from the SVN trunk template.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-07 14:15:15 -06:00
Dan McGee
c2e84a787a Various small admin touchups
* Don't capitalize things in verbose_name, Django does this
  automatically and uses title case
* Add overrides for IP, URL, ISO, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-07 13:11:52 -06:00
Dan McGee
b1c42e16ac Convert master key datetimes to dates
The extra precision is not necessary and just makes entry of the data
harder anyway.
2011-12-07 13:05:49 -06:00
Dan McGee
7b6ec8662a Enhance devel model admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-07 13:04:34 -06:00