summaryrefslogtreecommitdiffstats
path: root/packages
AgeCommit message (Collapse)AuthorFilesLines
2011-08-16add "search wiki" link to package details pageSergej Pupykin1-0/+8
Dan: fix usage of urlencode() function. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-10Add a template tag to link multiple packages at onceDan McGee1-0/+4
Comma-separated list. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-10Add package details link tagDan McGee1-1/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-29Add index to package groups name fieldDan McGee2-1/+150
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-29Fix package sort fieldsDan McGee1-1/+1
Don't list pkgname twice, include pkgbase instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-06Add a few more valid package sort fieldsDan McGee1-1/+3
Just for fun and for people that know what they are doing. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-06Refactor code to use new signoff modelDan McGee2-28/+94
This moves signoff creation and display to the new packages.Signoff model. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-06Add get_current_signoffs utility methodDan McGee1-3/+28
This is another SQL-based utility method that dramatically cuts back on how many queries we run and gets around the shortcoming of arbitrary joins in Django. It will be used by the new signoff page logic. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-06Add new packages signoff modelDan McGee2-1/+204
This one is centered around pkgbase, much as our PackageRelation object is. However, it also tracks all of the versioning fields we have in order to making joining against the current package testing list possible. Finally, additional metadata including a created date, an (optional) revoke date, and a comments field are added. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-06Move package signoff URL to more logical locationDan McGee3-8/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05Simplify package differences codeDan McGee1-10/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05Move set_created_field() to shared utils classDan McGee1-8/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-24Set up queries for staging reposDan McGee1-5/+8
This treats repo.staging special in much the way we already have to treat repo.testing as special. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-24Add (hidden) ability to search by last packagerDan McGee1-0/+10
This is used from the developer dashboard to add a new column to the stats of # of packages for a given developer where they were the last to do the packaging. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-20Differentiate between no filelist and empty filelistDan McGee1-2/+5
We had these two cases munged together before; some packages have seen filelist updates but simply don't have any files ('firefox-i18n' for example). Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-16Remove automatic search redirection on count = 1Dan McGee1-3/+0
This is really annoying. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Add a base pages sitemapDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Refactor common select_related into manager methodDan McGee2-9/+8
For a Package object query, we almost always did .select_related('arch', 'repo). Refactor this into the manager as a 'normal()' method so we can avoid sprinkling the same logic everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Add JSON package details and files viewsDan McGee2-11/+46
These are retrieved by adding 'json/' to the normal package details or files view. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-03Add a created date to package relationsDan McGee2-1/+147
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-03Never cache the stale relations pageDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-19Reimplement links code as template tagsDan McGee1-2/+35
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-18packages: pylint suggested cleanupsDan McGee1-5/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18Update out of date flag screen and emailDan McGee2-9/+29
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-16Only include known values in generated search queryDan McGee1-2/+9
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-15Remove old package search/ URLsDan McGee1-4/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-08Use UTC datetime objects everywhereDan McGee1-1/+1
Rather than the twisted mix of local times and UTC times we currently have. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-08Select related needed objects when pulling package detailsDan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23Fix package group unicode methodDan McGee1-1/+1
2011-03-23Add new package parts modelsDan McGee2-0/+211
This allows us to store conflicts, provisions (provides), and replacements in the database, things we weren't capturing before. All can be multivalued, just like License and PackageGroup. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23Allow virtual base packages to display in web interfaceDan McGee1-3/+23
Repurpose the old group details page to show a listing of all packages built from a particular pkgbase value, even if this value is not an actual package. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23Generalize group details pageDan McGee1-2/+3
We will be able to use this same table-based package listing elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23Use select_related() on group details pageDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-16Fix valid_value() in "LimitTypedChoiceField" class.Lukas Fleischer1-5/+10
We just returned the coerced value in valid_value() which may become None if the valid value "all" was passed, resulting in valid_value() evaluating to False. Explicitly returning True if the value can be coerced without an error fixes this. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-15Only set limit if we have one, else default to 50Dan McGee1-1/+3
This was the cause of some pretty awesome performance headaches this morning. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-15Ensure package search form correctly handles errorsDan McGee1-16/+24
We were silently eating errors and just showing a normal package list if the form didn't validate. Rather than do that, make sure we return no packages at all and display the form errors back to the user in a sane fashion. Adjust the validation methods on the 'limit' parameter so any integer is acceptable. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-13Ensure PyPy compatibilityDan McGee1-2/+5
Unfortunately I was relying on all python environments having this method defined, which is not true yet. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-13Add package epoch supportDan McGee1-0/+2
This comes with pacman 3.5, replacing the old "force" PKGBUILD option. We parse it and store it for now, but don't display it anywhere just yet. Also update a few queries relying on version differences in any of the multiple parts. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-08Clean up current_query and preserve multiple argsDan McGee2-12/+14
When implementing search for multiple architectures or repositories, I didn't update this method to accomidate the new query parameters. Clean it up a bit by not appending/stripping the leading '?' anywhere but in the template itself, and ensure we can handle multiple of any parameter passed in. Fixes FS#23180. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-04Move new user email contents to templateDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-03Correct some permission decoratorsDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-03Make Arch and Repo a MultipleChoice on package searchDan McGee1-6/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-23Allow deleting of stale package relations via status pageDan McGee2-0/+14
Add a column of checkboxes to each table, enclose the whole thing in a form, and add a super-simple delete view that takes a list of IDs and removes them from the database. The delete_packagerelation permission is required to be able to delete relations. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-23Add stale package relations status screenDan McGee4-3/+53
For now it is read only. Display a few tables of various ways of detecting stale package relations. These include inactive users, pkgbase values that no longer exist, and users that are listed as maintainers that don't have the proper permissions for that package anymore. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-22Use new split package file fields everywhereDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-22Modularize URLsDan McGee1-0/+9
Make some additional URL config files that can be included so we aren't trying to do so much in the top level config. This also allows us to branch a bit more rather than go linear down the rather lengthy list. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-19Remove maintainer relations if user marked inactiveDan McGee1-0/+12
These users are being marked inactive because they are no longer developers; thus they should have all of their maintainer relations removed from the database. This is one of two causes of "orphan" package relation objects, the other being pkgbase values that go out of existence. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-19Add a PackageRelation adminDan McGee1-0/+11
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-19Add unicode methods for packages modelsDan McGee1-1/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-15Move license to a related modelDan McGee3-0/+248
This allows us to store multiple licenses per package in a more elegant fashion, and will later allow us to search and filter on this information. Signed-off-by: Dan McGee <dan@archlinux.org>