Age | Commit message (Collapse) | Author | Files | Lines |
|
not foo is preferred over len(foo) == 0.
|
|
CSP dissalows inline CSS styles so move the CSS to a separate file.
|
|
Remove inline style and add new CSS rule for it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit bb18fa3323a0494a2774ea61911572b089d04b6d.
|
|
In Python 3 for Django, class method __unicode__ must be changed to
__str__. This commit replaces all models that use __unicode__ to
__str__.
|
|
|
|
|
|
See ctypes documentation for a table of the fundamental data types where
c_char_p is defined as a bytes object.
|
|
|
|
|
|
this makes it easier to upgrade to Python 3 since less on_delete lines
have to be fixed.
|
|
squash all migrations
|
|
|
|
travisci runs tests on a different distro, so libalpm is not testable.
|
|
|
|
|
|
Foreignkey used to implicitly be on_delete=models.CASCADE and has to be
explicit now.
|
|
Use is_authenticated as an attribute.
|
|
|
|
The view which used get_differences_info was removed in
373a426cb1ccbcaf9c43f but didn't clean up the utility functions.
|
|
|
|
|
|
|
|
Previously the search that had a space in it yields no results if the
match is not exact e.g. ``archlinux keyring`` yields no results even
though there is a package ``archlinux-keyring``. This patch modifies the
query to search for ``archlinux AND keyring``, both for package names
and package descriptions. This leads to more search results.
|
|
Instead of importing json and loading the response.content using
json.loads use Django's response.json() method.
|
|
|
|
Add new feeds for newly added packages and packages which where removed
from the repository's.
|
|
Calls to order_by() without passing any parameters was causing
UnorderedObjectListWarning during unit tests. The failing unit tests
were testing the sitemap functionality. Sitemaps utilize Paginators,
which require either the entity ordering as specified in their Meta
object, or a specific ordering in the QuerySet, otherwise this warning
is issued.
|
|
|
|
Add missing add_argument to parse args.
|
|
Passing Context has been removed in Django 11, a dict should rather be
passed.
|
|
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Update the code to use BaseCommand instead of the removed NoArgsCommand.
|
|
|
|
* 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.
|
|
* packages: Add test for differences view
Add a simple test to check if the differences view renders.
* packages: Add tests for more urls
Add basic tests for /packages/ related urls.
* mirrors: Add mirrorlist urls
|
|
|
|
* 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>
|
|
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
* Return different dep types under different keys in JSON results
* packages/utils: Put dependency type list above class
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
|
|
Test all known scenario's and easy to test search scenario's.
|
|
Remove the i686 and x86_64 comparison since i686 is dropped and change
the multilib difference to compare against x86_64 instead of i686.
|