Skip to content

Add the ability to search across Disconnected Identities during Social Discovery #330

@emmacasolin

Description

@emmacasolin

Specification

The identities search command was properly implemented in #320, however, it was left incomplete with only the ability to search across connected identities. The intended usage of the identities search command is as follows:

Usage: polykey identities search [options] [searchTerms...]

Searches a Provider for any Connected Identities

Arguments:
  searchTerms                         Search parameters to apply to connected identities

Options:
  -pi, --provider-id [providerId...]  Digital identity provider(s) to search on
  -ii, --identity-id [identityId]     Name of the digital identity to search for
  -d, --disconnected                  Include disconnected identities in search
  -l, --limit [number]                Limit the number of search results to display to a specific number

However, attempting to use the --disconnected flag will currently result in the ErrorProviderUnimplemented error being thrown, since we have no way of searching across disconnected identities. Like searching across connected identities, the definition of 'disconnected identities' is provider-specific. Since we currently only support GitHub as a provider, this issue only needs to define disconnected identities (and the implementation for searching across them) for GitHub.

Additional context

Tasks

  1. Modify the Provider interface to add a method for searching across disconnected identities
  2. Implement searching across disconnected identities for the GitHub provider

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions