Commit Graph

669 Commits

Author SHA1 Message Date
Dan McGee
872af225a9 Use direct_to_template in all remaining possible places
Rather than the need to include RequestContext() calls directly, we can
just use direct_to_template to do all the work for us.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 13:45:13 -05:00
Dan McGee
7c7f57f6ac Use direct_to_template in public views
Saves the hassle of needing to wrap everything in RequestContext()
manually.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 13:16:18 -05:00
Dan McGee
45a14b3cbc Enable template fragment caching on package details page
We can't cache most of the package actions links stuff because we look at
the user there, but we can cache everything on the left and the content of
the bottom boxes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 01:04:03 -05:00
Dan McGee
2dc0cafbb4 Add links to 'Versions Elsewhere' on package details page
This will allow clicking through to a few more associated packages from a
given package, including those for the other architecture and potentially in
other repositories. The box floats to the right with the package actions,
which have also been restyled slightly so the whole area is a bit more
styled and set off from the rest of the page.

This should allow us to close the current oldest bug open in the Arch bug
tracker, FS#7787. I remember the days when every bug was a four-digit
number...

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 00:51:00 -05:00
Dan McGee
8bd2838504 Add ability to get versions of a package elsewhere
E.g. if we are looking at one version for a particular architecture, I want
to see all versions for all architectures in all repositories.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 00:47:50 -05:00
Dan McGee
519460c7e2 Add pkgcount sort helper to count column on groups page
Forgot it here when adding it to all of the tables on the devel dashboard.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-02 20:07:09 -05:00
Dan McGee
0141ae3b8b Ensure long package descriptions wrap
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01 08:02:41 -05:00
Dan McGee
0181177f86 Dev dashboard: enable sorting by package count
Add another custom parser to the mix here so we can sort by package count,
which just involves extracting the digits from the table cell contents and
ignoring the text.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01 07:50:50 -05:00
Dan McGee
d7854ed8f1 Make sort work on developer todo list status
Because it was a link, the sort didn't properly sort on the
complete/incomplete status when viewing a todo list. Add a custom parser to
fix it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-01 07:39:57 -05:00
Dan McGee
d57696c801 PyLint suggested cleanups
We had a bunch of extra imports, non-conventional variable names, spacing
issues, etc. that were relatively low-hanging fruit to clean up. Fix them
and make the code a bit cleaner in the process.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 11:41:19 -05:00
Dan McGee
7dcdb0a315 Mark todo desc as safe on dev dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 11:34:19 -05:00
Dan McGee
2750b94345 Move package utility functions
We now have a few of them, so move them to their own file like we do in the
other applications.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 10:53:27 -05:00
Dan McGee
4c3100ab90 Move differences into it's own function
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 10:43:39 -05:00
Dan McGee
971e9faf90 Add package groups to front page and cache results
Make it more visible to the public, and cache the results of the group
information function since it was designed and made separate for that
purpose and the results can safely be reused without needing to worry too
much about it being stale.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:32:52 -05:00
Dan McGee
e595665abd Add a package groups sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:25:46 -05:00
Dan McGee
d21de73592 Add last updated column to package groups view
Just another annotation to the queryset to get this data, and a little more
manipulation in the group data function. This will help when adding a
sitemap in a subsequent commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:24:08 -05:00
Dan McGee
ddc4b974fe Add a package group overview page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:06:07 -05:00
Dan McGee
f2b3bcc4a1 Link to the package group view from package details
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:05:42 -05:00
Dan McGee
e0674de776 Add a group details view
This makes the support asked for in FS#19801 a lot more useful since we
actually have an overview page for the entire group.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:05:07 -05:00
Dan McGee
1cfcf13e1b Remove an unnecessary iexact
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 16:10:48 -05:00
Dan McGee
538f57c744 Make public todolist view more useful
Show all the details the developer page does, make the lists always visible,
and add JS table sorting to each table on the page. This commit also adds
table sorting to the developer list view as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 10:04:00 -05:00
Dan McGee
ff427f6d9b Mark todolist description as being safe to contain HTML
Hopefully we can trust our developers on this one. :)

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:50:55 -05:00
Dan McGee
661b5e6b63 Add missing RequestContext in feeds view
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:41:28 -05:00
Dan McGee
181573a74a Restore odd/even markup after JS sort
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:33:16 -05:00
Dan McGee
e247e0dd8c Add table sorting to a handful of pages
Anything that it makes sense to add it to gets the treatment here. Anything
with pagination can wait as that will be tougher. We also need to deal with
odd/even formatting.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:20:14 -05:00
Dan McGee
ecdd4ad6da Add styles for tablesorter sorting
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:19:28 -05:00
Dan McGee
c16771430e Add jQuery tablesorter 2.0.3 plugin
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 08:10:53 -05:00
Dan McGee
60d59131de Use new repository fields in link generation code
We can rip out a lot of the code for SVN and bugs links now that this data
is pulled off the model instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 14:12:43 -05:00
Dan McGee
6da97045a6 Simple migration to populate repo data
Also update the repos fixture to include the new fields and [multilib]
repository.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 14:12:14 -05:00
Dan McGee
94fe9fc548 Add more metadata to repo model
Things like the flyspray project ID and SVN repo path should go here rather
than being hardcoded in the code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 14:04:23 -05:00
Dan McGee
ae5483c230 Package Differences by Architecture view
Implements FS#20416. Port over the architecture differences view from
archlinux.de and reimplement in Django with our DB schema. Also use a far
simpler SQL query to do the dirty work rather than the triple UNION
operation. This is accomplished by doing a bit more of the fetching work in
code once we know what packages are actually involved.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 13:45:04 -05:00
Dan McGee
ebfc46026f Fix multilib SVN link
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 12:12:29 -05:00
Dan McGee
ed71d525e3 Make package size fields big integers
We had a package go in today that has an installed size > 2GB, which
makes PostgreSQL blow up when trying to create the package entry.
Enlarge these fields to big integers so they can store all conceivable
package size values.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-17 09:43:40 -05:00
Dan McGee
9300b43b79 Show maintainer full names in search dropdown
Instead of just showing usernames. It is especially helpful since we have
many similarly named developers at this point. In addition, only show active
developers/TUs and remove the rest from the list.

Also remove some cargo-cult code that set widget.choices; this is not
necesary as the widget automatically grabs the choices from the field.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-13 11:05:48 -05:00
Dan McGee
c93ed3f6fe Clarify what the date field means on package search
It sounded like the date had to match exactly which wasn't true, so clarify
the label on the form field.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-13 11:05:11 -05:00
Dan McGee
2f3f793670 Move update mirrorlist link
It is no longer new, so get rid of that graphic and move it down to
somewhere relatively relevant.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-13 10:36:44 -05:00
Dan McGee
dbde19828f Enable the cached_db session engine by default
This will work out well when using memcached in production, and should just
fall back to using the DB when developing locally with no cache or any other
sort of caching.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-09 13:33:09 -05:00
Dan McGee
141cff90d2 Clean up settings file
Unify to using single quotes everywhere. No functional changes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-09 13:32:56 -05:00
Dan McGee
efba7e8ba0 reporead: Add ability to generate traceback via signal
Every once in a while we see this command hanging on the main server but it
isn't making any system calls, so it is hard to tell where it is getting
stuck. Add a signal handler on SIGQUIT that will listen and print a
traceback when signaled.

This is the easiest thing to implement; future additions may need to be able
to hook up to a remote debugger (e.g. pdb) if this doesn't work.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
8e1b9a8424 Add more information to "package in testing" text
Make it a link to the testing package itself, and add a title so we have
these attributes on every link.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
7bb61331e3 Add missing or update title attribute on links
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
d993e1f1a8 Add a title to the userpkgs link
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:00:41 -05:00
Dan McGee
97322236b0 Fix stupid mistake in user parsing
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-01 13:18:52 -05:00
Pierre Schmitz
617c446aa7 adjust some colors to match forums and wiki 2010-08-01 16:40:11 +02:00
Dan McGee
f9aa30e7bd Clean up find_user() code a bit
With suggestions from Jason Chu, make the code a bit less repetitive with
regards to exception handling and fallthrough to the next method of finding
the user.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:38:33 -05:00
Dan McGee
573357b799 Use userpkgs tag on package details page
To link to a given person's maintained packages.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:03:55 -05:00
Dan McGee
2461b12cef Add new 'userpkgs' template tag
For easy linking to a given person's packages when we have a user object.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:02:17 -05:00
Dan McGee
88eb925d03 Add missing group delete in reporead
Otherwise we get duplicate groups each time we update the package, and any
group removals would never actually happen.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:01:32 -05:00
Dan McGee
ed5c5f525a Display packager info on details page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 14:43:17 -05:00
Dan McGee
77d130e33d Add packager support to reporead
This is a bit more work than just a simple field addition. We attempt to map
packager specs (e.g. "A. U. Thor <author@example.com>") to actual Django
users in a relatively robust way- first try matching on User.email, then
fall back to UserProfile.public_email, then finally try a name-based match.
For those packages we can't generate a mapping, the raw string is still
stored so it can be displayed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 14:42:43 -05:00