Skip to content

Conversation

SebastianGode
Copy link
Member

No description provided.

otc-zuul[bot]
otc-zuul bot previously approved these changes Oct 5, 2020
@SebastianGode SebastianGode added the enhancement New feature or request label Oct 5, 2020

# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Collaborator

Choose a reason for hiding this comment

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

double loop (and popping from array) is not good. Merge this into prev loop

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you have an Idea how I can merge that into the previous loop?
And why is that bad? Those aren't double loops, the runtime should be still linear O(n).
@gtema


# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Collaborator

Choose a reason for hiding this comment

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

and again - merge loops

query = {}

if self.params['zone_type']:
query['zone_type'] = self.params['zone_type']
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Member Author

@SebastianGode SebastianGode Nov 3, 2020

Choose a reason for hiding this comment

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

@gtema I looked at our doc under https://docs.otc.t-systems.com/en-us/api/dns/dns_api_62002.html and there nothing of that is written. WIll change that

Update: When requesting with e.g. the Query Parameter "name" which is supported according to the OpenStack Docu, it doesn't work.
"msg": "Invalid query params: name"


# Filter data by deleting all entries without the right criteria
i = 0
while i < len(data):
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@SebastianGode
Copy link
Member Author

Don't merge this yet.
Merge DNS Modules first

@SebastianGode
Copy link
Member Author

recheck

3 similar comments
@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

2 similar comments
@SebastianGode
Copy link
Member Author

recheck

@SebastianGode
Copy link
Member Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants