• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

qld-gov-au / ckan / ffdd3d13-9fd2-42d6-8817-f9a076d0bad6

21 Jan 2026 02:47AM UTC coverage: 79.551% (-8.3%) from 87.869%
ffdd3d13-9fd2-42d6-8817-f9a076d0bad6

Pull #239

circleci

ThrawnCA
[QOLSVC-12515] add support for specifying facet sorts via query parameters

- Use '_{facet}_sort' as a parallel to '_{facet}_limit', with comma separation for the ordering, eg
'_tags_sort=count,desc' to mimic the default popularity-based sorting.
Pull Request #239: QOLSVC-12515 alphabetical facet sort

11 of 35 new or added lines in 2 files covered. (31.43%)

13656 existing lines in 309 files now uncovered.

42766 of 53759 relevant lines covered (79.55%)

1.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/ckanext/example_iresourcecontroller/plugin.py
1
# encoding: utf-8
2

UNCOV
3
from collections import defaultdict
2✔
UNCOV
4
from typing import Any
2✔
UNCOV
5
import ckan.plugins as plugins
2✔
6

7

UNCOV
8
class ExampleIResourceControllerPlugin(plugins.SingletonPlugin):
2✔
9

UNCOV
10
    plugins.implements(plugins.IResourceController)
2✔
11

UNCOV
12
    def __init__(self, *args: Any, **kwargs: Any):
2✔
UNCOV
13
        super().__init__(*args, **kwargs)
2✔
UNCOV
14
        self.counter = defaultdict(int)
2✔
15

UNCOV
16
    def before_resource_create(self, context: Any, resource: Any):
2✔
UNCOV
17
        self.counter['before_resource_create'] += 1
2✔
18

UNCOV
19
    def after_resource_create(self, context: Any, resource: Any):
2✔
UNCOV
20
        self.counter['after_resource_create'] += 1
2✔
21

UNCOV
22
    def before_resource_update(
2✔
23
            self, context: Any, current: Any, resource: Any):
UNCOV
24
        self.counter['before_resource_update'] += 1
1✔
25

UNCOV
26
    def after_resource_update(self, context: Any, resource: Any):
2✔
UNCOV
27
        self.counter['after_resource_update'] += 1
1✔
28

UNCOV
29
    def before_resource_delete(
2✔
30
            self, context: Any, resource: Any, resources: Any):
UNCOV
31
        self.counter['before_resource_delete'] += 1
1✔
32

UNCOV
33
    def after_resource_delete(self, context: Any, resources: Any):
2✔
UNCOV
34
        self.counter['after_resource_delete'] += 1
1✔
35

UNCOV
36
    def before_resource_show(self, resource: Any):
2✔
UNCOV
37
        self.counter['before_resource_show'] += 1
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc