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

Isset purchase update fix #416

Merged
merged 21 commits into from
Jul 12, 2024
Merged

Isset purchase update fix #416

merged 21 commits into from
Jul 12, 2024

Conversation

hardikmashru
Copy link
Collaborator

@hardikmashru hardikmashru commented Jul 5, 2024

JIRA Ticket(s) if any

Description

  • Added support for isSet
  • Added unit tests for isSet

Copy link
Contributor

@mprew97 mprew97 left a comment

Choose a reason for hiding this comment

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

Few minor change requests, otherwise looks good. Thanks for the tests!!

Object.keys(item).includes(searchQuery.field)
);
const filteredSearchQueries = [];
for (let i = 0; i < searchQueries.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know we need to add some lint rules to prevent some of these back and forths we have on PRs, but please use array methods over for loops when possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done

@@ -439,6 +470,16 @@ class CriteriaCompletionChecker {
}
}

private issetCheck(matchObj: any): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is a json obj,

Suggested change
private issetCheck(matchObj: any): boolean {
private issetCheck(matchObj: Record<any,any>): boolean {

Copy link
Contributor

Choose a reason for hiding this comment

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

not a json object.

Copy link
Contributor

Choose a reason for hiding this comment

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

then what is it? would prefer to be explicit here

Copy link
Contributor

Choose a reason for hiding this comment

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

please properly type this. after that is done, can merge.

@hardikmashru
Copy link
Collaborator Author

hardikmashru commented Jul 11, 2024 via email

Base automatically changed from MOB-8960 to AUT_main July 11, 2024 18:56
@mprew97 mprew97 merged commit 06c55d9 into AUT_main Jul 12, 2024
1 check passed
@mprew97 mprew97 deleted the isset-purchase-update-fix branch July 12, 2024 16:13
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.

3 participants