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

V3 casl 658 activitylog migration #403

Open
wants to merge 31 commits into
base: v3
Choose a base branch
from

Conversation

gunplar
Copy link
Collaborator

@gunplar gunplar commented Jan 21, 2025

No description provided.

Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
…-migration

# Conflicts:
#	here-naksha-handler-activitylog/src/main/java/com/here/naksha/handler/activitylog/ActivityLogHandler.java
#	here-naksha-handler-activitylog/src/test/java/com/here/naksha/handler/activitylog/assertions/ActivityLogSuccessResultAssertions.java
#	here-naksha-lib-model/src/commonMain/kotlin/naksha/model/objects/NakshaProperties.kt
#	here-naksha-lib-model/src/commonMain/kotlin/naksha/model/request/Write.kt
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Signed-off-by: phmai <[email protected]>
Copy link

Code Coverage

Overall Project 32.55% -0.23% 🍏
Files changed 86.88% 🍏

Module Coverage
here-naksha-handler-activitylog 90.77% -6.11% 🍏
here-naksha-lib-core 29.69% -0.05% 🍏
Files
Module File Coverage
here-naksha-handler-activitylog ActivityLogHandlerProperties.java 100% 🍏
ReversePatch.java 100% 🍏
ActivityLogRequestTranslationUtil.java 97.89% -0.7% 🍏
ActivityLogHandler.java 96.89% -2.54% 🍏
NakshaActivityLog.kt 91.63% -8.37% 🍏
ReversePatchUtil.java 90.71% 🍏
ActivityLogEnhancer.java 89.76% 🍏
ActivityLogComparator.java 88.89% 🍏
Original.kt 69.19% -30.81% 🍏
here-naksha-lib-core JsonObject.java 47.61% 🍏
EXyzAction.java 0% 🍏
XyzActivityLog.java 0% -19.05% 🍏
Original.java 0% -7.89% 🍏
License.java 0% 🍏
Constraint.java 0% 🍏

@@ -4,6 +4,9 @@ pluginManagement {
maven("https://plugins.gradle.org/m2/")
gradlePluginPortal()
}
plugins {
kotlin("jvm") version "2.1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you move it to builSrc/build.gradle.kts? in dependencies section we have configuration of other plugins' versions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

roger that

Signed-off-by: phmai <[email protected]>
Copy link

Code Coverage

Overall Project 32.56% -0.23% 🍏
Files changed 86.88% 🍏

Module Coverage
here-naksha-handler-activitylog 91.04% -6.11% 🍏
here-naksha-lib-core 29.68% -0.05% 🍏
Files
Module File Coverage
here-naksha-handler-activitylog ActivityLogHandlerProperties.java 100% 🍏
ReversePatch.java 100% 🍏
ActivityLogComparator.java 100% 🍏
ActivityLogRequestTranslationUtil.java 97.89% -0.7% 🍏
ActivityLogHandler.java 96.89% -2.54% 🍏
NakshaActivityLog.kt 91.63% -8.37% 🍏
ReversePatchUtil.java 90.71% 🍏
ActivityLogEnhancer.java 89.76% 🍏
Original.kt 69.19% -30.81% 🍏
here-naksha-lib-core JsonObject.java 47.61% 🍏
EXyzAction.java 0% 🍏
XyzActivityLog.java 0% -19.05% 🍏
Original.java 0% -7.89% 🍏
License.java 0% 🍏
Constraint.java 0% 🍏

import naksha.base.NullableProperty
import naksha.model.objects.NakshaProperties

class NakshaActivityLog : AnyObject() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like that you mixed in kotlin for making your life easier!

.toArray(PQuery[]::new);
final ReadFeatures readFeatures = new ReadFeatures(properties.getSpaceId());
readFeatures.setQueryHistory(true);
readFeatures.setVersions(Integer.MAX_VALUE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line needs clarification (I think we should ask Alex) - whether the
.withReturnAllVersions(true) from v2 is equal to .setQueryHistory(true).setVersions(Integere.MAX_VALUE).

It's a fair assumption but double-checking wouldn't harm

Copy link

Code Coverage

Overall Project 32.55% -0.23% 🍏
Files changed 86.88% 🍏

Module Coverage
here-naksha-handler-activitylog 90.77% -6.11% 🍏
here-naksha-lib-core 29.68% -0.05% 🍏
Files
Module File Coverage
here-naksha-handler-activitylog ActivityLogHandlerProperties.java 100% 🍏
ReversePatch.java 100% 🍏
ActivityLogRequestTranslationUtil.java 97.89% -0.7% 🍏
ActivityLogHandler.java 96.89% -2.54% 🍏
NakshaActivityLog.kt 91.63% -8.37% 🍏
ReversePatchUtil.java 90.71% 🍏
ActivityLogEnhancer.java 89.76% 🍏
ActivityLogComparator.java 88.89% 🍏
Original.kt 69.19% -30.81% 🍏
here-naksha-lib-core JsonObject.java 47.61% 🍏
EXyzAction.java 0% 🍏
XyzActivityLog.java 0% -19.05% 🍏
Original.java 0% -7.89% 🍏
License.java 0% 🍏
Constraint.java 0% 🍏

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.

3 participants