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

qld-gov-au / ckan / 79b07585-854f-422a-a038-8bfb74b31671

21 Jan 2026 03:39AM UTC coverage: 87.882% (-0.01%) from 87.895%
79b07585-854f-422a-a038-8bfb74b31671

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

37 of 37 new or added lines in 2 files covered. (100.0%)

16404 existing lines in 330 files now uncovered.

47246 of 53761 relevant lines covered (87.88%)

2.14 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