Commit Graph

1314 Commits

Author SHA1 Message Date
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
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