Age | Commit message (Collapse) | Author | Files | Lines |
|
Update to the latest version 3 release which does not break backwards
compatibility yet.
Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
|
|
Create a simple tag for outputting the d3js <script> html so updating
will be easier and the version has be changed in one file.
Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
|
|
|
|
|
|
|
|
|
|
We use the attribute in many places, but it's a "bytes" object in
pgpdump that messes up the remaining logic. Let's just wrap it from the
very beginning.
|
|
Some py3 fixes and some refactoring
|
|
|
|
|
|
|
|
Revisited earlier commit where email subject lines with potentially
mixed encoding are joined into a single string. This fix brings in
the 'codecs' import to decode bytes to string using either the passed
encoding (if provided) or otherwise utf-8.
Changed the test_donor_import to no longer convert the Header to a
string and instead leave it as a byte array.
|
|
Under Python 3, the error message that is expected to be returned has
changed. This fixes the 'expected' error so that the test succeeds and
fails as required.
|
|
* Fixed issue with string concatenation that fails under Python 3
* Fixed issue with concatenating strings with potentially mixed
encoding. All strings are now first converted to UTF-8 and then
concatenated.
|
|
|
|
|
|
|
|
|
|
|
|
Foreignkey used to implicitly be on_delete=models.CASCADE and has to be
explicit now.
|
|
Update assignment_tag to simple_tag since the assignment_tag is
deprecated.
|
|
|
|
Include an integration test, to test donor_import with a real maildir
file with a valid and invalid donor.
|
|
|
|
|
|
Django explicitly recommends against using CachedStaticFilesStorage,
partially because it performs worse. It also breaks our tests with our
Minified subclassing of it.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Mark jquery script tag as safe otherwise django won't output it as html.
|
|
|
|
Throw a CommandError when the path is not found, similar to what
reporead does and add a test for decode_subject.
|
|
Add tests for providing an int/long to pgp_key_link with various sizes:
8, 16 or 40 chars.
|
|
|
|
* Update coveragerc to exclude newly located tests
There are now tests under main/tests/* etc, which should be omitted for
coverage.
* omit settings from coverage
settings and local_settings aren't interesting for coverage, omit them.
* remove leftover secure context processor
The secure context processor was used to determine if the cdn served
assets should be loaded over https or http. Since assets are no longer
served with a cdn and the whole site is loaded over https these days,
this code is dead and can be removed.
* packages: Add test for flagging packages out of date
Add simple test cases for flagging packages out of date, should later be
improved to query the Package model for packages and use that data
instead of hardcoding.
|
|
The ISO model was used for the releng feedback form which was removed
earlier. All this code is therefore now unused.
|
|
This script imports messages from a Maildir folder and creates new
unique Donors based on the name in the subject. The subject also
contains the amount and the email address, which is not stored by
Archweb.
|
|
* main: move tests to main/tests
Move the templatetags tests to main/tests/test_templatetags.
* main: Add test for templatetags country
Create a test for the templatetag country_flag.
* main: remove duplicate floatvalue
floatvalue is only used in the mirrors templates and the same exact
function exists in the mirror_status templatetags.
* main: Remove duplicate hours filter
The hours filter is also defined in the mirror_status and only used in
mirrors.
* main: move percentage filter to mirrors
Move the percentage filter to the only user of it and add a test for
basic use cases.
* main: remove duplicate duration implementation
The duration templatetag filter is also defined in mirror_status.py
* templates: remove unrequired import flags
* main: Add missing testcase for country_flag
Add the None test case, so that the function is fully covered.
* todolists: create tests for Todolist model
Add basic tests for the Todolist model
|
|
Remove the old feedback functionality for released iso's. The last
submission was in 2012 and it's no longer used by the current released
iso's.
|
|
* Add pagination to JSON search form using Paginator
The downside of this is that we can't easily run prefetch_related
anymore, but given the limit I don't suspect this to be a problem.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* packages/views/search: Add appropriate newlines to search_json
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Update package fixture to be the same as devel/fixtures/core.db.tar.gz
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* packages/tests: Add tests for JSON search pagination
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
package details: remove category from bugtracker links
|
|
|
|
This completely screws up searching for bugs, as you can easily miss any
bugs filed to the testing package, and will *always* miss the ones that
have been moved to "Upstream Bugs".
There is no purpose in restricting the view of bugs filed against a
specific package, to some arbitrary subcategory of "why" the bug was
filed; all it accomplishes is causing unknowing users to file duplicate
bug reports.
|
|
Refactor and introduce Pylint to travisci
|
|
Show a link for security issues on the package details link.
|
|
|
|
|
|
Remove the unused CDN configuration option for JQuery.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
|
Signoffs
|
|
|
|
Add the fixtures corresponding to the signoff testers group on the live
server.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
|
|
|
The autoescape option is always true in our codebase so remove the
unused non escaping option.
|