summaryrefslogtreecommitdiffstats
path: root/packages
AgeCommit message (Collapse)AuthorFilesLines
2010-07-07Update code to use new flag_date columnDan McGee1-7/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-25Get unit tests up and running againDan McGee1-1/+3
We had some dependency issues between migrations that needed to be explicitly defined in order to get things fully moving, and do to some braindeadness in Django tests not including the project url config, we need to do some clever business when using the url tag in the base template so tests don't doe with a NoReverseMatch exception. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-22Add 'never_cache' decorator in a bunch of placesDan McGee1-0/+4
Now that we cache everything, we need to ensure anyone doing edits and such gets the live data and not some cached version that was already updated and is now stale. Add the never_cache decorator to any of the CUD screens as well as a few others that might benefit from always being regenerated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Get a more accurate count of adopted packagesDan McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Update to the new messages frameworkDan McGee1-11/+14
This is also another step in making sure we don't unnecessarily access the Django session object and thus add a Vary cache control header we don't want. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-08Use Sites framework instead of hardcoded domain nameDan McGee1-1/+1
Instead of putting 'www.archlinux.org' all over the place, use the Django sites framework to pull the site name out of the database. Now these amazing things will work if you are running locally and decide to change the site! Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05Updates for CSRF protection in Django 1.2.XDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Add ability to download package from web interfaceDan McGee1-1/+17
After adding filename to the database, this is a rather simple request (see FS#19546). Right now the "randomly" chosen mirror happens to always be mirrors.kernel.org as it is the only one filed under the 'Any' country which is what we screen on. Perhaps this logic could be improved in the future but I don't see these links being all that high traffic anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Move package flagging URLs below the packageDan McGee1-4/+6
We were still using the user-facing package IDs here which we have eliminated everywhere else Change it to use the same user-friendly URL pattern we are using elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Kill td_input template and tagDan McGee1-4/+0
2010-04-03Improve flag out-of-date logicDan McGee1-2/+2
Attempt to mark all packages built from the same PKGBUILD out of date at the same time by using pkgbase instead of pkgname. Ensure testing and non-testing repos are segregated as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-28Simplify code now that pkgbase is always definedDan McGee1-4/+4
This allows some of our queries to get a lot simpler as well as removing the pkgbase_safe property added earlier. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Move package maintainer off of package modelDan McGee5-24/+369
This is an attempt to fix our long-standing problems dealing with maintainer information. Move the actual maintainer information off of the package model into a PackageRelation object, which has some flexibility to later represent more than just maintainership. This solves multiple problems: * If a package gets accidentally deleted, so did the maintainer info * Testing packages have always shown up as orphans * With split packages, it was easy to miss some of the sub-packages This commit does not include the deletion of the original maintainer column; that will come at a later time when I feel more confident that the data was migrated correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Use repo.testing flag instead of test-based checksDan McGee1-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27files: template reuseDan McGee1-1/+1
Get rid of the copy/paste by including the sub-template. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Ensure our cache is correct with AJAX requestsDan McGee1-0/+2
Since the same URLs serve two different responses based on the request being AJAX or not, we want to ensure we don't cache the wrong one and serve it up incorrectly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make files view AJAX if supportedDan McGee1-1/+4
This will put the filelist inline on the package details page if using a capable browser. It should still fallback to a separate page if necessary (e.g. all those users using links on the site). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Order the package files when viewingDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Bring package files view up to speedDan McGee1-4/+5
Move it away from the numeric pkgid-based view of old to the new pretty URL format. This does nothing to actually make the view show files (or even provide a link to it), but that will come in future commits. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-18Clean up urlencode usage even moreDan McGee1-3/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17More save() -> update() cleanupDan McGee1-3/+1
Use update() instead of for x in y: save(). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Clean up adopt/disown logicDan McGee1-9/+4
We can pull the common queryset out into a local variable, as well as using the mass-update function provided on a queryset instead of resorting to iteration. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Use unicode-safe urlencode in package searchDan McGee1-9/+4
Django already provides an implementation of urlencode that is Unicode-safe. Use it instead of our own version. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Make packages view much more efficientDan McGee1-2/+3
The len() call was killing performance, especially in the default click-thru case where we show the packages list without any filtering (only sorting). Also use a well-placed select_related() to further drop the query count. As noted by the TODO, there is still more that can be done here to improve performance. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10Remove archweb prefix from all importsDan McGee1-3/+3
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-09Add OpenSearch support to the siteDan McGee1-1/+13
Implements FS#14185. It is a bit more complex than listed there as I wanted to not hardcode the URLs in the descriptor file; to do this we need to make it a template and fill some things in. We also need to serve the file using the correct mime type. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-01Make marking out of date actually workDan McGee1-17/+22
And honor the packager's notify flag, as Pierre pointed out. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Use select_related() to make a few more places more performantDan McGee1-5/+10
Especially when looking at packages, we always want the arch and repo. Another big hunk of changes deals with the very inefficient signoffs code. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Adjust models and views for nullable maintainerEvangelos Foutras1-8/+8
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Package search: sort maintainer list by usernameDan McGee1-1/+1
Makes it easier to find a user since we have quite a few. FS#18055. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10added permission required to protected packages viewsIsmael Carnales1-0/+6
2009-11-10added missing packages views code from archweb_pubIsmael Carnales1-2/+14
2009-11-10added missing packages views from archweb_pubIsmael Carnales1-0/+65
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-3/+3
2009-10-17Port archweb_pub commit 1f96c7a1182ef75279c18986b708e683f89dd690 to ↵Thomas Bächler1-2/+1
archweb_dev. This is the original commit message by Dan: "Make package SVN links always work This should clean up the links for all varieties of things- different arches (including any), different repos (community and community-testing), and split packages. All of the logic is in one place now and any further changes should be made to the method on the package object."
2009-09-12Fix community links.Dusty Phillips1-1/+2
2009-07-24Repo-based permissions when adopting packages.Dusty Phillips1-3/+14
2009-05-05Fix a bug when someone accesses the update page without POSTINg adopt or ↵Dusty Phillips1-6/+10
disown. Probably occurred by a press of the back button.
2009-04-14FS#11325. Add a 'Target Repo' column to the signoffs page.Dusty Phillips1-1/+10
2008-10-12drop a couple completed to-dos and blank linesDusty Phillips1-2/+0
2008-10-12refactor duplicate signoff codeDusty Phillips1-8/+4
2008-10-12drop some unused templatetagsDusty Phillips1-18/+5
2008-10-11use RequestContext because its standardDusty Phillips1-4/+3
2008-10-10simplify package details viewDusty Phillips1-21/+16
2008-10-08drop id based searchingDusty Phillips1-1/+1
2008-10-07use user messages to communicate statusDusty Phillips1-8/+8
2008-10-07sort returns to first pageDusty Phillips1-1/+2
2008-10-07reorder ifsDusty Phillips1-92/+4
2008-10-07fix sorting issueDusty Phillips1-3/+6
2008-10-07trying to flesh out the pageDusty Phillips2-5/+25