Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finder/Reader to read the specific path from json file #12

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

jyejare
Copy link
Member

@jyejare jyejare commented Feb 28, 2024

A reader / finder module to read a specific path from pre / post json files to get more details about the entity reported in comparision.

E.g hosts/9/reported_time is under the variation and one wants to what is the hostname of ID:9 and other details one can do that using this module.

On Terminal # candore reader --path hosts/9 --data-file pre_entities.json

Here is the example :

  1. If the variation is :

Variation: content_view_versions/179/environments/39/publish_date   
PreUpgrade: 8 minutes
PostUpgrade: 29 minutes

and in this example if you want to know the details about environment of id: 39

  1. With pre-upgrade file u can do:
# candore reader --path content_view_versions/179/environments/39  --data-file pre_entities_6.14.json 
{'activation_key_count': 0,
 'host_count': 0,
 'id': 39,
 'label': 'Library',
 'name': 'Library',
 'permissions': {'all_hosts_editable': True,
                 'all_keys_editable': True,
                 'promotable_or_removable': True,
                 'readable': True},
 'publish_date': '8 minutes'}

  1. With post-upgrade files u can do:
# candore reader --path content_view_versions/179/environments/39  --data-file post_entities_6.15.json 
{'activation_key_count': 0,
 'host_count': 0,
 'id': 39,
 'label': 'Library',
 'name': 'Library',
 'permissions': {'all_hosts_editable': True,
                 'all_keys_editable': True,
                 'promotable_or_removable': True,
                 'readable': True},
 'publish_date': '29 minutes'}

Now you can easily compare the pre and post data with more details on entity that has a variant!

@jyejare jyejare force-pushed the finder_submodule branch from a581c10 to 8b15a16 Compare March 5, 2024 11:06
@jyejare jyejare merged commit ba13675 into SatelliteQE:master Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant