AletheiaFact / AletheiaFact/aletheia

B2B-2 · Namespace-scope verification-requests (schema + queries + backfill)

Open
#2,535 0 comments 0 reactions 0 assignees View on GitHub
backlog server
Dominant language
TypeScript
Stars
55
Forks
20
Avg merge
2d 6h
Merged PRs (30d)
2

Description

Part of the B2B epic (Fase 1 · item 1.1b). Verification requests are client data (unlike personalities, which stay global by decision) — today the schema has **no `nameSpace` field at all**.

## What
- [ ] Add `nameSpace` to `server/verification-request/schemas/verification-request.schema.ts` (default `main`)
- [ ] Filter every query point in `verification-request` service/controller by namespace
- [ ] Backfill migration (existing docs → `main`)
- [ ] Compound index `(nameSpace, …)` for the listing queries

**Effort:** ~1 SP · **Depends on:** — (parallel with B2B-1)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with server/verification-request/schemas/verification-request.schema.ts, then trace every verification-request service and controller query and identify the listing queries targeted by the index. Review the migration path for existing documents. Done means namespace defaults to main, existing documents are backfilled, all query points are namespace-filtered, and the compound indexes support listing queries.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.