๐Ÿ’ปModule Differentiation using UI

1. Modules differentiation

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:

1.1 Result of comparison:

1.1.1 Params

  1. โ€œ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

  2. โ€œ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

  3. โ€œ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

  4. โ€œ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_._

1.2.2 Sections

  1. โ€œDescriptionโ€ โ€“ module description

  2. โ€œModule Blocksโ€ โ€“ comparison results for the block structures

  3. โ€œInput Eventsโ€ โ€“ comparison results for the incoming events

  4. โ€œ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

  1. โ€œGreenโ€ โ€“ blocks are identical, including their child blocks

  2. โ€œGreen/Yellowโ€ โ€“ blocks are identical, but the child blocks have differences

  3. โ€œYellowโ€ โ€“ blocks are partially identical

  4. โ€œRedโ€ โ€“ no matching blocks found

Block comparison structure can be expanded to view the comparison of their Properties:

      1. ะคะพั€ะผะฐั‚ ะดะฐะฝะฝั‹ั…

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

Last updated