Null check#79
Conversation
WalkthroughThis update introduces language-specific filtering to certain count queries in the repository layer, adds new string constants for JWT and user-agent headers, and refactors usages of these literals to use the new constants. Additionally, it improves query formatting and adds null checks before adding JWT headers in HTTP utilities. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant RestTemplateUtil
participant HttpHeaders
Client->>RestTemplateUtil: createRequestEntity(body, authorization)
RestTemplateUtil->>HttpHeaders: Add Authorization header (if present)
RestTemplateUtil->>HttpHeaders: Add User-Agent header via Constants.USER_AGENT
RestTemplateUtil->>HttpHeaders: Check for JWT token header via Constants.JWT_TOKEN
alt JWT token header present
RestTemplateUtil->>HttpHeaders: Add JWT token header
end
RestTemplateUtil-->>Client: Return HttpEntity with headers and body
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|



📋 Description
JIRA ID:
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit