Skip to content

Conversation

@VeskeR
Copy link
Contributor

@VeskeR VeskeR commented Jul 4, 2025

Adds spec for LiveMap.size, LiveMap.entries, LiveMap.keys and LiveMap.values

@github-actions github-actions bot temporarily deployed to staging/pull/341 July 4, 2025 17:07 Inactive
@VeskeR VeskeR added the live-objects Related to LiveObjects functionality. label Jul 4, 2025
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 4, 2025
Motivation as in 3f6de86; the new spec points in [1] tell us these can
throw.

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 4, 2025
Based on [1] at 7d4c215. A few outstanding questions on the PR; have
implemented based on my current understanding of what's there.

Development approach similar to that described in 4494033. Also, have
not implemented the specification points related to RTO2's channel mode
checking for same reasons as mentioned there.

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 4, 2025
Based on [1] at 7d4c215. A few outstanding questions on the PR; have
implemented based on my current understanding of what's there.

Development approach similar to that described in 4494033. Also, have
not implemented the specification points related to RTO2's channel mode
checking for same reasons as mentioned there.

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 4, 2025
I didn't do this in 4494033 because the specification hadn't yet
specified the status code (it was an outstanding question on the PR at
time of implementing), but the newly-written spec [1] for other LiveMap
getter methods _does_ specify the status code as being 400. So DRY up
the creation of these errors, and supply a status code (assuming that
the spec will be updated to specify 400 for these existing ones too).

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 4, 2025
Based on [1] at 7d4c215. A few outstanding questions on the PR; have
implemented based on my current understanding of what's there.

Development approach similar to that described in 4494033. Also, have
not implemented the specification points related to RTO2's channel mode
checking for same reasons as mentioned there.

[1] ably/specification#341
VeskeR added a commit to ably/ably-js that referenced this pull request Jul 7, 2025
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 7, 2025
Motivation as in 3f6de86; the new spec points in [1] tell us these can
throw.

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 7, 2025
I didn't do this in 4494033 because the specification hadn't yet
specified the status code (it was an outstanding question on the PR at
time of implementing), but the newly-written spec [1] for other LiveMap
getter methods _does_ specify the status code as being 400. So DRY up
the creation of these errors, and supply a status code (assuming that
the spec will be updated to specify 400 for these existing ones too).

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 7, 2025
Based on [1] at 7d4c215. A few outstanding questions on the PR; have
implemented based on my current understanding of what's there.

Development approach similar to that described in 4494033. Also, have
not implemented the specification points related to RTO2's channel mode
checking for same reasons as mentioned there.

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 8, 2025
I didn't do this in cb427d8 because the specification hadn't yet
specified the status code (it was an outstanding question on the PR at
time of implementing), but the newly-written spec [1] for other LiveMap
getter methods _does_ specify the status code as being 400. So DRY up
the creation of these errors, and supply a status code (assuming that
the spec will be updated to specify 400 for these existing ones too).

[1] ably/specification#341
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jul 8, 2025
Based on [1] at 7d4c215. A few outstanding questions on the PR; have
implemented based on my current understanding of what's there.

Development approach similar to that described in cb427d8. Also, have
not implemented the specification points related to RTO2's channel mode
checking for same reasons as mentioned there.

[1] ably/specification#341
VeskeR added a commit to ably/ably-js that referenced this pull request Jul 22, 2025
VeskeR added a commit to ably/ably-js that referenced this pull request Jul 22, 2025
VeskeR added a commit to ably/ably-js that referenced this pull request Jul 22, 2025
@VeskeR VeskeR force-pushed the PUB-1041/object-sync branch from dd25dca to fc46aed Compare September 3, 2025 08:45
@VeskeR VeskeR force-pushed the objects-access-api branch from 7791cd3 to 24e151e Compare September 3, 2025 08:46
Copy link
Collaborator

@sacOO7 sacOO7 left a comment

Choose a reason for hiding this comment

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

Except from the minor comments ( makes spec explicit and more clear to understand )
LGTM

Base automatically changed from PUB-1041/object-sync to main September 8, 2025 08:22
Adds spec for `LiveMap.size`, `LiveMap.entries`, `LiveMap.keys` and
`LiveMap.values`
@VeskeR VeskeR force-pushed the objects-access-api branch from 0bff266 to dba8ca4 Compare September 8, 2025 08:23
@VeskeR VeskeR merged commit 4f63fe5 into main Sep 8, 2025
2 checks passed
@VeskeR VeskeR deleted the objects-access-api branch September 8, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

live-objects Related to LiveObjects functionality.

Development

Successfully merging this pull request may close these issues.

4 participants