-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix: log when tenant not associated to common variable template #792
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.
Overall logic looks good.
Put some comments down on some Go things.
I would like to know more about what you mean here.
My suggestion here would be to return a |
Flipping the logical "polarity" of the checks between the three conditions feels a little off. By that, I mean that in the first one - checking if the Tenant is connected to any Projects - I'm returning an error condition; then, I'm looking for a positive condition in the loop that searches for the template and returning
but instead I'm doing
So it's fine, it just doesn't feel nice. Happy for any suggestion on how to improve this; I couldn't think of anything. |
Also, what are these iffy-loops and where is LINQ? 🤪 |
Add better detection and a better error message when trying to provide a value for a Common Variable Template, but the Tenant has not yet been connected to a Project that includes the Library Set that defines the template.
fixes #790
How to review
golang
or a better approach.