assemblee-virtuelle / assemblee-virtuelle/semapps

Use WebAclMiddleware instead of events to clear WebACL cache without delay

Open
#1,127 0 comments 0 reactions 0 assignees View on GitHub
acl
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

**Problem**
Because the `webacl.cache` service use events to clear cache, it is not cleared immediately. On the ObjectsWatchedMiddleware, we add to clear it ourselves after WebACL changes in order to avoid race condition.

**Proposal**
Use the WebaclMiddleware to clear cache immediately.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate WebAclMiddleware, the webacl.cache service, and ObjectsWatchedMiddleware, then trace how events currently clear the cache after WebACL changes. Verify where the middleware can perform immediate invalidation without the existing race condition. Done means WebACL cache updates no longer wait for event handling and the redundant manual clearing is removed or no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, security
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.