Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

ReadZoneConfiguration() refactoring#26

Merged
tr1ck3r merged 2 commits intomasterfrom
read-zone-refactor
Oct 29, 2020
Merged

ReadZoneConfiguration() refactoring#26
tr1ck3r merged 2 commits intomasterfrom
read-zone-refactor

Conversation

@rvelaVenafi
Copy link
Copy Markdown
Contributor

Updated the readZoneConfiguration() method to use the specific api calls to retrieve the zone by Id instead of retrieving all projects and iterating over them. This optimization reduces the time required for the method to complete.

However, the update only works for zone ID's. The readZoneConfiguration also supports looking for a zone by project_name\zone_name. In this scenario, there is no other option that iterate all proijects to match the name and then iterate all project zones.

Instead of getting all the projects and iterating them, now it directly calls an api method to get the zone filtered by Id.
This update only works when the zone id is passed as argument.

When the project_name\zone_name is passed as argument, the method still retrieves all projects and iterates over them to match the project name and zone name.
Instead of getting all the projects and iterating them, now it directly calls an api method to get the zone filtered by Id.
This update only works when the zone id is passed as argument.

When the project_name\zone_name is passed as argument, the method still retrieves all projects and iterates over them to match the project name and zone name.
@rvelaVenafi rvelaVenafi changed the title Read zone refactor ReadZoneConfiguration() refactoring Oct 29, 2020
Copy link
Copy Markdown
Contributor

@angelmoo angelmoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good.

@tr1ck3r tr1ck3r merged commit 9ef9fb4 into master Oct 29, 2020
@tr1ck3r tr1ck3r deleted the read-zone-refactor branch October 29, 2020 21:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants