Skip to content

measurements: add context measurement retrieval and listing queries - #22

Merged
Kzoeps merged 12 commits into
mainfrom
queries/measurements
Oct 6, 2026
Merged

Kzoeps merged 12 commits into
mainfrom
queries/measurements

Conversation

@Kzoeps

@Kzoeps Kzoeps commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Scope

Adds public org.hypercerts.context.getMeasurement and org.hypercerts.context.listMeasurements endpoints with author/subject filters, timestamp fallback ordering, cursor pagination, publisher hydration, and HTTP/unit coverage.

Validation

  • Offline pnpm test:unit: 104/104 tests passed; pnpm check and pnpm build passed locally.
  • Local pnpm test:http was not run. Unit tests use local fixtures/fake adapters and do not install handlers, seed PostgreSQL, or contact HappyView. CI HTTP coverage exercises real XRPC over HTTP against the installed HappyView + PostgreSQL test environment; its result is pending from PR creation.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-endpoints Ready Ready Preview Oct 6, 2026 3:29pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1fd9311e-239e-4079-bbb0-338a994b9857
📥 Commits

Reviewing files that changed from the base of the PR and between e7a5025 and 3f1098b.

📒 Files selected for processing (19)
  • CONTRIBUTING.md
  • README.md
  • api/README.md
  • api/lexicons/org.hypercerts.context.getMeasurement.json
  • api/lexicons/org.hypercerts.context.listMeasurements.json
  • api/lua/endpoints/getMeasurement.lua
  • api/lua/endpoints/listMeasurements.lua
  • api/lua/shared/measurementQuery.lua
  • api/lua/src/getMeasurement.lua
  • api/lua/src/listMeasurements.lua
  • api/manifest.json
  • api/modules/context-measurements/manifest.json
  • api/modules/shared/manifest.json
  • api/tests/http/context-measurements.http.test.js
  • api/tests/http/fixtures/context-measurements.fixture.js
  • api/tests/unit/context-measurements/measurements.lua
  • api/tests/unit/context-measurements/measurements.test.js
  • api/tests/unit/fixtures/http-seed-rows.test.js
  • api/tests/unit/tooling/lexicons.test.js
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@changeset-bot

changeset-bot Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3f1098b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

…measurements

# Conflicts:
#	CONTRIBUTING.md
#	api/manifest.json
#	api/tests/unit/fixtures/fixtures.test.js
@Kzoeps
Kzoeps marked this pull request as ready for review October 6, 2026 13:04
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@Kzoeps
Kzoeps merged commit 9ebe7cb into main Oct 6, 2026
7 of 8 checks passed
@Kzoeps
Kzoeps deleted the queries/measurements branch October 6, 2026 15:30

This branch was successfully deployed

1 active deployment
Preview — 3f1098bb Deployed Oct 6, 2026 by vercel[bot]
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