We're updating the issue view to help you get more done. 

Still unchanged documents in content history

Description

Background

In INTEGRATED‌-1331 changes have been made to avoid storing content history changes for null values for new variables. However, this is still a problem.

Requirements

  • Empty values

    • Values that are not set, are set with "null", so this problem is not present for the first level. This does however not work for values with multiple levels, so this check should be recursive.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 // collection: content_history { "_id" : "4dffab413a57354c88f91933e25e1507", "contentId" : "3907af99b3003b3c922989e076c59bd6", "contentType" : "company", "contentClass" : "Zkn\\Bundle\\ContentBundle\\Document\\Relation\\Company", "action" : "update", "date" : ISODate("2018-11-15T15:32:03.485+01:00"), "changeSet" : { "phonenumbers" : [ [ { "number" : "0612345678" } ], [ { "type" : null, "number" : "0612345678" } ] ], "address" : [ { "street" : "Straat", "houseNumber" : "13", "zipCode" : "1000AB" }, { "street" : "Straat", "houseNumber" : "13", "houseNumberAddition" : null, "zipCode" : "1000AB" } ] } }

Environment

None

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Client

Integrated Marijn

External issue ID

None

Follow up date

None

Code reviewer

Ger Jan van den Bosch

Developer

Michael Jongman

Plan date

None

Max. hours

13

Error message

None

Min. hours

11

Product owner

Marijn Otte

Refiner

None

Switches

None

Dev hour estimate

None

Story Points

3

Time tracking

10h 45m

Epic Link

Priority

Major