-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add support for studios and data-links #202
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All seems pretty straightforward. The method is a bit unclear and I think some additional comments or docstrings would help.
for resource in resources: | ||
if resource_type == "labels": | ||
if resource.get("name") == utils.resolve_env_var(name) and resource.get( | ||
"value" | ||
) == utils.resolve_env_var(value): | ||
return resource.get("id") | ||
elif resource_type == "data-links": | ||
if resource.get("name") == utils.resolve_env_var(name): | ||
return resource.get("id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not very clear what this bit is doing and why it's needed. Might need to expand the docstrings and comments to explain it's purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added detail to the docstring for clarity.
Re #201