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

xethorn / schema
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: add-sorting
DEFAULT BRANCH: master
Repo Added 24 Oct 2014 09:10PM UTC
Files 9
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 change-fields
branch: change-fields
CHANGE BRANCH
x
Reset
  • change-fields
  • add-sorting
  • master
  • test
  • xethorn-14-oct-add-more-tests
  • xethorn-14-oct-update-readme

pending completion
95

push

travis-ci

xethorn
Update field handlers

The previous version was spliting the fields on the "." and recreating
a dictionary. For instance:

    ['user.username', 'user.stats.monthly']

Was generating:

    {'user': {
        'username': None,
        'stats': {
            'monthly': None
        }}

The issue: when you fetch a model, you pass an array: ['user.username', ...],
so if you need to fetch again on an extension, you should also pass the same
signature.

Now, the flow is a lot easier to understand:

     [user.username, user.stats.monthly]

     calls: user and pass the above, find the username and fetch the extension
            stats and pass to stats: ['stats.monthly']

414 of 446 relevant lines covered (92.83%)

0.93 hits per line

Relevant lines Covered
Build:
Build:
446 RELEVANT LINES 414 COVERED LINES
0.93 HITS PER LINE
Source Files on change-fields
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
95 change-fields Update field handlers The previous version was spliting the fields on the "." and recreating a dictionary. For instance: ['user.username', 'user.stats.monthly'] Was generating: {'user': { 'username': None, 'stats': { ... push 23 Dec 2014 01:37PM UTC xethorn travis-ci pending completion  
See All Builds (74)
  • 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