Skip to content

Conversation

@vladvelici
Copy link
Contributor

Added clipped, totalClientId and totalUnidentified where they were missing.

| total | number | The sum of the counts from all clients who have published an annotation with this name. |
| clientIds | { [key: string]: number } | A list of the clientIds of all clients who have published an annotation with this name, and the count each of them have contributed. |
| totalUnidentified | number | The sum of the counts from annotations of unidentified clients. |
| clipped | boolean | Indicates whether the clientIds map has been clipped (the total and totalClients counts are unaffected). |
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps be more specific and say that total/totalClientIds/totalUnidentified represent the values of the full-unclipped summary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
| clipped | boolean | Indicates whether the clientIds map has been clipped (the total and totalClients counts are unaffected). |
| clipped | boolean | Indicates whether the clientIds map has been clipped. Note that `total` and `totalClients` represent the values of the unclipped summary. |

?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

**** @(TM7d1a)@ @total@ integer
**** @(TM7d1b)@ @clientIds@ @Dict<string, integer>@
**** @(TM7d1c)@ @clipped@ boolean (must be forced to false if not set over the wire)
**** @(TM7d1d)@ @totalUnidentified@ integer
Copy link
Contributor

Choose a reason for hiding this comment

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

We should document these properties with what they do, as we do in TM2*.

*** @(TM7c1)@ @SummaryClientIdList@ is an object containing:
**** @(TM7c1a)@ @total@ integer
**** @(TM7c1b)@ @clientIds@ array of strings
**** @(TM7c1c)@ @clipped@ boolean (must be forced to false if not set over the wire)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick for consistency - a similar wording to TM2*, in form of "If not set on the wire, the SDK must ... "

@vladvelici
Copy link
Contributor Author

Updated. @AndyTWF I've pushed a new commit but I'll squash them into one before merging.

@vladvelici vladvelici requested a review from AndyTWF September 22, 2025 15:07
@AndyTWF
Copy link
Contributor

AndyTWF commented Sep 22, 2025

@vladvelici Looks like https://github.com/ably/specification/pull/382/files#r2368172590 still needs a conclusion?

@vladvelici
Copy link
Contributor Author

@AndyTWF sorry missed that one, done

@vladvelici vladvelici merged commit 7021928 into main Sep 23, 2025
2 checks passed
@vladvelici vladvelici deleted the add-clipped-to-summary-spec branch September 23, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants