Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Omnigraph: PermissionsUser.events (per-role event history) #1963

Description

@shrugs

Problem

Portal's /$name/roles/ and /resolver/$address/roles/ views want per-role-assignment history: "which events granted/revoked/modified this specific role entry for this user". Today the closest Omnigraph query is Permission.events(where: { selector }), which returns all role-mutation events for a permission and requires the client to filter by account + resource.

Proposal

Expose event history directly on the PermissionsUser (role assignment) entity:

type PermissionsUser {
  # existing fields...
  events(first: Int, skip: Int): [Event!]!
}

Returns the chronological list of events (grants, revokes, role-bitmap mutations) that produced the current state of this specific (user, resource, permission) tuple.

Notes

  • Indexer already has the association at ingest time — PermissionsUser is the aggregation of those events.
  • Equivalent today: Permission.events(where: { selector }) filtered client-side by account == user. The proposal collapses that.
  • Useful for both name roles (registry) and resolver permissions.

Consumers

  • apps/portal/ /$name/roles/ (per-user role change log)
  • apps/portal/ /resolver/$address/roles/ (same)

Activity

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

    ensapiENSApi related

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions