summaryrefslogtreecommitdiffstats
path: root/mirrors/views
AgeCommit message (Collapse)AuthorFilesLines
2019-01-21main: run 2to3Jelle van der Waa1-3/+3
2018-11-17Using user.is_authenticated() as a method is deprecatedJelle van der Waa2-4/+4
Use is_authenticated as an attribute.
2018-05-07Merge pull request #105 from kyrias/mirror-list-tierjelle van der Waa1-1/+6
mirrors: Allow listing mirrors in only a specific tier
2018-05-05mirrors: Allow listing mirrors in only a specific tierJohannes Löthberg1-1/+6
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-22mirrorlist: Accept GET parameters as filtersGenki Sky1-1/+2
This fixes a regression. Originally request.REQUEST was used, but django 1.9 removed this. In its stead, request.POST was used unconditionally. However, this results in any GET request returning *all* mirrors, rather than filtering as requested in the parameters. This patch uses POST or GET based on the request method. This fixes the behavior of the [mirror-filter-form], and any scripts depending on the generated URL format. Accordingly, make test_mirrorlist_filter() test both the success and failure cases, rather than just success. [mirror-filter-form]: https://www.archlinux.org/mirrorlist/ Signed-off-by: Genki Sky <sky@genki.is>
2018-04-08request.REQUEST is removed in django 1.9Jelle van der Waa1-1/+1
Replace request.REQUEST with request.POST.
2018-03-23FS#50516: mirrors: Extend /mirrors/status/json/ (#91)jelle van der Waa1-0/+2
Add the ipv4/ipv6 availability to the /mirrors/status/json api.
2018-02-18mirrors/views/api: Add URL active statusJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-01-02mirrors/views/api: Fix mirrors.change_mirror perm typo (#74)Johannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-12-29Add mirror detail URLs to JSON output (#71)Johannes Löthberg1-1/+3
* Add mirror detail URLs to JSON output Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> * Bump mirror details JSON version to 4 Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-12-28Require mirror.change_mirror perm to see emailsJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-12-28Add admin emails to the mirror status JSON output when logged inJohannes Löthberg1-0/+3
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-02-22Fix empty mirror list when mirror status is usedFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-17Remove scored based mirrorlist sortingFlorian Pritz1-2/+3
Users may use the returned mirror list as-is without sorting it themselves. This may lead to the first mirror in the list being overloaded. Prevent this by not returning a sorted list. References: https://lists.archlinux.org/pipermail/arch-dev-public/2017-January/028681.html Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01mirrors: api: Add ISOs information to JSON outputrelease_2016-08-01Johannes Löthberg1-0/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Angel Velasquez <angvp@archlinux.org>
2015-02-26Include error message in JSON detail responseDan McGee1-1/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2015-02-26Break out mirror JSON API viewsDan McGee2-100/+108
Signed-off-by: Dan McGee <dan@archlinux.org>
2015-02-26Break out mirrorlist viewsDan McGee2-122/+130
Signed-off-by: Dan McGee <dan@archlinux.org>
2015-02-26Move mirrors views into subdirectoryDan McGee1-0/+368
We'll start splitting these up as we did in packages/. Signed-off-by: Dan McGee <dan@archlinux.org>