Skip to content

experiment: data inspection via fabricated view queries#5796

Draft
crusso wants to merge 22 commits intomasterfrom
claudio/data-view
Draft

experiment: data inspection via fabricated view queries#5796
crusso wants to merge 22 commits intomasterfrom
claudio/data-view

Conversation

@crusso
Copy link
Contributor

@crusso crusso commented Jan 21, 2026

Generates one query method per stable variable that has a .view pagination method or shared type.

Hacky but working. Limited to non-nested collections.

Basic demo here https://github.com/crusso/motoko-stable-viewer (requires some setup)

  • builds fine locally - no idea why CI
  • restore authentication code - disabled for dfx demo
  • test
  • consider approximating non-shared by shared types, to enable more viewing.
  • pagination could use optional count, to show all (remaining) values by default

@crusso crusso mentioned this pull request Feb 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Comparing from 33686ba to a841281:
In terms of gas, 1 tests regressed and the mean change is +0.0%.
In terms of size, 1 tests regressed and the mean change is +0.4%.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant