-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
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
There was a problem hiding this 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
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/auth/ProtoUser.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/storage/MetaStorage.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/entities/Group.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/entities/Group.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/bakdata/conquery/models/forms/frontendconfiguration/FormConfigProcessor.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/bakdata/conquery/models/forms/frontendconfiguration/FormConfigProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/resources/admin/rest/AdminProcessor.java
Show resolved
Hide resolved
backend/src/test/java/com/bakdata/conquery/api/form/config/FormConfigTest.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/bakdata/conquery/integration/common/LoadingUtil.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/auth/ProtoUser.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/AuthorizationController.java
Outdated
Show resolved
Hide resolved
.../main/java/com/bakdata/conquery/models/auth/basic/UserAuthenticationManagementProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/entities/PermissionOwner.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/bakdata/conquery/util/support/TestLoggingFactory.java
Outdated
Show resolved
Hide resolved
…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
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/auth/ProtoUser.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/auth/ProtoUser.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/auth/ProtoUser.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/SerializingStore.java
Outdated
Show resolved
Hide resolved
.../main/java/com/bakdata/conquery/models/auth/basic/UserAuthenticationManagementProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/develop/DevAuthConfig.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/entities/PermissionOwner.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
Outdated
Show resolved
Hide resolved
…r.java Co-authored-by: awildturtok <1553491+awildturtok@users.noreply.github.com>
…le global injection into json deserialization
return userManager.addUser(getUser(), credentials); | ||
|
||
@JsonIgnore | ||
public UserId getId() { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jep ;)
.../main/java/com/bakdata/conquery/models/auth/basic/UserAuthenticationManagementProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
Show resolved
Hide resolved
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warum toTest?
There was a problem hiding this comment.
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 ;)
There was a problem hiding this comment.
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
8af5868
to
f37f259
Compare
No description provided.