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

Feature/self inject storage into permission owners #2101

Merged
merged 38 commits into from
Sep 29, 2021

Conversation

thoniTUB
Copy link
Collaborator

No description provided.

make store creators static

dont double cache dictionaries

inject meta storage into permission owners

fixes tests

Fix serialization test

capsule storage for group and role handling

fix compile errors

remove usage of userish
…ct-storage

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/BigStore.java
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/SerializingStore.java
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/XodusStore.java
#	backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
#	backend/src/test/java/com/bakdata/conquery/io/storage/xodus/stores/SerializingStoreDumpTest.java
Copy link
Collaborator

@awildturtok awildturtok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bin mir nicht sicher, ob ich verstehe was du damit erreichen möchtest. Ich denke es wäre besser an der Stelle den ganzen MetaStorage zu Injecten (übrigens nices Feature was du da entdeckt hast), statt UpdaterUpdater

@awildturtok awildturtok self-requested a review September 22, 2021 12:25
thoniTUB and others added 2 commits September 22, 2021 16:19
…t-storage

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/BigStore.java
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/SerializingStore.java
#	backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
#	backend/src/test/java/com/bakdata/conquery/io/storage/xodus/stores/SerializingStoreDumpTest.java
#	docs/Config JSON.md
return userManager.addUser(getUser(), credentials);

@JsonIgnore
public UserId getId() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

müsste das nicht createId sein?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jep ;)

private Path directory = Path.of("storage");

private boolean validateOnWrite = false;
@NotNull
@Valid
private XodusConfig xodus = new XodusConfig();

private boolean useWeakDictionaryCaching = false;
private boolean useWeakDictionaryCaching = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert default

@@ -151,17 +183,17 @@ private void configureMapper(ConqueryConfig config) {
@Override
@SneakyThrows
public Collection<NamespaceStorage> loadNamespaceStorages() {
return loadNamespacedStores("dataset_", (elements) -> new NamespaceStorage(validator, this, elements));
return loadNamespacedStores("dataset_", (storesToTest) -> new NamespaceStorage(validator, this, storesToTest), NAMESPACE_STORES);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warum toTest?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weil das die stores sind die wir erwarten, ich nenne es in expectedStores um ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah nee an der Stelle ist es einfach der falsche Name :D

…e-MERGE

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/BigStore.java
#	backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
#	backend/src/main/java/com/bakdata/conquery/models/query/QueryTranslator.java
#	docs/Config JSON.md
@thoniTUB thoniTUB force-pushed the feature/self-inject-storage branch from 8af5868 to f37f259 Compare September 28, 2021 11:47
@thoniTUB thoniTUB merged commit 202ec10 into develop Sep 29, 2021
@delete-merged-branch delete-merged-branch bot deleted the feature/self-inject-storage branch September 29, 2021 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants