|
updatedRegistryOrg = _.mergeWith(registryOrg, registryObjectRaw, skipNulls) |
The required behavior is that optional fields (i.e., ones not marked as required by files such as BaseOrg.json in the src/middleware/schemas directory) remain optional even if they were previously found in a stored document, such as the stored document retrieved here:
|
const registryOrg = await this.findOneByShortName(shortName, options) |
For example, there are realistic cases where an organization first identifies with a specific country, but then insists that it is no longer associated with a country because it wants to present itself (both within the CVE Program and elsewhere) as a "global company." There should not be a merge that ends up with the obsolete cna_country value solely because no other merge source has a property assignment for cna_country.
cve-services/src/repositories/baseOrgRepository.js
Line 774 in 1df06cb
The required behavior is that optional fields (i.e., ones not marked as required by files such as BaseOrg.json in the src/middleware/schemas directory) remain optional even if they were previously found in a stored document, such as the stored document retrieved here:
cve-services/src/repositories/baseOrgRepository.js
Line 729 in 1df06cb
For example, there are realistic cases where an organization first identifies with a specific country, but then insists that it is no longer associated with a country because it wants to present itself (both within the CVE Program and elsewhere) as a "global company." There should not be a merge that ends up with the obsolete cna_country value solely because no other merge source has a property assignment for cna_country.