Conversation
🔍 Deadcode AnalysisFound 3 unreachable functions in the backend. View detailsOnly remove deadcode that you know is 100% no longer used.
|
Contributor
|
Container images for this PR have been built successfully!
Built from commit e29e95d |
da12762 to
5f13ba9
Compare
Member
Author
5f13ba9 to
73e03ef
Compare
Member
Author
73e03ef to
dfc8511
Compare
Member
Author
dfc8511 to
e29e95d
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What This PR Implements
Related issue
Related Issue
Fixes # #1950
Changes Made
Testing Done
./scripts/development/dev.sh startjust lint all)just test backendChecklist
mainbranchAI Tool Used (if applicable)
AI Tool:
Assistance Level:
What AI helped with:
I reviewed and edited all AI-generated output:
I ran all required tests and manually verified changes:
Additional Context
Disclaimer Greptiles Reviews use AI, make sure to check over its work.
To better help train Greptile on our codebase, if the comment is useful and valid Like the comment, if its not helpful or invalid Dislike
Greptile Summary
This PR adds JWT refresh token expiry duration configurability via the
JWT_REFRESH_EXPIRYenvironment variable, replacing the previously hardcoded7 * 24 * time.Hourvalue.Key Implementation Details:
JWTRefreshExpiry time.Durationto Config struct withdefault:"168h"tagsetFieldValueInternalwith robusttime.Durationhandling: validates parsed values, rejects non-positive durations, logs warnings with the invalid supplied value, and falls back to the field's own struct-tag defaultapplyDurationDefaultclosure to avoid duplication across error branches and to support futuretime.Durationconfig fields without hardcodingcfg.JWTRefreshExpiryintoNewAuthService, cleanly replacing the hardcoded literal.env.examplewith clear guidance on accepted Go duration formatAll edge cases are properly handled and tested. The fallback logic uses the field's own struct tag rather than any hardcoded value, making the implementation safe for future
time.Durationconfig additions.Confidence Score: 5/5
time.Durationconfig additions. The rename tosetFieldValueInternalis consistently applied across definition and both call sites. No regressions to existing field parsing (string, bool, uint32, int, custom types) are introduced.Last reviewed commit: e29e95d