Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

added methods searchEntities and searchItemValues#103

Merged
guergana merged 3 commits into
masterfrom
search-ItemValues
Dec 17, 2020
Merged

added methods searchEntities and searchItemValues#103
guergana merged 3 commits into
masterfrom
search-ItemValues

Conversation

@guergana
Copy link
Copy Markdown
Contributor

this method is called by public searchProperties and searchItems methods:
adjust the repository to also allow querying for items
Add an action to use the repository to query for items
Updated searchEntityRepo interfase
Updated tests that use createActions
Added tests specific to the method searchItemValues

this method is called by public searchProperties and searchItems methods:
adjust the repository to also allow querying for items
Add an action to use the repository to query for items
Updated searchEntityRepo interfase
Updated tests that use createActions
Added tests specific to the method searchItemValues
Comment thread src/store/actions.ts Outdated
Copy link
Copy Markdown
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

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

Nice! There are just some minor things to adjust

Comment thread src/store/actions.ts Outdated
Comment thread src/store/actions.ts Outdated
expect( repo.searchItemValues( 'John Smith' ) ).rejects.toThrow( expectedError );
} );

it( 'throws an error if there is a server side problem fetching a property', () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No, this test should be about network errors, not server errors

Copy link
Copy Markdown
Contributor Author

@guergana guergana Dec 17, 2020

Choose a reason for hiding this comment

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

I deleted that one by accident it seems. Also duplicated one. It's a copy and paste mistake. Will fix.

Comment thread tests/unit/store/actions.spec.ts Outdated
guergana and others added 2 commits December 17, 2020 15:17
Co-authored-by: Michael Große <michael.grosse@wikimedia.de>
Copy link
Copy Markdown
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

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

Thank you 😊

@guergana guergana merged commit 9f19451 into master Dec 17, 2020
@guergana guergana deleted the search-ItemValues branch December 17, 2020 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants