Skip to content

Commit

Permalink
Merge pull request #3513 from ingef/release
Browse files Browse the repository at this point in the history
Merge Release
  • Loading branch information
thoniTUB authored Aug 12, 2024
2 parents 6e0c8c5 + bcad24d commit f94dbc6
Show file tree
Hide file tree
Showing 223 changed files with 3,583 additions and 2,049 deletions.
12 changes: 4 additions & 8 deletions backend/src/main/java/com/bakdata/conquery/Conquery.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.bakdata.conquery;

import jakarta.validation.Validator;

import ch.qos.logback.classic.Level;
import com.bakdata.conquery.commands.DistributedStandaloneCommand;
import com.bakdata.conquery.commands.ManagerNode;
import com.bakdata.conquery.commands.MigrateCommand;
import com.bakdata.conquery.commands.PreprocessorCommand;
import com.bakdata.conquery.commands.RecodeStoreCommand;
import com.bakdata.conquery.commands.ShardNode;
import com.bakdata.conquery.commands.*;
import com.bakdata.conquery.io.jackson.Jackson;
import com.bakdata.conquery.io.jackson.MutableInjectableValues;
import com.bakdata.conquery.metrics.prometheus.PrometheusBundle;
Expand All @@ -22,7 +19,6 @@
import io.dropwizard.core.ConfiguredBundle;
import io.dropwizard.core.setup.Bootstrap;
import io.dropwizard.core.setup.Environment;
import jakarta.validation.Validator;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
Expand Down Expand Up @@ -51,7 +47,7 @@ public void initialize(Bootstrap<ConqueryConfig> bootstrap) {
// main config file is json
bootstrap.setConfigurationFactoryFactory(JsonConfigurationFactory::new);

bootstrap.addCommand(new ShardNode());
bootstrap.addCommand(new ShardCommand());
bootstrap.addCommand(new PreprocessorCommand());
bootstrap.addCommand(new DistributedStandaloneCommand(this));
bootstrap.addCommand(new RecodeStoreCommand());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.bakdata.conquery.apiv1.query.concept.specific.CQConcept;
import com.bakdata.conquery.apiv1.query.concept.specific.CQOr;
import com.bakdata.conquery.apiv1.query.concept.specific.external.CQExternal;
import com.bakdata.conquery.apiv1.query.concept.specific.external.EntityResolver;
import com.bakdata.conquery.io.result.ResultRender.ResultRendererProvider;
import com.bakdata.conquery.io.storage.MetaStorage;
import com.bakdata.conquery.metrics.ExecutionMetrics;
Expand Down Expand Up @@ -108,7 +109,6 @@ public class QueryProcessor {
private Validator validator;



public Stream<ExecutionStatus> getAllQueries(Dataset dataset, HttpServletRequest req, Subject subject, boolean allProviders) {
final Collection<ManagedExecution> allQueries = storage.getAllExecutions();

Expand Down Expand Up @@ -294,14 +294,13 @@ public FullExecutionStatus getQueryFullStatus(ManagedExecution query, Subject su
public ExternalUploadResult uploadEntities(Subject subject, Dataset dataset, ExternalUpload upload) {

final Namespace namespace = datasetRegistry.get(dataset.getId());
final CQExternal.ResolveStatistic statistic = CQExternal.resolveEntities(
final EntityResolver.ResolveStatistic statistic = namespace.getEntityResolver().resolveEntities(
upload.getValues(),
upload.getFormat(),
namespace.getStorage().getIdMapping(),
config.getIdColumns(),
config.getLocale().getDateReader(),
upload.isOneRowPerEntity(),
true
upload.isOneRowPerEntity()
);

// Resolving nothing is a problem thus we fail.
Expand Down Expand Up @@ -526,9 +525,8 @@ public Stream<Map<String, String>> resolveEntities(Subject subject, List<FilterV

final List<ColumnConfig> ids = config.getIdColumns()
.getIds().stream()
// We're only interested in returning printable AND resolvable ids
// We're only interested in returning printable ids
.filter(ColumnConfig::isPrint)
.filter(ColumnConfig::isResolvable)
.collect(Collectors.toList());


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.bakdata.conquery.apiv1.frontend;

import com.bakdata.conquery.models.identifiable.ids.specific.SelectId;
import com.bakdata.conquery.models.types.ResultType;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
Expand All @@ -15,7 +14,7 @@ public class FrontendSelect {
private SelectId id;
private String label;
private String description;
private ResultType resultType;
private String resultType;
@JsonProperty("default")
private Boolean isDefault;
}
Loading

0 comments on commit f94dbc6

Please sign in to comment.