-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: refactored incoming request parameter name #40231
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
WalkthroughThe pull request renames a method parameter in the Changes
Assessment against linked issues
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
✨ 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:
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
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/git/controllers/GitApplicationControllerCE.java (1)
249-257
: Consider adding documentation for the pruneRefs parameter.While the parameter rename is appropriate, adding a brief Javadoc comment explaining what "pruning refs" means would improve developer understanding of this API endpoint.
@JsonView(Views.Public.class) @GetMapping("/{branchedApplicationId}/refs") + /** + * Get references (branches/tags) for an application + * @param branchedApplicationId The ID of the application to get references for + * @param refType The type of reference to get (branch/tag) + * @param pruneRefs When true, removes stale tracking refs that no longer exist on remote + * @return A list of references + */ public Mono<ResponseDTO<List<GitRefDTO>>> getReferences( @PathVariable String branchedApplicationId, @RequestParam(required = false, defaultValue = "branch") RefType refType, @RequestParam(required = false, defaultValue = "false") Boolean pruneRefs) {
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/git/controllers/GitApplicationControllerCE.java
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: perform-test / client-build / client-build
- GitHub Check: perform-test / rts-build / build
- GitHub Check: server-spotless / spotless-check
- GitHub Check: server-unit-tests / server-unit-tests
🔇 Additional comments (2)
app/server/appsmith-server/src/main/java/com/appsmith/server/git/controllers/GitApplicationControllerCE.java (2)
252-252
: Parameter name update is more semantically accurate.The renaming from
pruneBranches
topruneRefs
better aligns with Git terminology, as it can include references beyond just branches (tags, etc.). This change improves API clarity.
255-255
: Service call updated consistently with parameter renaming.The parameter reference in the service call has been correctly updated to use the new parameter name, ensuring consistent implementation throughout the method.
Description
Fixes #40157
Automation
/ok-to-test tags="@tag.Git"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14409483938
Commit: 71bcdea
Cypress dashboard.
Tags:
@tag.Git
Spec:
Fri, 11 Apr 2025 19:13:54 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit