Madhan Neethiraj created ATLAS-5080:
---------------------------------------

             Summary: 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


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)

Reply via email to