Skip to content
Snippets Groups Projects

#385: Refactor id/lookup command using exclusively /wot/lookup

Merged #385: Refactor id/lookup command using exclusively /wot/lookup
Merged Moul requested to merge 385_id_display_non_member_uids into dev
  • Display non-member uids when passing a pubkey
  • Use same algorithm as choose_identity() uses
    • Will display multiple time the pubkey and the differents uids if there is multiple uids linked to this pubkey
  • The uids were already in /wot/lookup/
  • Remove identity_of() call which can only get member uids
  • Rename pubkey(s) to lookup(s)
  • When passing a uid, use /wot/lookup/ instead of identity_of() which only gets member uids
  • Rename variable, rename command description
  • Use f-string, use one click.echo() call
  • Rename id command to lookup:
    • Makes more sense and the identity cmd is about to be created

Will be cherry-pick to 0.9 branch and released if v0.9.0 in no additional rc is required.

Close #385 (closed).

Edited by Moul

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Moul changed title from #385 (closed): id: Display non-member uids to #385 (closed): Refactor id command using exclusively /wot/lookup

    changed title from #385 (closed): id: Display non-member uids to #385 (closed): Refactor id command using exclusively /wot/lookup

  • Moul changed the description

    changed the description

    • Author Owner
      Resolved by Moul

      Regarding the Titi thing, this is a BMA issue. Let's address it in GVA if encountered.


      This change is becoming too big to enter a RC since we say we wanted to freeze the code. Though it should be safe to introduce this change in v0.9.0. It also bring something valuable. This could also be the occasion to write tests for this command. Should we release this change in v0.9.0 or in v0.10.0?

      I was thinking about renaming this command to lookup since it's exclusively using /wot/lookup and it makes more sense than id. What do you think?

      Edited by Moul
  • Moul added 1 commit

    added 1 commit

    Compare with previous version

  • matograine resolved all threads

    resolved all threads

  • matograine approved this merge request

    approved this merge request

  • matograine assigned to @moul and unassigned @matograine

    assigned to @moul and unassigned @matograine

  • matograine unapproved this merge request

    unapproved this merge request

  • Moul changed title from #385 (closed): Refactor id command using exclusively /wot/lookup to #385 (closed): Refactor id/lookup command using exclusively /wot/lookup

    changed title from #385 (closed): Refactor id command using exclusively /wot/lookup to #385 (closed): Refactor id/lookup command using exclusively /wot/lookup

  • Moul changed the description

    changed the description

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading