Let schedule entries be highlighted and carry a join link
Â
RO
2d ago+231+231+012345678901234567890123456789-6-6-0123456789
Summary
schedule createandschedule updatetake--highlightand--join-url, covering the SDK'shighlightedandurlfields onCreateScheduleEntryand the update/replace path.updatesends neither unless asked, so Basecamp keeps the entry's current highlight and join link (both are preserved on omission by the full-replace PUT).--no-highlightor--highlight=falseremoves the highlight.--no-join-urlor--join-url ""removes the link. Using both forms of the same flag at once is a usage error, and nothing is sent.- The join link goes out as
urland reads back asjoin_url, as the SDK documents. The response'surlis still the entry's own API URL.showoutput (JSON and human) already carriesjoin_urlandhighlighted. New tests now lock that in. - On
create, an empty--join-urlis left out, since a new entry has no link to clear.
Draft status is in #1019 (schedule create --draft), so this PR leaves it out. The two touch neighbouring lines in schedule.go and .surface, so whichever merges second needs a trivial rebase.
Part of the Basecamp card "[CLI] Schedule entries: highlight, join link and draft status".
Verification
- New request-body tests for create and update failed before the change (unknown flag) and pass now. They cover set, explicit false/empty, the
--no-*forms, omission (nohighlightedorurlkey on an unrelated update), conflicts, and thatjoin_urlis never sent. - Full local
bin/cipassed on this commit. - Not runtime-verified against a local bc3. The isolated dev server needs
bin/setupin the shared bc3 checkout first, and that was out of scope here.
Summary by cubic
Adds --highlight and --join-url flags to schedule create and schedule update so schedule entries can be highlighted and carry a join link.
- On update, neither field is sent unless asked for, so Basecamp preserves the entry's current highlight and link;
--no-highlight,--no-join-url, and--join-url ""remove them. - The join link is sent as
urland reads back asjoin_url;showoutput already exposes both. - On create, an empty
--join-urlis omitted since a new entry has no link to clear. - Using both forms of the same flag at once is a usage error and nothing is sent, including when the
--no-*form is given an explicitfalse.