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

Resource variable log waring if variable id null #788

Merged

Conversation

HuyPhanNguyen
Copy link
Collaborator

When calling variable, err := variables.GetByID(r.Config.Client, data.SpaceID.ValueString(), variableOwnerID.ValueString(), data.ID.ValueString()), if data.ID is null or empty, the variable service returns an errInvalidVariableServiceParameter. This PR reverts to the previous behavior where we return early without adding a Diagnostics error log, but instead add a Warning log. This change allows users to decide whether to proceed further based on the warning.

Fixes-785

Copy link
Collaborator

@IsaacCalligeros95 IsaacCalligeros95 left a comment

Choose a reason for hiding this comment

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

LGTM, sorry I missed this the other day.

@HuyPhanNguyen HuyPhanNguyen merged commit d2f1fd3 into main Sep 30, 2024
22 checks passed
@HuyPhanNguyen HuyPhanNguyen deleted the bugfix/issues-785-log-waring-if-variable-id-null branch September 30, 2024 23:42
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.

2 participants