-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72288/
-----------------------------------------------------------

Review request for atlas, Ashutosh Mestry, Na Li, Mandar Ambawane, mayank, 
Nikhil Bonte, Nixon Rodrigues, Pinal Shah, Sarath Subramanian, and Sidharth 
Mishra.


Bugs: ATLAS-3700
    https://issues.apache.org/jira/browse/ATLAS-3700


Repository: atlas


Description
-------

Added 'isAppendOnPartialUpdate' option in attribute-def, to enable appending of 
values to array/map type attributes during partial-update operation. Example:

  {
    "name":        "metadata",
    "typeName":    "map<string,string>",
    "isIndexable": false,
    "isOptional":  true,
    "isUnique":    false,
    "options": {
      "isAppendOnPartialUpdate": "true"
    }
  }

The value specified for this attribute in partial-update API calls will be 
appended to existing value - if present. Full-update API calls will overwrite 
the value of the attribute, as it does currently; there is no change in 
full-update behavior.


Diffs
-----

  
intg/src/main/java/org/apache/atlas/model/instance/EntityMutationResponse.java 
1434a2459 
  intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java 
1d4e37b05 
  intg/src/test/java/org/apache/atlas/TestUtilsV2.java 7ec2b87e3 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
 75b016cca 
  
repository/src/test/java/org/apache/atlas/repository/store/graph/v2/AtlasComplexAttributesTest.java
 b682e8673 


Diff: https://reviews.apache.org/r/72288/diff/1/


Testing
-------

- added tests to cover the new scenarios introduced by the new option:
- pre-commit tests run: 
https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/1779/


Thanks,

Madhan Neethiraj

Reply via email to