Skip to content

add access decision task implemented - #60

Merged
Lakes41 merged 3 commits into
Adamantine-guild:mainfrom
MoscowDev:feature/add-access-decision
Jun 28, 2026
Merged

add access decision task implemented#60
Lakes41 merged 3 commits into
Adamantine-guild:mainfrom
MoscowDev:feature/add-access-decision

Conversation

@MoscowDev

Copy link
Copy Markdown
Contributor

Task Completed

Task Completed
Cache feature implemented, but acceptance-criteria tests cannot be completed due to test harness failure.

Implemented:

apps/access-api/src/services/cacheService.ts
CacheService interface
NoopCacheService (default disabled)
InMemoryCacheService (for unit tests)
apps/access-api/src/services/redisCacheService.ts
Optional Redis-backed CacheService (only used when configured)
apps/access-api/src/config.ts
accessDecisionCacheEnabled (default false)
accessDecisionCacheTtlSeconds (default 30)
accessDecisionCacheVersionTtlSeconds (default 86400)
redisUrl optional (required when caching enabled)
apps/access-api/src/services/memberService.ts
Wired optional access-decision caching into checkAccess
Cache keys include communityId + wallet + resource
Uses per-community version counters to keep invalidation safe
apps/access-api/src/services/accessDecisionCache.test.ts
Added unit tests covering hit/miss/TTL/invalidation logic (in-memory)
Current blocker:

Jest cannot run TypeScript tests because the required transform module ts-jest is not found:
“Module ts-jest in the transform option was not found.”
Net result:

Feature code is in place, but I cannot verify/run the required cache tests in this environment until ts-jest (or an alternative TS Jest transform) is available and working.

coses #56

@Lakes41 Lakes41 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job
@MoscowDev Please do resolve conflicts and pipeline failures

@Lakes41
Lakes41 merged commit 8ed20be into Adamantine-guild:main Jun 28, 2026
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.

2 participants