summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-10packages/views: move flag-related views to own moduleDan McGee
One step in splitting the package views. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-10Move package views into subdirectoryDan McGee
This simply moves views.py to views/__init__.py and adjusts the imports accordingly; future patches will split this into multiple files as this module is getting quite large. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-10Add package signoffs JSON viewDan McGee
This allows access to the same data (and even a bit more) from the signoffs overview page in a machine-friendly way. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-08Always use same URL for both secure and non-secure CDN requestsDan McGee
Use a scheme-relative URL rather than serving different content to users based on HTTP or HTTPS. Should prevent mismatched certificate errors. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Rewrite get_target_repo_map() using raw SQLDan McGee
This improves the shitty query plan brought upon us by MySQL by rewriting it to use JOINs only and no dependent subqueries. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Fix misnamed JS function callrelease_2011-11-04Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Signoff email: prune empty contentDan McGee
Don't send the email at all if there are no packages even in the repository, and don't print empty sections. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Add filter by target repo on signoffs pageDan McGee
And add a count of displayed rows below the filter options. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Fix signoff target repo mappingDan McGee
I clearly should not have removed this code yesterday, otherwise packages have their target repo matched to a testing one. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Find all potential package signoff specifications upfrontDan McGee
This should save a significant amount of time in the case where there are a lot of signups to look up; at least one query per signoff row. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Make maintainer lookup on todo lists fastDan McGee
This is rather sick to look at. Sorry, Django gives me no other choice. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Add new attach_maintainers() utility methodDan McGee
This allows us to alleviate the N+1 query problem when we want maintainer data for a queryset of packages. We use it on signoffs here; we should also be able to apply this to the todolist section where this problem has existed for some time. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Minor signoff query tweaks/optimizationsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Allow signoff manipulation if you are a maintainerDan McGee
This is a more expensive and not-yet-optimized way of doing this, but we can fix that later as needed. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Allow signoff options to apply to all packages across architecturesDan McGee
If you check the new box, you can set the options for both the i686 and the x86_64 packages at the same time. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Ensure signoffs can only be created if allowedDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Signoffs changes and improvementsDan McGee
* Better signoff report with more detail * Show signoff specification in signoffs view * Honor disabled/bad flags and display in approval column * Various other small bugfixes and tweaks Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Add signoff options form and data entry pageDan McGee
This allows the criteria and other information about certain signoffs to be overridden as necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Add URL to todolist emailDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Make signoff_report command send emailDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Minor tweaks to style and sorting of signoffsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Package signoff email report, initial revisionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Refactor more package signoff stuffDan McGee
This sets up some shared utility code for use in a later package signoff email report command. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Many signoff page improvementsDan McGee
Add a new 'SignoffSpecification' model which will capture metadata regarding a specific package if it differs from the norm- e.g. more or less than 2 required signoffs, is known to be bad, a comment from the maintainer, etc. The groundwork is laid here; much of this will still need to be wired up in the future. Enhance the view with a lot more JS prettiness and add revoking of signoffs. The signoff page can be filtered and the links and all the fun stuff are totally dynamic now. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Use UTC now everywhereDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01Use copy of donate image in /media/release_2011-11-01Dan McGee
This ensures it gets served over HTTPS if the user was on a secure session to begin with. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01Add Click&Pledge image locallyDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01Add created column to Donor modelDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01Really ensure we don't catch any NULL or blank valuesDan McGee
Fuck you too, Django. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01Update donation text and linksDan McGee
We are finally set up through SPI and Click&Pledge. Add the necessary text, buttons, and links for our new donation home. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27Prettify filesizes in package visualization chartDan McGee
Add a general purpose formatter and mark up each value function with an 'is_size' attribute so we can add additional display formatting if asked for. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27Add some legacy URL redirectsDan McGee
Amazing that we still see hits on these URLs... Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-26Don't require mirrorlist URLs to have ISOsrelease_2011-10-26Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-26Ensure PGP signature values are not trimmedDan McGee
This makes them totally unusable for any real purpose down the road. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-25Save SVG as plain, not InkscapeDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-24Add a logo-only SVG fileDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-24Add icons for Apple iOS web application bookmarksDan McGee
These will be used for an icon if adding a bookmark as a Home Screen icon on iOS devices. We add the three recommended sizes for old iPhone screen size, the new iPhone resolution, and the iPad. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-21Add a generate_keyring commandDan McGee
This grabs all the PGP keys from the developer profiles and adds them to the keyrings. Obviously we may want to do more in the future such as filter by groups, active status, etc. but this is just a first iteration. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-21Accept 40 hex char PGP key signatures onlyDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-19Use admin_media_prefix helper everywhere in search templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-18Refresh title and other aspects of flag package templatesrelease_2011-10-18Dan McGee
* Update <title/> to contain version and architecture * Update some page text to be more descriptive * Add a meta tag to not directly index these pages in search engines Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-18Add architecture to package details and files page titlesDan McGee
And remove the not totally necessary "Package Details" text as that seems like a reasonable assumption for the base page. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-14Update d3 JS resources to latest versionDan McGee
This fixes an issue I discovered in attribute transition values in IE. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-12Fix invalid markup on dev dashboardDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-12Revert movement of search initialization codeDan McGee
I'm stupid and didn't realize it was referenced before the location I moved it to. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-12Package search and sort code cleanupDan McGee
Move initializations closer to where they are actually needed, and remove the sorting on multiple columns when a sort field is passed in. We don't do this for the default sort, so let's not do it here either. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-12Add hidden name and desc fields to package searchDan McGee
Not linked from anywhere just yet, but they are available if you know they exist and can be used in the standard query string. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11Pylint suggested and other cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-07Cache static /jsi18n/ resource for one weekDan McGee
Rather than the default middleware page cache length of only minutes. This will save clients a lot of requests when browsing packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-06Make border style and color consistent on different pagesDan McGee
Use dotted and #bbb where appropriate as opposed to the varying styles we had before. Addresses FS#25834. Signed-off-by: Dan McGee <dan@archlinux.org>