Commit f15becd0 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

fix gcp shared tenant, remove redundant checking

parent 31f21ec7
Pipeline #19687 failed with stages
in 56 minutes and 12 seconds
......@@ -258,9 +258,6 @@ public class GoogleSchemaInfoStore implements ISchemaInfoStore {
@Override
public List<SchemaInfo> getSchemaInfoList(QueryParams queryParams, String tenantId) throws ApplicationException {
List<SchemaInfo> schemaList = new LinkedList<>();
if (sharedTenant.equals(tenantId)) {
return schemaList;
}
Datastore datastore = dataStoreFactory.getDatastore(tenantId, SchemaConstants.NAMESPACE);
List<Filter> filterList = getFilters(queryParams);
......
......@@ -53,9 +53,6 @@ public class GoogleSchemaStore implements ISchemaStore {
*/
@Override
public String getSchema(String dataPartitionId, String filePath) throws ApplicationException, NotFoundException {
if (sharedTenant.equals(dataPartitionId)) {
throw new NotFoundException(SchemaConstants.SCHEMA_NOT_PRESENT);
}
filePath = filePath + SchemaConstants.JSON_EXTENSION;
String bucketname = getSchemaBucketName(dataPartitionId);
Storage storage = storageFactory.get(tenantFactory.getTenantInfo(dataPartitionId));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment