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

NaturalHistoryMuseum / ckanext-statistics
58%
main: 74%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: main
Repo Added 18 Jan 2018 03:37PM UTC
Files 12
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH josh/fix_numbers
branch: josh/fix_numbers
CHANGE BRANCH
x
Reset
  • josh/fix_numbers
  • HEAD
  • ckan-upgrade-2.8.0a
  • dev
  • ginger/citation-version
  • ginger/community-health
  • ginger/dependencies
  • ginger/deprecate-ckanpackager
  • ginger/docker-compose-cmd
  • ginger/gabby-fixes
  • ginger/gbif-stats
  • ginger/handle-none
  • ginger/include-migration
  • ginger/merge-commit-type
  • ginger/python-setup-version
  • ginger/readme
  • ginger/rtd-config-update
  • ginger/standardisation
  • ginger/standardise
  • ginger/sync-branch-workflow
  • ginger/update-logos
  • ginger/vds-downloads-compatibility
  • josh/add_new_stats
  • josh/catch_count_error
  • josh/ckan-upgrade-2.9
  • josh/copy-ckanpackager-model
  • josh/fix-docker-postgres-start-error
  • josh/fix_stats_requests
  • main
  • master
  • patch
  • v2.0.0
  • v2.0.1

pending completion
18

Pull #5

travis-ci

web-flow
Improve stats datastore counting

We were using this check:

  resource[u'url_type'] in [u'datastore', u'upload', u'dataset']

which had to be passed before we'd ask the datastore what the count
on the resource was, however if you don't upload the data (for example
you link to an external URL source) then this fails even though the
datastore will have ingested the data. This has been removed in favour
of checking the datastore_active property of the resource.

Secondly, this commit just tidies up some of the logic, most notably
we don't just get the first 200 packages, we get all of them,
iteratively.
Pull Request #5: Improve stats datastore counting

20 of 20 new or added lines in 1 file covered. (100.0%)

187 of 321 relevant lines covered (58.26%)

0.58 hits per line

Relevant lines Covered
Build:
Build:
321 RELEVANT LINES 187 COVERED LINES
0.58 HITS PER LINE
Source Files on josh/fix_numbers
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
18 josh/fix_numbers Improve stats datastore counting We were using this check: resource[u'url_type'] in [u'datastore', u'upload', u'dataset'] which had to be passed before we'd ask the datastore what the count on the resource was, however if you don't upload the... Pull #5 02 Sep 2019 08:59AM UTC web-flow travis-ci pending completion  
17 josh/fix_numbers Improve stats datastore counting We were using this check: resource[u'url_type'] in [u'datastore', u'upload', u'dataset'] which had to be passed before we'd ask the datastore what the count on the resource was, however if you don't upload the... push 02 Sep 2019 08:59AM UTC jrdh travis-ci pending completion  
See All Builds (251)
  • Repo on GitHub
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

© 2025 Coveralls, Inc