Skip to content

Start replicated models based on version hash#2382

Open
abstraktor wants to merge 1 commit intomainfrom
feat/start-replicated-models-by-version-hash
Open

Start replicated models based on version hash#2382
abstraktor wants to merge 1 commit intomainfrom
feat/start-replicated-models-by-version-hash

Conversation

@abstraktor
Copy link
Collaborator

@abstraktor abstraktor commented Feb 12, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Test Results

  247 files    247 suites   50m 38s ⏱️
1 414 tests 1 403 ✅ 11 💤 0 ❌
1 424 runs  1 413 ✅ 11 💤 0 ❌

Results for commit fcae6cc.

♻️ This comment has been updated with latest results.

@abstraktor abstraktor force-pushed the feat/start-replicated-models-by-version-hash branch from 4e1dc75 to ac48054 Compare February 18, 2026 11:35
@abstraktor abstraktor changed the base branch from main to fix/reference-roles-in-inodejs February 18, 2026 11:36
@abstraktor abstraktor force-pushed the feat/start-replicated-models-by-version-hash branch 3 times, most recently from edb7441 to 9ea7d6f Compare February 18, 2026 13:47
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

JVM coverage report

Overall Project 59.03% -0.06%
Files changed 33.51%

File Coverage
ReplicatedModel.kt 78.72% -11.38%

Base automatically changed from fix/reference-roles-in-inodejs to main February 18, 2026 14:28
@abstraktor abstraktor force-pushed the feat/start-replicated-models-by-version-hash branch from 9ea7d6f to 035cb2d Compare February 18, 2026 15:04
@abstraktor abstraktor force-pushed the feat/start-replicated-models-by-version-hash branch from 035cb2d to fcae6cc Compare February 23, 2026 10:27
}

override suspend fun poll(): CLVersion {
// let's pretent to do something. The version is actually immutable and won't ever change…
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of using a ReplicatedModel that doesn't do any replication? Just load the version as a read-only model instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using a unified api: A user may or may not have permission to modify the document – we want to use the same api in both cases.

Also: We typically want to modify only one model and load one or more additional models as readonly libraries.

This felt like the easiest implementation – we can also consider generalizing ReplicatedModel though (ReplicatedModel and ReadonlyModel would implement an interface called …Model then?)…

@abstraktor abstraktor marked this pull request as ready for review February 25, 2026 20:02
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