Skip to content
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

Merge Release #3615

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
23b76fd
cleanup money (#3535)
awildturtok Oct 2, 2024
5c8f1a2
Refactor search logic a bit for clarification
Kadrian Oct 2, 2024
40b62f3
Collect the children ids up to the first non-folder children
Kadrian Oct 2, 2024
3acda43
Clarify types and comment
Kadrian Oct 2, 2024
c238107
Use the same logic for list item and folder, cleanup
Kadrian Oct 2, 2024
356fa08
Merge pull request #3583 from ingef/fix-search-for-multi-struct-node-…
Kadrian Oct 2, 2024
a194051
Update non-critical minor versions for non-tooling dependencies
Kadrian Oct 2, 2024
6ea0a99
Merge pull request #3584 from ingef/update-minor-dependencies
Kadrian Oct 2, 2024
b1678b5
Fix defaultParams resetting also when clicking reset in history navig…
Kadrian Oct 2, 2024
81e7db2
Merge pull request #3585 from ingef/fix-default-params-reset-when-res…
Kadrian Oct 2, 2024
3fa1b2a
Update vite and storybook dependencies, update stories
Kadrian Oct 2, 2024
247355c
Fix define
Kadrian Oct 2, 2024
f58dd0e
Merge pull request #3587 from ingef/update-vite-and-storybook
Kadrian Oct 2, 2024
720fb46
test if query is initialized before building full-status that might c…
awildturtok Oct 7, 2024
8988bf7
undo using ftl in JS context (#3592)
awildturtok Oct 7, 2024
a9a97d0
submit ForwardToNamespace messages to the job manager of the namespac…
thoniTUB Oct 7, 2024
408e6cc
Fix streamQueryResults in case of a failed SQL query (#3591)
jnsrnhld Oct 7, 2024
057eb76
Fix secondary ID qualifying (#3594)
jnsrnhld Oct 8, 2024
cbbfa29
remove central registry
thoniTUB Oct 8, 2024
d775e0e
Merge pull request #3554 from ingef/feature/remove-central-registry
thoniTUB Oct 8, 2024
cee94c5
improve validation message for form
thoniTUB Oct 10, 2024
c0ac392
Merge pull request #3599 from ingef/fix/improve-validation-message
thoniTUB Oct 10, 2024
7c965e2
Fixes faulty calculation of width in TableExportQueryConverter (#3597)
awildturtok Oct 10, 2024
8939aeb
adds minimal test data to e2e
thoniTUB Oct 14, 2024
4f99a9d
Merge branch 'develop' into fix/ftl-imports-render
thoniTUB Oct 14, 2024
ea907e0
adds test to spot render error
thoniTUB Oct 14, 2024
5324c1b
fix render error
thoniTUB Oct 14, 2024
f1ba0bd
fix render error
thoniTUB Oct 14, 2024
b9eb9bd
Try and fix logo url
Kadrian Oct 14, 2024
b9a2482
Fix format
Kadrian Oct 14, 2024
65e72db
Merge pull request #3603 from ingef/fix-logo-url
Kadrian Oct 14, 2024
a26ebf4
Try and fix search again for multi-nested struct nodes
Kadrian Oct 14, 2024
ee551d4
Merge pull request #3604 from ingef/fix-search
Kadrian Oct 14, 2024
ede0c51
Merge branch 'develop' into fix/ftl-imports-render
thoniTUB Oct 15, 2024
0b025f4
rework calculateSpecificChildrenPaths: (#3601)
awildturtok Oct 15, 2024
985bf94
fix resolution of MoneyRange, move it into FilterValue (#3600)
awildturtok Oct 15, 2024
64504ca
move ConceptTreeCaches into BucketManager (#3598)
awildturtok Oct 15, 2024
db90e4e
Merge branch 'develop' into fix/ftl-imports-render
thoniTUB Oct 16, 2024
7b9bd0f
Merge pull request #3602 from ingef/fix/ftl-imports-render
thoniTUB Oct 16, 2024
f2dd6e3
reformatting before merge
thoniTUB Nov 4, 2024
827f73f
Merge remote-tracking branch 'refs/remotes/origin/develop' into reint…
thoniTUB Nov 4, 2024
14a13ab
Merge pull request #3612 from ingef/reintegrate-main
awildturtok Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ tutorial/mimic_iii_demo/data/**
/node_modules
cypress/screenshots/
cypress/videos/
/cypress/support/test_data/table.cqpp
6 changes: 0 additions & 6 deletions autodoc/src/main/java/com/bakdata/conquery/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
import com.bakdata.conquery.apiv1.query.concept.filter.FilterValue;
import com.bakdata.conquery.apiv1.query.concept.filter.ValidityDateContainer;
import com.bakdata.conquery.io.cps.CPSType;
import com.bakdata.conquery.io.jackson.serializer.MetaIdRef;
import com.bakdata.conquery.io.jackson.serializer.MetaIdRefCollection;
import com.bakdata.conquery.io.jackson.serializer.NsIdRef;
import com.bakdata.conquery.io.jackson.serializer.NsIdRefCollection;
import com.bakdata.conquery.model.Base;
import com.bakdata.conquery.model.Group;
import com.bakdata.conquery.models.common.Range;
Expand Down Expand Up @@ -182,8 +178,6 @@ public class Constants {

public static final String JSON_CREATOR = JsonCreator.class.getName();
public static final String CPS_TYPE = CPSType.class.getName();
public static final Set<String> ID_REF = Set.of(NsIdRef.class.getName(), MetaIdRef.class.getName());
public static final Set<String> ID_REF_COL = Set.of(NsIdRefCollection.class.getName(), MetaIdRefCollection.class.getName());
public static final String JSON_IGNORE = JsonIgnore.class.getName();
public static final String JSON_BACK_REFERENCE = JsonBackReference.class.getName();
public static final String PATH = Path.class.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,7 @@ private void handleField(ClassInfo currentType, FieldInfo field) throws IOExcept
final TypeSignature typeSignature = field.getTypeSignatureOrTypeDescriptor();
final Ctx ctx = new Ctx().withField(field);

final String type;
if (ID_REF.stream().anyMatch(field::hasAnnotation)) {
type = ID_OF + printType(ctx.withIdOf(true), typeSignature);
}
else if (ID_REF_COL.stream().anyMatch(field::hasAnnotation)) {
type = LIST_OF + ID_OF + StringUtils.removeStart(printType(ctx.withIdOf(true), typeSignature), LIST_OF);
}
else {
type = printType(ctx, typeSignature);
}
final String type = printType(ctx, typeSignature);

out.table(
editLink(introspec),
Expand Down
97 changes: 69 additions & 28 deletions backend/src/main/java/com/bakdata/conquery/ResultHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,64 +9,105 @@
import com.bakdata.conquery.models.query.PrintSettings;
import com.bakdata.conquery.models.query.resultinfo.FixedLabelResultInfo;
import com.bakdata.conquery.models.query.resultinfo.ResultInfo;
import com.bakdata.conquery.models.query.resultinfo.printers.ResultPrinters;
import com.bakdata.conquery.models.query.resultinfo.printers.Printer;
import com.bakdata.conquery.models.query.resultinfo.printers.PrinterFactory;
import com.bakdata.conquery.models.query.resultinfo.printers.common.LocalizedEnumPrinter;
import com.bakdata.conquery.models.types.ResultType;
import com.bakdata.conquery.models.types.SemanticType;
import lombok.experimental.UtilityClass;

@UtilityClass
public class ResultHeaders {
public static ResultInfo datesInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).dates();
public static ResultInfo datesInfo() {

final ResultType.ListT<Object> type = new ResultType.ListT<>(ResultType.Primitive.DATE_RANGE);

return new FixedLabelResultInfo(label, label, type, Set.of(new SemanticType.EventDateT()), settings, ResultPrinters.printerFor(type, settings));
return new FixedLabelResultInfo(type, Set.of(new SemanticType.EventDateT())){
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).dates();
}
};
}

public static ResultInfo historyDatesInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).dates();
public static ResultInfo historyDatesInfo() {

final ResultType.ListT<Object> type = new ResultType.ListT<>(ResultType.Primitive.DATE_RANGE);

return new FixedLabelResultInfo(label, label, type, Set.of(new SemanticType.EventDateT(), new SemanticType.GroupT()), settings, ResultPrinters.printerFor(type, settings));
return new FixedLabelResultInfo(type, Set.of(new SemanticType.EventDateT(), new SemanticType.GroupT())) {
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).dates();
}
};
}

public static ResultInfo sourceInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).source();

return new FixedLabelResultInfo(label, label, ResultType.Primitive.STRING, Set.of(new SemanticType.SourcesT(), new SemanticType.CategoricalT(), new SemanticType.GroupT()), settings, ResultPrinters.printerFor(ResultType.Primitive.STRING, settings));
public static ResultInfo sourceInfo() {
return new FixedLabelResultInfo(ResultType.Primitive.STRING, Set.of(new SemanticType.SourcesT(), new SemanticType.CategoricalT(), new SemanticType.GroupT())) {
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).source();
}
};
}

public static ResultInfo formContextInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).index();
public static ResultInfo formContextInfo() {

return new FixedLabelResultInfo(label, label, ResultType.Primitive.INTEGER, Set.of(), settings, ResultPrinters.printerFor(ResultType.Primitive.INTEGER, settings));
return new FixedLabelResultInfo(ResultType.Primitive.INTEGER, Set.of()) {
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).index();
}
};
}

public static ResultInfo formDateRangeInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale())
.dateRange();
public static ResultInfo formDateRangeInfo() {

return new FixedLabelResultInfo(label, label, ResultType.Primitive.DATE_RANGE, Set.of(), settings, ResultPrinters.printerFor(ResultType.Primitive.DATE_RANGE, settings));
return new FixedLabelResultInfo(ResultType.Primitive.DATE_RANGE, Set.of()) {
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).dateRange();
}
};
}

public static ResultInfo formResolutionInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).resolution();
public static ResultInfo formResolutionInfo() {

return new FixedLabelResultInfo(ResultType.Primitive.STRING, Set.of()) {
@Override
public Printer createPrinter(PrinterFactory printerFactory, PrintSettings printSettings) {
return new LocalizedEnumPrinter<>(printSettings, Resolution.class);
}

return new FixedLabelResultInfo(label, label, ResultType.Primitive.STRING, Set.of(), settings, new ResultPrinters.LocalizedEnumPrinter<>(settings, Resolution.class));
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).resolution();
}
};
}

public static ResultInfo formEventDateInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale())
.eventDate();
public static ResultInfo formEventDateInfo() {

return new FixedLabelResultInfo(label, label, ResultType.Primitive.DATE, Set.of(), settings, ResultPrinters.printerFor(ResultType.Primitive.DATE, settings));
return new FixedLabelResultInfo(ResultType.Primitive.DATE, Set.of()) {
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).eventDate();
}
};
}

public static ResultInfo formObservationScopeInfo(PrintSettings settings) {
final String label = C10nCache.getLocalized(ResultHeadersC10n.class, settings.getLocale()).observationScope();
public static ResultInfo formObservationScopeInfo() {

return new FixedLabelResultInfo(ResultType.Primitive.STRING, Set.of()) {
@Override
public Printer createPrinter(PrinterFactory printerFactory, PrintSettings printSettings) {
return new LocalizedEnumPrinter<>(printSettings, FeatureGroup.class);
}

return new FixedLabelResultInfo(label, label, ResultType.Primitive.STRING, Set.of(), settings, new ResultPrinters.LocalizedEnumPrinter<>(settings, FeatureGroup.class));
@Override
public String userColumnName(PrintSettings printSettings) {
return C10nCache.getLocalized(ResultHeadersC10n.class, printSettings.getLocale()).observationScope();
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

import com.bakdata.conquery.apiv1.frontend.FrontendValue;
import com.bakdata.conquery.io.cps.CPSType;
import com.bakdata.conquery.io.jackson.serializer.NsIdRef;
import com.bakdata.conquery.models.config.IndexConfig;
import com.bakdata.conquery.models.datasets.Dataset;
import com.bakdata.conquery.models.datasets.concepts.Searchable;
import com.bakdata.conquery.models.identifiable.IdentifiableImpl;
import com.bakdata.conquery.models.identifiable.ids.specific.DatasetId;
import com.bakdata.conquery.models.identifiable.ids.specific.SearchIndexId;
import com.bakdata.conquery.models.index.FrontendValueIndex;
import com.bakdata.conquery.models.index.FrontendValueIndexKey;
Expand Down Expand Up @@ -41,9 +40,10 @@
@CPSType(id = "CSV_TEMPLATE", base = SearchIndex.class)
public class FilterTemplate extends IdentifiableImpl<SearchIndexId> implements Searchable, SearchIndex {

private static final long serialVersionUID = 1L;

@NotNull
@NsIdRef
private Dataset dataset;
private DatasetId dataset;

@NotEmpty
private final String name;
Expand Down Expand Up @@ -106,6 +106,6 @@ public TrieSearch<FrontendValue> createTrieSearch(IndexConfig config) throws Ind

@Override
public SearchIndexId createId() {
return new SearchIndexId(dataset.getId(), name);
return new SearchIndexId(dataset, name);
}
}
Loading
Loading