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

Counts and Lists: Improvements to SDK docs #3569

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

markmandel
Copy link
Collaborator

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup

/kind documentation

/kind feature
/kind hotfix
/kind release

What this PR does / Why we need it:

Much like the player tracking SDK documentation, I wanted to be explicit in the SDK documentation for Counts and Lists where data was being stored, and where default values where coming from with links back to the generated API reference - so made some improvements to help facilitate that.

Which issue(s) this PR fixes:

Work on #2716

Special notes for your reviewer:

This does still need a Counters and Lists landing page to reference (this is my next task) as well, but wanted to get this done while I was thinking about it.

@markmandel markmandel added the kind/documentation Documentation for Agones label Jan 5, 2024
@github-actions github-actions bot added the size/S label Jan 5, 2024
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5e7eac74-396e-48de-86d1-a70b0d580d42

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3569/head:pr_3569 && git checkout pr_3569
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-2d75efb-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2e85c120-524a-4ccf-b5cb-bcdcf572294d

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3569/head:pr_3569 && git checkout pr_3569
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-c0d16e1-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: aef7dfa7-fafe-4a99-b3d0-be36cab1f630

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3569/head:pr_3569 && git checkout pr_3569
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-3cd1625-amd64

@markmandel
Copy link
Collaborator Author

Didn't push the changes last week 🤦🏻 that should be better now.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: cea3619b-9428-4104-9fe9-18359710dde7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3569/head:pr_3569 && git checkout pr_3569
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-7d52c33-amd64

Copy link
Collaborator

@igooch igooch left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment on clarity.

Comment on lines 253 to 256
In the event where a Counter or List may extend past the maximum capacity Allocation/API changes to
[`GameServer.status`]({{< ref "/docs/Reference/agones_crd_api_reference.html#agones.dev/v1.GameServerStatus" >}}) values
while a batched Counter or List modification operation has yet to be applied, those values will be silently truncated to
the capacity of that Counter or List.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is still confusing. Subject -> Verb -> Object is an easier format to understand.

Suggested change
In the event where a Counter or List may extend past the maximum capacity Allocation/API changes to
[`GameServer.status`]({{< ref "/docs/Reference/agones_crd_api_reference.html#agones.dev/v1.GameServerStatus" >}}) values
while a batched Counter or List modification operation has yet to be applied, those values will be silently truncated to
the capacity of that Counter or List.
The Agones SDK server batches the update operations of [`GameServer.Status.Counters` and `GameServer.Status.Lists`][gameserverstatus] asynchronously. This means that if you update [`GameServer.status`]({{< ref "/docs/Reference/agones_crd_api_reference.html#agones.dev/v1.GameServerStatus" >}}) values through both the SDK and the Allocation/Kubernetes API, the batch processing may silently truncate some of those values to the capacity of that Counter or List.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you! That does read much better. Adding change and updating!

Much like the player tracking SDK documentation, I wanted to be explicit
in the SDK documentation for Counts and Lists where data was being
stored, and where default values where coming from with links back to
the generated API reference - so made some improvements to help
facilitate that.

This does still need a Counters and Lists landing page to reference
(this is my next task) as well, but wanted to get this done while I was
thinking about it.

Work on googleforgames#2716
@markmandel markmandel enabled auto-merge (squash) January 24, 2024 21:56
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 17183739-2283-4738-b019-d5a43797cb50

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3569/head:pr_3569 && git checkout pr_3569
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-469b560-amd64

@markmandel markmandel merged commit 3d21819 into googleforgames:main Jan 24, 2024
4 checks passed
@markmandel markmandel deleted the docs/cl-sdl branch January 24, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Documentation for Agones size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants