Don't store $db in reference

Description

Background

Currently, all references in Integrated contain the database name. In many cases, this name is different from the current database, because data has been migrated.

The $db is optional: https://docs.mongodb.com/manual/reference/database-references/#dbrefs

It is recommended not to use the $db field:
"For backwards compatibility storeAs=dbRefWithDb is the default, but storeAs=dbRef is the recommended setting."
http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/reference-mapping.html

Requirements

  • Set storeAs=dbRef for all references currently using the default storeAs=dbRefWithDb

  • We expect this does not affect current installations, in case we are wrong the migration script will be a separate issue

Deployment actions

None

Technical tasks

There are 60 places in the code to change this.

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

None

Code reviewer

None

Max. hours

9

Error message

None

Follow up date

None

Switches

None

Refiner

Michael Jongman

Story Points

2

Time tracking

7h 45m

Epic Link

Fix versions

Priority

Major