Commit Graph

1327 Commits

Author SHA1 Message Date
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
0545e3e0ec Django 1.4 admin and admin media changes
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
95520ae264 reporead: use Django 1.4 bulk_create() for package files
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
5575b68272 reporead: use Django 1.4 select_for_update()
As per TODO comments in the existing code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
6218ccc570 Use python hashlib directly
Django hashcompat is now deprecated.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
7896779ff1 Bump requirements to Django 1.4 and add new manage.py
The default manage.py script has been updated in Django 1.4, and the old
version and functions it calls is deprecated.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
Dan McGee
99da2f78b8 Ensure clocks Expires header works in 59th minute of hour
This was a rather careless oversight on my part.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-21 15:58:15 -05:00
Dan McGee
7d8580b4b1 Add number of keys signed to master keys page
This really just makes me look bad, but an interesting fact none the
less for people to look at.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-21 15:52:40 -05:00
Dan McGee
250fa087c9 Use varying changefreq in news sitemap
For those items less than one day old, mark change frequency as 'daily';
for those less than one week old, mark as 'weekly'. Finally, bump
everything else up from 'never' to 'yearly' to ensure it gets crawled at
least once in a while.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-16 09:14:15 -05:00
Dan McGee
c81aa8955d reporead: rename Pkg to RepoPackage
The bytes saved on the shorter name aren't worth it.

Also ensure 'desc' is always initialized to None in case packages do not
provide one.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-16 09:13:16 -05:00
Dan McGee
6ee65265a0 Show first 300 words of most recent news item on home page
And 100 words of every other news item. We might as well make the most
recent item more prominent. I'm not displaying it in full only so the
front page doesn't look like a blog; 95% of our news items are under 300
words.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-12 13:14:57 -04:00
Dan McGee
749b044728 Ensure users only show up once on the Fellows page
If a user was in both Developer and TU groups, they would show up twice.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-09 11:26:00 -06:00
Dan McGee
c919e337bf Break out search paginator into template
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08 11:42:51 -06:00
Dan McGee
1cc2b42fa1 Encourage robots to not dive into search results pages
Add a meta tag for all search results pages past the first.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08 11:38:14 -06:00
Dan McGee
7edc58c89c Show signature data on package details page
Now that we have a way to decode and process the signature data, we can
match the key_id to a known developer if possible and show this data on
the package page.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08 11:36:18 -06:00
Dan McGee
314608aee3 Allow more flexibility in pgp_key_link
Allow key_id to be a large integer value that gets converted to hex, and
allow overriding of the default link text.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08 00:37:07 -06:00
Dan McGee
94be52f1bb Only show package groups if they exist
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08 00:25:32 -06:00
Dan McGee
0ad6a96019 Tabs to spaces conversion
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-07 23:46:21 -06:00
Dan McGee
230eef6698 Exclude all compressed manpages
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-07 23:45:55 -06:00
Dan McGee
271ae0f0a2 Add dimensions to most inline images
This prevents resizing jumps when fetching resources.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-03 11:14:35 -06:00
Dan McGee
e368c95eba Reduce template caching time on main page
We can afford to update this more often.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-02 11:42:42 -06:00
Dan McGee
14c51a5bd8 Update d3 to 2.8.1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-02 11:41:01 -06:00
Dan McGee
3702f7af2b Ensure long flag request text wraps on package details page
Fixes FS#28643; simply add the 'wrap' class to that table cell.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-25 11:17:47 -06:00
Dan McGee
255823d7e2 Remove actual link to PayPal from retro views
The logo will still be there, but no need to have anyone click through
to the actual donation box.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23 10:23:05 -06:00
Dan McGee
8fb6581c7a Remove template caching from package details
Now that we do user-specific stuff, this is more hassle than it is
worth to ensure we keep the right bits around.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23 10:00:26 -06:00
Dan McGee
c7eca65692 Merge branch 'retro' 2012-02-22 22:54:53 -06:00
Dan McGee
85a215e158 import_signatures: code cleanup and ensure we update validity status
This adds a namedtuple so we aren't using magic numbers when processing
our 'edges' (signatures). We also ensure we update any existing
signature objects with their validity if they were later revoked.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-22 13:40:30 -06:00
Dan McGee
a0e843f9d6 Fix todolist sort by maintainer
FS#28546.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-20 08:21:33 -06:00
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
77f38be362 Factor out requiredby details into a template
This is similar to the previous commit doing the same for depends. We
also add a '(staging)' text for use down the road.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18 19:17:56 -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