Skip to content

V3 casl 658 activitylog migration#403

Merged
gunplar merged 31 commits intov3from
v3-CASL-658-activitylog-migration
Jan 23, 2025
Merged

V3 casl 658 activitylog migration#403
gunplar merged 31 commits intov3from
v3-CASL-658-activitylog-migration

Conversation

@gunplar
Copy link
Collaborator

@gunplar gunplar commented Jan 21, 2025

No description provided.

Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
…-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 <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
@github-actions
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% 🍏

gradlePluginPortal()
}
plugins {
kotlin("jvm") version "2.1.0"
Copy link
Contributor

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 <phuc.mai@here.com>
Signed-off-by: phmai <phuc.mai@here.com>
@github-actions
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() {

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);

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
Collaborator Author

Choose a reason for hiding this comment

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

confirmed with Alex through chat

@github-actions
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% 🍏

@gunplar gunplar merged commit 1703f3e into v3 Jan 23, 2025
2 of 3 checks passed
@gunplar gunplar deleted the v3-CASL-658-activitylog-migration branch March 4, 2025 13:07
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