-
Notifications
You must be signed in to change notification settings - Fork 59
Revert "Make authorizer work for nested relations" #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRemoved SubSubTask feature from the auth example (entities, DTOs, module, schema, tests, fixtures). Simplified data seeding to create only SubTasks. In query-graphql, refactored relation authorization: dropped DI-based authorizers, added decorator-provided relation filters, adjusted Authorizer interface generics, and removed getAuthorizerToken export. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant Resolver as Relation Resolver (OLD)
participant Authz as Authorizer (DI)
participant Svc as Query Service
Client->>Resolver: read relation (one/many)
Resolver->>Authz: authorizeRelation(relationName, ctx, authCtx)
Authz-->>Resolver: Filter<Relation> | undefined
Resolver->>Svc: query(baseFilter ⊓ authFilter)
Svc-->>Resolver: results
Resolver-->>Client: results
sequenceDiagram
autonumber
participant Client
participant Resolver as Relation Resolver (NEW)
participant Decor as @RelationAuthorizerFilter
participant Svc as Query Service
Client->>Resolver: read relation (one/many, relationFilter injected)
Note over Resolver,Decor: Decorator provides relationFilter at call time
Resolver->>Svc: query(baseFilter ⊓ relationFilter)
Svc-->>Resolver: results
Resolver-->>Client: results
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (13)
💤 Files with no reviewable changes (5)
🧰 Additional context used🧬 Code graph analysis (3)packages/query-graphql/src/resolvers/relations/read-relations.resolver.ts (2)
examples/auth/e2e/fixtures.ts (1)
packages/query-graphql/src/resolvers/relations/aggregate-relations.resolver.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (4)
Comment |
|
View your CI Pipeline Execution ↗ for commit b6ee1d1
☁️ Nx Cloud last updated this comment at |
Reverts #355
Summary by CodeRabbit
New Features
Refactor
Chores
Tests