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

Check all items in lists #164

Merged

Conversation

JustinKuli
Copy link
Member

@JustinKuli JustinKuli commented Oct 10, 2023

The existing test used both `mergeArrays` and `checkListsMatch`. Those
were split, to make it a bit more clear what is being asserted.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Copy link
Member

@dhaiducek dhaiducek left a comment

Choose a reason for hiding this comment

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

Approving (while fully knowing I'm going to have to rebase my PR's tests on this code... 🥴 )

@dhaiducek
Copy link
Member

/hold

@dhaiducek
Copy link
Member

I'm not sure that's the right Jira issue...

Refs:
 - https://issues.redhat.com/browse/ACM-7889

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Some of the logic in the `checkListsMatch` function does not require the
copies of the inputs to be created or sorted. This does those checks
first, potentially skipping the unnecessary work.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
From some debugging for an issue, it became apparent that this function
was not actually being called in situations where it might have been
expected... Basically the switch case that might have called it is not
reachable.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@JustinKuli
Copy link
Member Author

Good catch, I meant to write 7889, not 7899

Copy link
Member

@dhaiducek dhaiducek left a comment

Choose a reason for hiding this comment

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

/unhold

@openshift-ci
Copy link

openshift-ci bot commented Oct 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhaiducek, JustinKuli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JustinKuli,dhaiducek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot merged commit 325af48 into open-cluster-management-io:main Oct 12, 2023
4 checks passed
@JustinKuli JustinKuli deleted the 7899-list-checking branch July 25, 2024 13:41
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.

2 participants