Review main Merged

65617[BUGFIX] PlainDataResolver misses DeletedRestriction

Christian Kuhn CR +2 V +2 Hard +212 −52 updated 09/07/20, 14:38

Commit message

The PlainDataResolver is used to find overlay id's of live
id's in workspace context. One usage is the ReferenceIndex.

In scenarios 'modify content, discard content, modify again'
with relations, the PlainDataResolver sometimes fetches rows
that have been set to deleted (discarded) already together
with the rows that should be fetched. Depending on the order
of the result rows - which depends on the DBMS - wrong overlay
rows are calculated sometimes.

The patch adds a database DeletedRestriction at 3 of 4 places
in the PlainDataResolver to only fetch correct rows. The last
place triggers another side-effect that needs to be tackled
with another patch and is commented as @todo for now.

The tests add missing sys_refindex rows to the 6 tests that
failed on postgres before. Additionally, for some other
IRRE/CSV workspace tests, the sys_refindex changes slightly
and is more correct now.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 19