Skip to content

"lookup_resource" macro should support different primary keys #847

Closed

Description

@davepacheco

See #845. We want the new lookup API to support a few more cases:

  • where there's a composite primary key (e.g., for built-in roles and update artifacts) and "id" is usually not present
  • where there's no "name" column (e.g., for sleds, silo users)

Activity

  1. davepacheco commented on Apr 13, 2022

    @davepacheco
    CollaboratorAuthor

    This winds up being kind of a blocker for ssh key support (see #849) because SiloUser does not have a name column and it doesn't really make sense for it to have one. (The closest thing would be "external id". Even if we add this, it should have a more specific name than "name" (to distinguish it from "username", "first name", "surname", etc., and so that people realize it's not the same kind of "name" that all the other resources have) and it would definitely have a different type (since "Name" is highly specific to the requirements in RFD 4).)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions