[Skip_changelog] Enable S3 and GSheet from backend for generate CRUD page (#6706)
* Update appsmithVersion for static json file used in import application cypruss test
This commit is contained in:
parent
ca0b08e482
commit
9677a4fb8f
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"appsmithVersion":"v1.5.13",
|
||||
"appsmithVersion":"1.5.14",
|
||||
"exportedApplication": {
|
||||
"userPermissions": [
|
||||
"canComment:applications",
|
||||
|
|
|
|||
|
|
@ -2946,4 +2946,18 @@ public class DatabaseChangelog {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ChangeSet(order = "081", id = "create-plugin-reference-for-S3-GSheet-genarate-CRUD-page", author = "")
|
||||
public void createPluginReferenceForS3AndGSheetGenerateCRUDPage(MongockTemplate mongoTemplate) {
|
||||
|
||||
Set<String> validPackageNames = Set.of("amazons3-plugin", "google-sheets-plugin");
|
||||
|
||||
List<Plugin> plugins = mongoTemplate.findAll(Plugin.class);
|
||||
for (Plugin plugin : plugins) {
|
||||
if (validPackageNames.contains(plugin.getPackageName())) {
|
||||
plugin.setGenerateCRUDPageComponent(plugin.getName());
|
||||
}
|
||||
mongoTemplate.save(plugin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,8 +41,10 @@ import reactor.core.publisher.Mono;
|
|||
import reactor.test.StepVerifier;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
|
@ -515,7 +517,6 @@ public class CreateDBTablePageSolutionTests {
|
|||
.verifyComplete();
|
||||
}
|
||||
|
||||
/*
|
||||
@Test
|
||||
@WithUserDetails(value = "api_user")
|
||||
public void createPageWithNullPageIdForS3() {
|
||||
|
|
@ -528,6 +529,7 @@ public class CreateDBTablePageSolutionTests {
|
|||
datasource.setPluginId(plugin.getId());
|
||||
datasource.setOrganizationId(testOrg.getId());
|
||||
datasource.setName("S3-CRUD-Page-Table-DS");
|
||||
datasource.setDatasourceConfiguration(datasourceConfiguration);
|
||||
return datasourceService.create(datasource);
|
||||
});
|
||||
|
||||
|
|
@ -584,6 +586,7 @@ public class CreateDBTablePageSolutionTests {
|
|||
Datasource datasource = new Datasource();
|
||||
datasource.setPluginId(plugin.getId());
|
||||
datasource.setOrganizationId(testOrg.getId());
|
||||
datasource.setDatasourceConfiguration(datasourceConfiguration);
|
||||
datasource.setName("Google-Sheet-CRUD-Page-Table-DS");
|
||||
return datasourceService.create(datasource);
|
||||
});
|
||||
|
|
@ -627,8 +630,6 @@ public class CreateDBTablePageSolutionTests {
|
|||
.verifyComplete();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
@Test
|
||||
@WithUserDetails(value = "api_user")
|
||||
public void createPageWithValidPageIdForMongoDB() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user