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

alphagov / digitalmarketplace-content-loader
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: bk-add-boolean
DEFAULT BRANCH: master
Repo Added 05 May 2016 03:16PM 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 checkbox-tree
branch: checkbox-tree
CHANGE BRANCH
x
Reset
  • checkbox-tree
  • 1.0.0
  • 1.0.1
  • 1.0.2
  • 1.1.0
  • 1.2.0
  • 1.3.0
  • 141882981-Add-question-type-to-content-loader-and-summary-display
  • 2.0.0
  • 2.0.1
  • 2.1.0
  • 2.2.0
  • 2.3.0
  • 2.4.0
  • 2.4.1
  • 2.4.2
  • 2.4.3
  • 2.5.0
  • 2.6.0
  • 2.7.0
  • 2.7.1
  • 2.8.0
  • 2.9.0
  • 3.0.0
  • 3.1.0
  • 3.1.1
  • 3.3.0
  • 3.4.0
  • 3.5.0
  • 3.5.1
  • 3.5.2
  • 3.5.3
  • 3.6.0
  • 4.0.0
  • 4.1.0
  • 4.10.0
  • 4.10.1
  • 4.11.0
  • 4.2.0
  • 4.3.0
  • 4.4.0
  • 4.4.1
  • 4.4.2
  • 4.5.0
  • 4.6.0
  • 4.7.0
  • 4.7.1
  • 4.8.0
  • 4.9.0
  • 430-remove-python-2
  • 5.0.0
  • 5.1.0
  • 5.1.1
  • 5.1.2
  • 5.1.3
  • 5.2.0
  • 5.2.1
  • 6.0.0
  • 7.0.0
  • 7.1.0
  • BUGFIX-failing-YAML-test
  • DMSandboxEnvironment
  • NO-TICKET-specify-packages
  • add-filter-label-values-to-question-summary
  • add-missing-utils-dep
  • asssertion-unpacking
  • checkbox-tree-no-parents
  • content-loader-for-service-page
  • content-message-list-of-dicts
  • content-templating
  • cpw-add-try-load-for-metadata-and-messages
  • decimal-place
  • default-error-messages
  • dm-filter-descriptions
  • dynamic-list-bug-fix
  • extract-content-from-utils
  • fix-dynamic-lists
  • fix-multi-question-ordering
  • fix-pytest-warnings
  • flake8
  • follow-up-questions
  • get-next-question-id
  • get-previous
  • get-source-for-csv
  • ks-allow-py37-and-up
  • ks-upgrade-pyyaml
  • ldeb-add-python-badge
  • ldeb-add-python-requires-spec
  • ldeb-pin-flake8
  • ldeb-update-dmutils
  • ldeb-update-requirements
  • master
  • mit-license
  • no-value-no-unit
  • ods-questions
  • option-value-getter
  • ordered-errors
  • pc-all-in-jinja
  • pc-spike-dynamic-multiquestions-or-something
  • pytest-3x
  • python3
  • ris-bump-utils-deps
  • ris-content-section-prefill-flag
  • ris-default-nix
  • ris-default-nix-fixes
  • ris-default-nix-rel-venv
  • ris-immutable-template-proxy
  • ris-implement-question-contains
  • ris-question-descriptor-from
  • ris-question-descriptor-from-2
  • ris-slugification-unicode-whitespace
  • ris-utils-lt-51
  • set-section-slug-so-special-symbols-succeed
  • shw-bugfix-question-as-section-description
  • shw-checkbox-values-to-labels
  • shw-fix-unanswered-questions-count
  • shw-flake8-per-file-ignores
  • shw-load-metadata
  • shw-one-question-per-page
  • shw-options-description-templatefield
  • shw-simplify-slug
  • shw-try-load-manifest
  • shw-update-dependencies
  • split-content-quesitons
  • split-content-questions
  • strip-followup
  • template-field-markdown-flag
  • unpack-dynamic-list
  • update_script_to_be_executable
  • upgrade-utils

pending completion
252

push

travis-ci

galund
Taxonomy (category tree) implementation - simplification

  - https://trello.com/c/y79rP1KA/197-suppliers-choose-a-category-backend
  - less is more - don't need to build another tree structure
  - also tidy up inheritance for summary, multiple inheritance avoided
    as not needed

Explanation of why we are storing the parent values:

  - really, these additional categories are a denormalization. Arguably,
    the frontend should just assume that they are selected - the place
    they actually need to be selected is in the search engine;
  - however, the indexer doesn't have access to the tree at the moment,
    so moving the denormalization there is rather hard;
  - the next best place to put this might then be the API, because that
    would ensure a consistent view on the data. But that would require
    teaching the API about this as a special field, and no other fields
    get processing applied - either the data posted in is accepted, or
    not (i.e. we only have validation, nothing beyond that). And again,
    the API doesn't currently have access to the original framework data,
    so even if we wanted to have the additional categories added there,
    it's hard in the current structure.
  - that leaves us with having to do the denormalization in the frontends
    (i.e. in the content loader)
  - having the API validate that the denormalization was applied means
    duplicating that content loader logic into the API, and again we don't
    actually have the data available that would allow us to do that anyway...
  - and therefore data validly posted to the API may not have the
    denormalization applied (i.e. if someone posted to the API via some other
    method than the content loader).
  - and that's weird, but we can't do anything about it, and weird stuff
    shouldn't be silent, so here we are.

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

771 of 777 relevant lines covered (99.23%)

1.98 hits per line

Relevant lines Covered
Build:
Build:
777 RELEVANT LINES 771 COVERED LINES
1.98 HITS PER LINE
Source Files on checkbox-tree
  • Tree
  • 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
252 checkbox-tree Taxonomy (category tree) implementation - simplification - https://trello.com/c/y79rP1KA/197-suppliers-choose-a-category-backend - less is more - don't need to build another tree structure - also tidy up inheritance for summary, multiple in... push 22 Feb 2017 01:42PM UTC galund travis-ci pending completion  
247 checkbox-tree Checkbox tree - further simplification - https://trello.com/c/y79rP1KA/197-suppliers-choose-a-category-backend - don't need to store every option's parents, gathering the expected list of parent values as we go is sufficient push 22 Feb 2017 10:52AM UTC galund travis-ci pending completion  
245 checkbox-tree Checkbox tree - remove unused variable - https://trello.com/c/y79rP1KA/197-suppliers-choose-a-category-backend - also tidy up inheritance for summary, multiple inheritance avoided as not needed push 22 Feb 2017 10:28AM UTC galund travis-ci pending completion  
243 checkbox-tree Taxonomy (category tree) implementation - https://trello.com/c/y79rP1KA/197-suppliers-choose-a-category-backend - less is more - don't need to build another tree structure push 21 Feb 2017 05:34PM UTC galund travis-ci pending completion  
242 checkbox-tree Taxonomy (category tree) implementation - Bump version to 3.1.0 push 20 Feb 2017 05:15PM UTC galund travis-ci pending completion  
241 checkbox-tree Taxonomy (category tree) implementation - test for category tree summary page push 20 Feb 2017 05:13PM UTC galund travis-ci pending completion  
240 checkbox-tree Checkbox tree needs to work if only 'label' is specified for an option push 20 Feb 2017 12:32PM UTC galund travis-ci pending completion  
191 checkbox-tree Taxonomy (category tree) implementation - support for the same value appearing in several places in the tree. push 14 Feb 2017 03:39PM UTC galund travis-ci pending completion  
190 checkbox-tree Taxonomy (category tree) implementation - summary value for hierarchy is a subset of the 'options' key in the YAML, this allows us to annotate with detail like labels and 'missing' flags - also update a comment in ListSummary that was in ... push 14 Feb 2017 03:14PM UTC galund travis-ci pending completion  
187 checkbox-tree Taxonomy (category tree) implementation - rename taxonomy to Hierarchy because it's less specific - sort the values we return, so we have we are guaranteed no diff when the same data is written back to the API, if the values are unchanged. push 13 Feb 2017 04:27PM UTC galund travis-ci pending completion  
See All Builds (667)
  • 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