Skip to content

fix: batch of stellar wave fixes#175

Merged
Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
buinntalen:feat/stellar-wave-fixes
Apr 25, 2026
Merged

fix: batch of stellar wave fixes#175
Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
buinntalen:feat/stellar-wave-fixes

Conversation

@buinntalen
Copy link
Copy Markdown
Contributor

Summary

Implement four fixes for Stellar Wave program issues: null-safe sorting,
stale-if-error cache support, audit event logging for admin actions, and
API version header documentation.

Changes

  • Add null-safe sort field resolver ensuring nullable fields sort deterministically
  • Add stale-if-error cache hint for public creator reads with 24-hour max stale window
  • Implement audit event logging system for admin moderation metadata edits
  • Document API version header middleware configuration

Testing

  • pnpm lint (passed)
  • pnpm build (passed)
  • pnpm exec prisma generate (passed)

Closes #144
Closes #145
Closes #147
Closes #148

Ensure nullable fields are sorted deterministically by using Prisma's nulls
parameter to place null values last, keeping sort behavior predictable and
consistent across mixed null/non-null datasets.

Refs #145
Support stale-if-error behavior for cached public reads by adding staleIfError
option to cache control middleware. Define 24-hour max stale window for creator
list, stats, and profile endpoints to maintain service availability during
origin failures while keeping response metadata explicit.

Refs #147
Emit structured audit events for admin metadata changes to CreatorProfile,
including actor, target, timestamp fields. Create audit events table to
persist action history with granular change tracking. Add PATCH endpoint
for updating creator metadata with x-admin-id header authentication and
change tracking to avoid sensitive payload leakage.

Refs #148
Add API_VERSION, ENABLE_API_VERSION_HEADER, and related configuration
variables to .env.example to document the contract for the API version
response header middleware. Keep version source centralized in config
as designed.

Refs #144
@Chucks1093 Chucks1093 merged commit ddda42e into accesslayerorg:main Apr 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants