Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

feat: implement fetchIdentityIdsByPublicKeys method #385

Merged
merged 3 commits into from
Sep 16, 2020

Conversation

jawid-h
Copy link
Contributor

@jawid-h jawid-h commented Sep 10, 2020

Issue being fixed or feature implemented

As per new identity DIP we need a method to retrieve identity id by any public key hash

What was done?

Added DriveStateRepository#fetchIdentityIdsByPublicKeys method

How Has This Been Tested?

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@jawid-h jawid-h added this to the v0.16 milestone Sep 10, 2020
*
* @returns {Promise<Object>}
*/
async fetchIdentityIdsByPublicKeys(publicKeyHashes) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe identityPublicKeyHashes?

Copy link
Member

@shumkov shumkov Sep 10, 2020

Choose a reason for hiding this comment

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

Agree. Something like fetchIdentityIdsByPublicKeyHashes?

@@ -55,6 +55,18 @@ class CachedStateRepositoryDecorator {
return this.stateRepository.fetchPublicKeyIdentityId(publicKeyHash);
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shumkov I would like to leave it to keep tests working. After we merge it, we update tests, and then remove this method as a separate PR. This will save us some nerves.

Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

@jawid-h jawid-h merged commit 195b5b8 into v0.16-dev Sep 16, 2020
@jawid-h jawid-h deleted the feat/fetchIdentityIdsByPublicKeys branch September 16, 2020 09:00
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.

3 participants