redhat-developer / redhat-developer/abbenay
feat(grpc): add policy field to CreateSessionRequest
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 7
- Avg merge
- 7h 7m
- Merged PRs (30d)
- 3
Description
Summary
The REST API POST /api/sessions accepts a policy field in the request body, allowing callers to associate a policy with a new session. The gRPC CreateSessionRequest message has no policy field, and the handler passes undefined for the policy parameter.
Proposal
Add optional string policy = N; to CreateSessionRequest in service.proto and pass it through in the CreateSession handler.
Context
Identified during gRPC config parity audit in #32.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with service.proto and the CreateSession handler mentioned in the issue. Trace how the REST endpoint supplies policy and how the gRPC request reaches the handler. Done means CreateSessionRequest declares the policy field and the handler passes it through, with relevant tests or checks passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100