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

Revert the way config elements are mocked to 2.33.0 functionality #265

Merged
merged 3 commits into from
May 23, 2024

Conversation

pe1pip
Copy link
Contributor

@pe1pip pe1pip commented Apr 19, 2024

Description

Revert the way config elements are mocked to 2.33.0 functionality

Checklist

  • [ x] I have added relevant error handling and logging messages to help troubleshooting
  • [ x] I have added tests that prove my fix is effective or that my feature works
  • [ x] I have added necessary documentation, relevant usage information (if applicable)
  • [ x] I have updated CHANGELOG.md with a short summary of the changes introduced
  • [ x] I have tested against live environment, if applicable
  • [ x] I have synced any structure and/or content vRA-NG improvements with vra-ng and ts-vra-ng archetypes (if applicable)
  • [ x] I have my changes rebased and squashed to the minimal number of relevant commits. Notice: don't squash all commits
  • [x ] I have added a descriptive commit message with a short title, including a Fixed #XXX - or Closed #XXX - prefix to auto-close the issue

Testing

mvn test in vro-scripting-api was successful

Release Notes

Revert the way config elements are mocked to 2.33.0 functionality

Related issues and PRs

Issue #149

Signed-off-by: Remco Post <Remco.Post@rabobank.nl>
Signed-off-by: Remco Post <Remco.Post@rabobank.nl>
@pe1pip pe1pip requested a review from a team as a code owner April 19, 2024 11:58
@vmwclabot
Copy link
Member

@pe1pip, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

1 similar comment
@vmwclabot
Copy link
Member

@pe1pip, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@vmwclabot
Copy link
Member

@pe1pip, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

1 similar comment
@vmwclabot
Copy link
Member

@pe1pip, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

const attribute: any = this.attributes != null ? this.attributes.find(a => a.name === key) : [];


const attribute = this.attributes.find(a => a.name === key);
Copy link
Contributor

Choose a reason for hiding this comment

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

You can do a in-line null check with this.attributes?.find(a => a.name === key)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I appreciate the fix, the code is from BT 2.33.0, so I assume that this has always been correct.

@VenelinBakalov
Copy link
Collaborator

Hi @pe1pip , I had an internal discussion with the team, let's get this merged to unblock you.
Just check the comment above from @akantchev - whether you need to add a null check or you are sure that there won't be null values.

@VenelinBakalov VenelinBakalov merged commit 95dc073 into vmware:main May 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants