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

HumanCellAtlas / metadata-api
96%
develop: 98%

Build:
Build:
LAST BUILD BRANCH: feature/geryl/1469-updated-hca
DEFAULT BRANCH: develop
Repo Added 24 Aug 2018 06:51AM UTC
Files 7
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 feature/hannes/lookup
branch: feature/hannes/lookup
CHANGE BRANCH
x
Reset
  • feature/hannes/lookup
  • develop
  • feature/benwu/20-projects-tab-fields
  • feature/benwu/22-pin-commonmark-0.7.5
  • feature/benwu/36-add-role-to-project-contact
  • feature/branch/update-setuptools-on-travis
  • feature/geryl/1469-updated-hca
  • feature/geryl/410-fixing-disease-field
  • feature/geryl/58-add-security-txt
  • feature/hannes/22-pin-commonmark
  • feature/hannes/23-upgrade-dcp-cli
  • feature/hannes/53-imaging
  • feature/hannes/agerange-float
  • feature/hannes/preservation_method
  • feature/hannes/test-canned-pilot-bundles
  • feature/hannes/travis
  • feature/hannes/use-staging-bundles-for-test
  • feature/hannes/validate-content-type
  • feature/rex/add-simple-badge
  • fix/hannes/13-sequencing-input
  • fix/hannes/13-sequencing-input-2
  • issues/achave11/93-supplementary-links-support
  • issues/danielsotirhos/31-ontology-labels
  • issues/danielsotirhos/31-ontology-terms
  • issues/danielsotirhos/40-41-schema-field-renames
  • issues/danielsotirhos/43-accession-fields
  • issues/danielsotirhos/44-method-and-reagents-fields
  • issues/danielsotirhos/50-selected-cell-type
  • issues/danielsotirhos/51-cell-line-fields
  • issues/danielsotirhos/55-paired-end
  • issues/danielsotirhos/59-contributors-and-publications
  • issues/danielsotirhos/61-analysis-protocol-fields
  • issues/danielsotirhos/63-project-contact-name
  • issues/danielsotirhos/64-file-format
  • issues/danielsotirhos/68-protocol-and-process-type
  • issues/danielsotirhos/75-cell-line-type
  • issues/danielsotirhos/77-imaging-protocol-assay-type
  • issues/danielsotirhos/82-content-description
  • issues/danielsotirhos/85-add-readme-documentation
  • issues/danielsotirhos/organ-part-array
  • issues/hannes/65-file-replica-fix
  • issues/hannes/73-get-bundle-paging
  • issues/hannes/79-ncbi-taxon-id-2
  • issues/hannes/89-reinstate-large-bundle-test
  • issues/hannes/91-upgrade-dcp-cli
  • issues/yanc/79-extract-ncbi-taxon-id
  • master
  • release%2F1.0b11
  • release/1.0b10
  • release/1.0b11
  • release/1.0b12
  • release/1.0b13
  • release/1.0b14
  • release/1.0b15
  • release/1.0b16
  • release/1.0b17
  • release/1.0b18
  • release/1.0b19
  • release/1.0b2
  • release/1.0b20
  • release/1.0b21
  • release/1.0b3
  • release/1.0b5
  • release/1.0b6
  • release/1.0b7
  • release/1.0b8
  • release/1.0b9
  • rex/update/readme
  • rolo-hack

pending completion
36

Pull #18

travis-ci

web-flow
Add helper function for accessing renamed fields

```
lookup(entity, 'new_name', 'old_name')
```

reads better than

```
entity.get('old_name') or entity['new_name']
```

because it mentions the new name first. More importantly, the latter prioritizes to the old name which may be problematic if the old name is reintroduced for yet another field in the future.

Unlike

```
entity.get('new_name') or entity['old_name']
```

the first two raise `KeyError: `new_name` which is a subtle but important difference.
Pull Request #18: Add helper function for accessing renamed fields

19 of 19 new or added lines in 3 files covered. (100.0%)

580 of 604 relevant lines covered (96.03%)

0.96 hits per line

Relevant lines Covered
Build:
Build:
604 RELEVANT LINES 580 COVERED LINES
0.96 HITS PER LINE
Source Files on feature/hannes/lookup
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
36 feature/hannes/lookup Add helper function for accessing renamed fields ``` lookup(entity, 'new_name', 'old_name') ``` reads better than ``` entity.get('old_name') or entity['new_name'] ``` because it mentions the new name first. More importantly, the latter priorit... Pull #18 24 Aug 2018 10:09PM UTC web-flow travis-ci pending completion  
35 feature/hannes/lookup Add helper function for accessing renamed fields ``` lookup(entity, 'new_name', 'old_name') ``` reads better than ``` entity.get('old_name') or entity['new_name'] ``` because it mentions the new name first. More importantly, the latter priorit... push 24 Aug 2018 10:09PM UTC hannes-ucsc travis-ci pending completion  
34 feature/hannes/lookup Add helper function for accessing renamed fields ``` lookup(entity, 'new_name', 'old_name') ``` reads better than ``` entity.get('old_name') or entity['new_name'] ``` because it mentions the new name first. More importantly, the latter priorit... push 24 Aug 2018 09:49PM UTC hannes-ucsc travis-ci pending completion  
See All Builds (397)
  • 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