-
Notifications
You must be signed in to change notification settings - Fork 11
Repin provenance to current bc3 HEAD; pin the participant_ids contract #491
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,192 @@ | ||
| [ | ||
| { | ||
| "name": "update-omits-participant-ids: an unaddressed participant list stays off the wire", | ||
| "description": "BC3 preserves the entry's participants only because the key is absent \u2014 until basecamp/bc3#12425 the controller called replace_participants unconditionally, so an omitted key wiped every participant and notified them. The SDK's job is narrow but load-bearing: when the caller says nothing about participants, participant_ids must not appear in the body at all. A compactor that emitted null, or a default that emitted [], would clear the list on the server.", | ||
| "operation": "UpdateScheduleEntry", | ||
| "method": "PUT", | ||
| "path": "/schedule_entries/{entryId}", | ||
| "pathParams": { | ||
| "entryId": 1069479523 | ||
| }, | ||
| "requestBody": { | ||
| "summary": "Team Meeting" | ||
| }, | ||
| "mockResponses": [ | ||
| { | ||
| "status": 200, | ||
| "headers": { | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "body": { | ||
| "id": 1069479523, | ||
| "status": "active", | ||
| "visible_to_clients": false, | ||
| "created_at": "2026-01-01T00:00:00Z", | ||
| "updated_at": "2026-01-01T00:00:00Z", | ||
| "title": "Team Meeting", | ||
| "inherits_status": true, | ||
| "type": "Schedule::Entry", | ||
| "url": "https://3.basecampapi.com/999/buckets/1/schedule_entries/1069479523.json", | ||
| "app_url": "https://3.basecamp.com/999/buckets/1/schedule_entries/1069479523", | ||
| "summary": "Team Meeting", | ||
| "all_day": false, | ||
| "starts_at": "2026-06-05T06:00:00Z", | ||
| "ends_at": "2026-06-05T08:30:00Z", | ||
| "participants": [ | ||
| { | ||
| "id": 1049715914, | ||
| "name": "Victor Cooper" | ||
| }, | ||
| { | ||
| "id": 1049715915, | ||
| "name": "Annie Bryan" | ||
| } | ||
| ], | ||
| "description_attachments": [], | ||
| "parent": { | ||
| "id": 1069479521, | ||
| "title": "Schedule", | ||
| "type": "Schedule", | ||
| "url": "https://3.basecampapi.com/999/buckets/1/schedules/1069479521.json", | ||
| "app_url": "https://3.basecamp.com/999/buckets/1/schedules/1069479521" | ||
| }, | ||
| "bucket": { | ||
| "id": 1, | ||
| "name": "The Leto Laptop", | ||
| "type": "Project" | ||
| }, | ||
| "creator": { | ||
| "id": 1049715914, | ||
| "name": "Victor Cooper", | ||
| "email_address": "victor@honchodesign.com", | ||
| "created_at": "2026-01-01T00:00:00Z", | ||
| "updated_at": "2026-01-01T00:00:00Z" | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "assertions": [ | ||
| { | ||
| "type": "requestCount", | ||
| "expected": 1 | ||
| }, | ||
| { | ||
| "type": "requestMethod", | ||
| "expected": "PUT", | ||
| "index": 0 | ||
| }, | ||
| { | ||
| "type": "requestBody", | ||
| "path": "summary", | ||
| "expected": "Team Meeting", | ||
| "index": 0 | ||
| }, | ||
| { | ||
| "type": "requestBodyAbsent", | ||
| "path": "participant_ids", | ||
| "index": 0 | ||
| }, | ||
| { | ||
| "type": "noError" | ||
| } | ||
| ], | ||
| "tags": [ | ||
| "schedule-entries", | ||
| "participants", | ||
| "omission" | ||
| ] | ||
| }, | ||
| { | ||
| "name": "update-empty-participant-ids: an explicit empty list reaches the wire", | ||
| "description": "The counterpart to omission: passing an explicitly empty list means \"remove everyone\" and must be sent as participant_ids: []. Ruby's compact_params and Python's _compact strip nil/None but not empty collections, so this distinguishes \"not addressed\" from \"addressed and cleared\" \u2014 the whole point of the BC3 guard.", | ||
| "operation": "UpdateScheduleEntry", | ||
| "method": "PUT", | ||
| "path": "/schedule_entries/{entryId}", | ||
| "pathParams": { | ||
| "entryId": 1069479523 | ||
| }, | ||
| "requestBody": { | ||
| "summary": "Team Meeting", | ||
| "participant_ids": [] | ||
| }, | ||
| "mockResponses": [ | ||
| { | ||
| "status": 200, | ||
| "headers": { | ||
| "Content-Type": "application/json" | ||
| }, | ||
| "body": { | ||
| "id": 1069479523, | ||
| "status": "active", | ||
| "visible_to_clients": false, | ||
| "created_at": "2026-01-01T00:00:00Z", | ||
| "updated_at": "2026-01-01T00:00:00Z", | ||
| "title": "Team Meeting", | ||
| "inherits_status": true, | ||
| "type": "Schedule::Entry", | ||
| "url": "https://3.basecampapi.com/999/buckets/1/schedule_entries/1069479523.json", | ||
| "app_url": "https://3.basecamp.com/999/buckets/1/schedule_entries/1069479523", | ||
| "summary": "Team Meeting", | ||
| "all_day": false, | ||
| "starts_at": "2026-06-05T06:00:00Z", | ||
| "ends_at": "2026-06-05T08:30:00Z", | ||
| "participants": [ | ||
| { | ||
| "id": 1049715914, | ||
| "name": "Victor Cooper" | ||
| }, | ||
| { | ||
| "id": 1049715915, | ||
| "name": "Annie Bryan" | ||
| } | ||
| ], | ||
| "description_attachments": [], | ||
| "parent": { | ||
| "id": 1069479521, | ||
| "title": "Schedule", | ||
| "type": "Schedule", | ||
| "url": "https://3.basecampapi.com/999/buckets/1/schedules/1069479521.json", | ||
| "app_url": "https://3.basecamp.com/999/buckets/1/schedules/1069479521" | ||
| }, | ||
| "bucket": { | ||
| "id": 1, | ||
| "name": "The Leto Laptop", | ||
| "type": "Project" | ||
| }, | ||
| "creator": { | ||
| "id": 1049715914, | ||
| "name": "Victor Cooper", | ||
| "email_address": "victor@honchodesign.com", | ||
| "created_at": "2026-01-01T00:00:00Z", | ||
| "updated_at": "2026-01-01T00:00:00Z" | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "assertions": [ | ||
| { | ||
| "type": "requestCount", | ||
| "expected": 1 | ||
| }, | ||
| { | ||
| "type": "requestMethod", | ||
| "expected": "PUT", | ||
| "index": 0 | ||
| }, | ||
| { | ||
| "type": "requestBody", | ||
| "path": "participant_ids", | ||
| "expected": [], | ||
| "index": 0 | ||
| }, | ||
| { | ||
| "type": "noError" | ||
| } | ||
| ], | ||
| "tags": [ | ||
| "schedule-entries", | ||
| "participants", | ||
| "clear" | ||
| ] | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| VERSION = "0.9.0" | ||
| API_VERSION = "2026-07-26" | ||
| API_VERSION = "2026-07-28" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Conformance cases supplying
description,all_day, ornotifywill succeed against a request that silently drops those fixture fields, masking serialization regressions for this operation. Map the remainingUpdateScheduleEntryRequestfields, preservingall_daypresence with a local bool pointer.Prompt for AI agents