Skip to content

feat: Method for Defining hash of Entire record to be the PK #9423

@bbernays

Description

@bbernays

Which problem is this feature request solving?

Some records have no subset of fields that uniquely identify a record, sometimes it is valuable to be able to store a hash of the entire record as the primary key. In those scenarios individual tables should not have to define their own resolver to do this as this should be a generic functionality that is used across many tables and plugins.

Describe the solution you'd like

I thought at this should be implemented in the SDK as a column resolver but after investigating it further realized that it cannot be a column resolver because column resolvers get called in a non deterministic manner and also the hashing would need to get done after PostResourceResolver is evaluated as well as that to can update the record as well.

By generalizing this functionality in the SDK we can help users avoid using libraries like hashstructure which rely on go runtime implementations rather than methods that can be implemented in other languages

Pull request (optional)

  • I can submit a pull request

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