[ https://issues.apache.org/jira/browse/ATLAS-5080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18009968#comment-18009968 ]
ASF subversion and git services commented on ATLAS-5080: -------------------------------------------------------- Commit d596a1490a4a8b5623cf131646707a330500856a in atlas's branch refs/heads/master from Madhan Neethiraj [ https://gitbox.apache.org/repos/asf?p=atlas.git;h=d596a1490 ] ATLAS-5080: improve readability of typedef model files (#412) > Improve readability of typedef model files > ------------------------------------------ > > Key: ATLAS-5080 > URL: https://issues.apache.org/jira/browse/ATLAS-5080 > Project: Atlas > Issue Type: Improvement > Components: atlas-core > Reporter: Madhan Neethiraj > Assignee: Madhan Neethiraj > Priority: Major > Fix For: 3.0.0, 2.5.0 > > Time Spent: 20m > Remaining Estimate: 0h > > Atlas reads type-definitions from model files, in json format, during > bootstrap and loads the type-definitions into Atlas databae. These model > files can be very long and sparse, making it difficult to read at a glance. > It will be a lot easier to read if contents are condensed, as shown below: > currnet: > {noformat} > { > "name": "atlas_operation", > "description": "Defines audit operations in Atlas", > "typeVersion": "1.0", > "serviceType": "atlas_core", > "elementDefs": [ > { > "ordinal": 0, > "value": "OTHERS" > }, > { > "ordinal": 1, > "value": "PURGE" > }, > { > "ordinal": 2, > "value": "EXPORT" > }, > { > "ordinal": 3, > "value": "IMPORT" > }, > { > "ordinal": 4, > "value": "IMPORT_DELETE_REPL" > }, > { > "ordinal": 5, > "value": "TYPE_DEF_CREATE" > }, > { > "ordinal": 6, > "value": "TYPE_DEF_UPDATE" > }, > { > "ordinal": 7, > "value": "TYPE_DEF_DELETE" > }, > { > "ordinal": 8, > "value": "SERVER_START" > }, > { > "ordinal": 9, > "value": "SERVER_STATE_ACTIVE" > } > ] > } > {noformat} > > proposed: > {noformat} > { > "name": "atlas_operation", > "description": "Defines audit operations in Atlas", > "typeVersion": "1.0", > "serviceType": "atlas_core", > "elementDefs": [ > { "ordinal": 0, "value": "OTHERS" }, > { "ordinal": 1, "value": "PURGE" }, > { "ordinal": 2, "value": "EXPORT" }, > { "ordinal": 3, "value": "IMPORT" }, > { "ordinal": 4, "value": "IMPORT_DELETE_REPL" }, > { "ordinal": 5, "value": "TYPE_DEF_CREATE" }, > { "ordinal": 6, "value": "TYPE_DEF_UPDATE" }, > { "ordinal": 7, "value": "TYPE_DEF_DELETE" }, > { "ordinal": 8, "value": "SERVER_START" }, > { "ordinal": 9, "value": "SERVER_STATE_ACTIVE" } > ] > } > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)