π»Module Differentiation using UI
Last updated
Last updated
To compare the modules, click on Compare button in the Modules page as shown below:
Once, compare button is clicked, we need to select the first and second modules to compare:
βEventsβ β configures how differences in Events impact block comparison logic
βDon't compareβ β event differences do not have effect on the block comparison
βAll eventsβ β event differences contributed to the decision of block comparison
βPropertiesβ β configures how differences in Properties impact block comparison logic
βDon't compareβ β Properties comparison results do not have any effect on the block comparison logic. (Only tag and block type are impactful for comparison).
βOnly simple propertiesβ β only simple Properties impact block comparison results
βAll propertiesβ β all Properties at all layers impact block comparison results
βChildrenβ β configures if/how child blocks impact the comparison of the parent blocks
βDon't compareβ β differences in child blocks do not impact the comparison results of the parent blocks
βOnly child blocks of the first levelβ β only immediate children differences impact the comparison results of the parent blocks
βAll childrenβ β comparison results of all children in all layers are impactful on the results of the parent block comparison
βUUIDβ β configures if/how UUID and Hedera ID impact the comparison of the blocks
βDon't compareβ β differences in UUID and Hedera ID (of schemas, tokens, topics, etc) do not impact the comparison results of the blocks.
βAll UUIDβ β differences in UUID and Hedera ID are included in the comparison. When this option is enabled, for example, 2 tokens would be considered to be different even if their settings are absolutely the same. This is because their Hedera Token IDs would be different_._
βDescriptionβ β module description
βModule Blocksβ β comparison results for the block structures
βInput Eventsβ β comparison results for the incoming events
βOutput Eventsβ β comparison results for the outgoing events
Color legend _β_ the mapping of the meaning/description of available block colors with the ability to switch on/off types
βGreenβ β blocks are identical, including their child blocks
βGreen/Yellowβ β blocks are identical, but the child blocks have differences
βYellowβ β blocks are partially identical
βRedβ β no matching blocks found
Block comparison structure can be expanded to view the comparison of their Properties:
Data Format
POST: /analytics/compare/modules
Input:
{
"moduleId1":"63β¦β¦..1d7c" β ID of the first module
"moduleId2":"63β¦β¦..1d7c" β ID of the second module
"eventsLvl":"0" β depth (level) of Event comparison (0/1)
"propLvl":"0" β depth (level) of Properties comparison (0/1/2)
"childrenLvl":"0" β depth (level) of child block comparison (0/1/2)
"idLvl":"0" β depth (level) of uuid comparison (0/1)
}
Output:
{
"left" β information about the first policy
"right " β information about the second policy
"blocks" β table with block comparison results
}
POST: /analytics/compare/modules/export?type=csv
Input:
{
"moduleId1":"63β¦β¦..1d7c" β ID of the first module
"moduleId2":"63β¦β¦..1d7c" β ID of the second module
"eventsLvl":"0" β depth (level) of Event comparison (0/1)
"propLvl":"0" β depth (level) of Properties comparison (0/1/2)
"childrenLvl":"0" β depth (level) of child block comparison (0/1/2)
"idLvl":"0" β depth (level) of uuid comparision (0/1)
}
Output:
Ρsv file