Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tapdb/universe: fix universe event logging for grouped assets #348

Merged
merged 1 commit into from
Jun 12, 2023

Commits on Jun 8, 2023

  1. tapdb/universe: fix universe event logging for grouped assets

    In this commit, we fix the universe event logging for grouped assets. As
    is, when we go to insert assets with a group, then the "first" inserted
    asset is what's known as the `asset_id` in the `universe_roots` table.
    When we go to log a proof insert/sync event, and the even only has an
    asset ID, we may end up with a failed query, as only the "first" asset
    ID would return the row we want.
    
    In order to fix this, rather than trying to match the asset ID with a
    root, we instead find the _leaf_ for that asset ID, then use that to get
    the primary key of the universe root via it's foreign key ref.
    Roasbeef committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    ac26377 View commit details
    Browse the repository at this point in the history