Skip to content

Commit

Permalink
Merge pull request #34025 from appsmithorg/hotfix/disable-autocommit
Browse files Browse the repository at this point in the history
fix: added fix for disabling the autocommit feature without feature flag
  • Loading branch information
trishaanand committed Jun 6, 2024
2 parents 1f33834 + e29348d commit 174d762
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public Mono<Boolean> isClientMigrationRequired(PageDTO pageDTO) {
}

@Override
@FeatureFlagged(featureFlagName = FeatureFlagEnum.release_git_autocommit_feature_enabled)
public Mono<AutoCommitTriggerDTO> isAutoCommitRequired(
String workspaceId, GitArtifactMetadata gitArtifactMetadata, PageDTO pageDTO) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.eclipse.jgit.lib.BranchTrackingStatus;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mockito;
Expand Down Expand Up @@ -229,6 +230,7 @@ public void afterTest() {
}

@Test
@Disabled
public void testAutoCommit_whenOnlyServerIsEligibleForMigration_commitSuccess()
throws URISyntaxException, IOException, GitAPIException {

Expand Down Expand Up @@ -282,6 +284,7 @@ public void testAutoCommit_whenOnlyServerIsEligibleForMigration_commitSuccess()
}

@Test
@Disabled
public void testAutoCommit_whenOnlyClientIsEligibleForMigration_commitSuccess()
throws GitAPIException, IOException, URISyntaxException {
ApplicationJson applicationJson =
Expand Down Expand Up @@ -344,6 +347,7 @@ public void testAutoCommit_whenOnlyClientIsEligibleForMigration_commitSuccess()
}

@Test
@Disabled
public void testAutoCommit_whenAutoCommitNotEligible_returnsFalse()
throws URISyntaxException, IOException, GitAPIException {

Expand Down

0 comments on commit 174d762

Please sign in to comment.