Skip to content

Add creator docs, indexer latency logs, health timing test, and URL n…#368

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
testersweb0-bug:feature/issues-354-355-356-357
May 29, 2026
Merged

Add creator docs, indexer latency logs, health timing test, and URL n…#368
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
testersweb0-bug:feature/issues-354-355-356-357

Conversation

@testersweb0-bug
Copy link
Copy Markdown
Contributor

@testersweb0-bug testersweb0-bug commented May 29, 2026

Summary

Implements four related backend improvements:

Changes

Documentation (#357)

  • New docs/architecture/creator-data-model.md with field-level reference for persisted fields, API-only fields, write/read schemas, and known cross-layer divergences
  • Cross-links added in README.md, CONTRIBUTING.md, and docs/architecture/domain-boundaries.md

Indexer latency logging (#354)

  • New processIndexerChainEvent / processIndexerChainEvents utilities in src/utils/indexer-event-processor.utils.ts
  • Emits one structured log per processed event: type, eventType, eventId, txHash, eventIndex, ledger, elapsedMs
  • Updated docs/indexer/EVENT_PROCESSING.md with usage example and log field table

Health response time test (#356)

  • New HEALTH_LIVENESS_MAX_LATENCY_MS constant in src/constants/health.constants.ts
  • New isolated integration test in src/modules/health/health.response-time.integration.test.ts

Social URL normalization (#355)

  • New normalizeSocialLinkUrl in src/modules/creator/creator-social-link-url.utils.ts
  • Wired into UpsertCreatorProfileBodySchema (Zod transform) and upsertCreatorProfile (pre-storage normalization)

Test plan

  • pnpm exec jest src/utils/indexer-event-processor.utils.test.ts
  • pnpm exec jest src/modules/health/health.response-time.integration.test.ts
  • pnpm exec jest src/modules/creator/creator-social-link-url.utils.test.ts
  • pnpm build
  • Review docs/architecture/creator-data-model.md for accuracy against live schemas

Closes #354
Closes #355
Closes #356
Closes #357

…ormalization.

Consolidates creator field definitions into a reference doc, adds structured
per-event indexer processing logs, an isolated health response-time integration
test, and social link URL normalization before profile storage.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@testersweb0-bug Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit 42c25d1 into accesslayerorg:main May 29, 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