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

MITLibraries / transmogrifier-ab-diff / 11666339676
91%
main: 86%

Build:
Build:
LAST BUILD BRANCH: IN-1240-pip-audit
DEFAULT BRANCH: main
Ran 04 Nov 2024 02:34PM UTC
Jobs 1
Files 15
Run time 1min
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

04 Nov 2024 02:28PM UTC coverage: 91.276% (+0.07%) from 91.207%
11666339676

push

github

ghukill
Use DeepDiff library for a/b record diffing

Why these changes are being introduced:

Originally, the library jsondiff was used for getting a diff between
the A and B version of a record.  This was selected based on prior
use and experience.  For the most part, it was a nice fit, but lacked
the ability to ignore changes in array order as a diff to report.

This resulted in high numbers of records showing diff, when the only
change was a differently ordered array.

How this addresses that need:
* The DeepDiff library has built-in support to 'ignore_order' when
generating diffs, making it a great fit
* DeepDiff is equally fast for generating diffs
* Our primary, current use of diffs is to highlight records where a
TIMDEX field changed, which is conveniently a "root" field on the
JSON object.  DeepDiff provides an attribute on the diff object
that returns an explicit list of modified "root" fields, which is
just what we need, further simplifying some logic in ABDiff to
parse this information.

Overall, DeepDiff is a more configurable library, with built-in
options that align closely with our use case.

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-373

17 of 17 new or added lines in 2 files covered. (100.0%)

701 of 768 relevant lines covered (91.28%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11666339676.1 04 Nov 2024 02:34PM UTC 0
91.28
GitHub Action Run
Source Files on build 11666339676
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11666339676
  • f1819585 on github
  • Prev Build on main (#11636162593)
  • Next Build on TIMX-373-improve-diff-calculating (#11666616180)
  • Delete
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