Page MenuHomeSoftware Heritage

replayer: factor out legacy objects fixers

Authored by seirl on Mon, Mar 23, 6:00 PM.



This will allow other journal clients to use the fixers, instead of this
being solely a replayer feature.

One could also imagine integrating the fixer directly in the journal so
that the fixes happen transparently for all the users without having to
call the fixer explicitely, and this diff is a first step in this

Test Plan

tox passes the unit tests and mypy is happy

Diff Detail

rDJNL Journal infrastructure
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

seirl created this revision.Mon, Mar 23, 6:00 PM
olasd accepted this revision.Mon, Mar 23, 6:11 PM
olasd added a subscriber: olasd.

Looks good to me, save from one inline comment.

The tests failure is a silly doctest dict key order thing. Even if it's a bit overkill, might I suggest turning the doctests into actual tests that wouldn't exhibit such an issue (in a followup diff)?


You can switch this to use the object_converter_fn fallthrough now, I guess.

This revision is now accepted and ready to land.Mon, Mar 23, 6:11 PM
seirl updated this revision to Diff 10223.Mon, Mar 23, 6:39 PM

Fix tests

seirl updated this revision to Diff 10224.Mon, Mar 23, 6:45 PM

use fallback for revision

This revision was automatically updated to reflect the committed changes.