-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: additional test cases and method refactor to follow old standards #33734
Conversation
WalkthroughWalkthroughThe recent changes encompass various updates across multiple files, focusing on reordering parameters in specific methods, correcting typos, enhancing logging, adding annotations, and improving error handling. Key modifications include adjustments in method calls, corrections of interface names, adding new utility methods for Redis operations, and refining test setups. These changes collectively enhance code readability, maintainability, and functionality. Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant Client
participant Server
participant GitRedisUtils
participant CommonGitFileUtilsCE
Client->>Server: Request auto-commit eligibility
Server->>GitRedisUtils: Add file lock
GitRedisUtils-->>Server: Lock added
Server->>CommonGitFileUtilsCE: getMetadataServerSchemaMigrationVersion()
CommonGitFileUtilsCE-->>Server: Return version
Server->>Client: Respond with eligibility status
Server->>GitRedisUtils: Release file lock
GitRedisUtils-->>Server: Lock released
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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: 1
...psmith-server/src/test/java/com/appsmith/server/testhelpers/git/GitFileSystemTestHelper.java
Show resolved
Hide resolved
...src/main/java/com/appsmith/server/helpers/ce/autocommit/AutoCommitEligibilityHelperImpl.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/appsmith/server/helpers/ce/autocommit/AutoCommitEligibilityHelperImpl.java
Outdated
Show resolved
Hide resolved
@@ -26,6 +26,10 @@ public Mono<Boolean> addFileLock(String defaultApplicationId) { | |||
})); | |||
} | |||
|
|||
public Mono<Boolean> addFileLockWithoutRetry(String defaultApplicationId) { |
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.
Approving the PR due to urgency, but please refactor this call to make retry a parameter instead of a separate method.
…rds (#33734) ## Description - Added fallback implementation for autocommit eligibility helper to avoid accessing FS for git connected apps when feature flags are switched off - Added test cases to verify the same - modified test cases names to follow standards - refactored method to follow standard ## Automation /ok-to-test tags="@tag.Git" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!WARNING] > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/9244442582> > Commit: bb8e141 > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9244442582&attempt=1" target="_blank">Click here!</a> > It seems like **no tests ran** 😔. We are not able to recognize it, please check workflow <a href="https://github.com/appsmithorg/appsmith/actions/runs/9244442582" target="_blank">here.</a> <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No
Description
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/9255023455
Commit: f378b03
Cypress dashboard url: Click here!
Communication
Should the DevRel and Marketing teams inform users about this change?