Distinguish between empty and nil team token description#1088
Conversation
An empty string for a description should be unique from an omitted, nil description. Only nil descriptions should use the legacy token API.
Datadog ReportBranch report: ✅ 0 Failed, 1439 Passed, 168 Skipped, 17m 17.29s Total Time |
eda4110 to
8250e0c
Compare
|
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
|
Hi @mkam ... The release notes say this is breaking change and yet it says "BETA, which is EXPERIMENTAL, SUBJECT TO CHANGE," These things seem to be at odds... A breaking experimental change? Would we instead wait for it to not be experimental before merging this? |
|
@glennsarti Multiple team tokens is the new feature that hasn't been GA'd yet, and there shouldn't be any users of this feature yet. We shouldn't be actually breaking anyone in this change from string to string pointer. However, the initial go-tfe related code for multiple team tokens where I added If this is confusing, I can change the heading for the changelog entry or add more clarification! |
Description
An empty string for a description should be unique from an omitted, nil description, and only nil descriptions should use the legacy token API. This PR updates Description to be a string pointer to distinguish between these two values.
Testing plan
Output from tests
Test output of all team token tests