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

chaoss / grimoirelab-sortinghat / 129
93%

Build:
DEFAULT BRANCH: master
Ran 09 Jun 2016 12:24PM UTC
Jobs 2
Files 35
Run time 25s
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

pending completion
129

push

travis-ci

sduenas
[api] Check identity id uniqueness in add_identity()

So far, sortinghat did not check whether the id of an identity
was already inserted in the database. It only checked if the
tuple (source, name, email, username) was stored. This might
raise some problems like in #67, when the values of an identity
are truncated because their length, so they were not found in the
database when they are compared.

With this patch this problem will not happen again because
for those cases, the UUID will be the same and a AlreadyExistError
will be raised. If for any reason the UUIDs are different,
it still have a unique constraint in the identities table that
checks if new tuples of (source, name, email, username) to be inserted
already exist in the database.

The problem with the length of the values will persist and
they will be truncated.

2520 of 2753 relevant lines covered (91.54%)

1.82 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
/home/travis/build/MetricsGrimoire/sortinghat/sortinghat/utils.py
3
100.0
/home/travis/build/MetricsGrimoire/sortinghat/sortinghat/parsing/eclipse.py
8
100.0
/home/travis/build/MetricsGrimoire/sortinghat/sortinghat/api.py
Jobs
ID Job ID Ran Files Coverage
1 129.1 09 Jun 2016 12:24PM UTC 0
90.99
Travis Job 129.1
2 129.2 09 Jun 2016 12:24PM UTC 0
90.74
Travis Job 129.2
Source Files on build 129
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #129
  • db78e578 on github
  • Prev Build on master (#128)
  • Next Build on master (#134)
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