Repository navigation
CP-9058: Document organisation, workspace and team announcements - #144
Merged
Merged
Conversation
CP-9058. Announcements gain scope_type and scope_id: an Organisation's, Workspace's or Team's announcements, written by its Organisation Admins, Workspace editors or Team leaders for the colleagues there. Updates the four Announcements operations, the request examples and the endpoint cards: who may see and change what, the 404 for a place that doesn't exist, and the list filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F1a5xoVQki9f6Eb7obyz99
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Jira: https://makerble.atlassian.net/browse/CP-9058
Rails PR: MakerbleDev/makerble#17468, the API v2 change. It is PR 4 of 4 and stacked on MakerbleDev/makerble#17452, MakerbleDev/makerble#17463 and MakerbleDev/makerble#17466.
MCP companion: MakerbleDev/makerble-mcp#139.
What changes
Announcements gain
scope_type/scope_id. These are an Organisation's, Workspace's or Team's announcements, written by its Organisation Admins, Workspace editors or Team leaders for the colleagues there, alongside Makerble's own "What's new in Makerble" popups.openapi.yaml:GET /announcementsgainsscope_type/scope_idquery filters.POST /announcementsgains a 404 for a place that doesn't exist, and two request examples (Makerble's own, and a Workspace's). These replace the singleexample, because OpenAPI doesn't allow both.AnnouncementandAnnouncementInputgainscope_type(enumCharity,Project,Team, nullable on the response) andscope_id. Thevisual_type,learn_more_urlandaudiencedescriptions explain the rules for a place's announcements.server.js: the Announcements section's description and its four endpoint cards, to match.The diff touches only
openapi.yamland the Announcements endpoint cards inserver.js: no styles,<head>,vercel.json,SPEC_PATHorassets/. Branched from the latestmain.npm run checkpasses.The Rails repo's vendored
spec/support/api_schemas/openapi.yamlhas the identical Announcements changes, and its contract specs (spec/requests/api/contract/announcements_spec.rb, 45 examples with the Authority specs) pass against them.Release timing
If the API docs are still pre-launch, this may be merged as soon as it has been reviewed. Once they have launched publicly, don't merge it until the Rails change is live in production, because every push to
maindeploys.🤖 Generated with Claude Code
https://claude.ai/code/session_01F1a5xoVQki9f6Eb7obyz99