Repository navigation
engine: factory.team_* and factory.org_workstream* forward to the organization (Teams G3) - #2623
Merged
Merged
Conversation
…anization The desk reads and changes an organization's teams and workstreams through the local engine. Each new factory.* method checks its ids, builds the one route the Teams contract names, and sends it once to the attached connection with the session already held; the server's answer comes back in its typed shape. 403 is forbidden, 409 conflict, 412 conflict with reason "stale". factory.me also answers teams, and hello announces org_teams and org_workstreams. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
G1 put teams on api.Me, so the engine's private copy of the field goes. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
santoshkumarradha
force-pushed
the
teams/g3-engine-methods
branch
from
November 13, 2026 16:01
765ceb7 to
b7789e6
Compare
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…anization (#2623) The Teams wave G3 engine methods, factory.me teams, and hello org_teams/org_workstreams. Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
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.
Lane G3 of the Teams wave. Adds the local engine methods the desk calls, per the Teams SPEC contract, plus the hello words
org_teamsandorg_workstreams.What changed
internal/appwire/factory_org.go: typed wire types (OrgTeam, OrgWorkstream, …) and 15 methods (factory.teams,factory.team_create|rename|delete|member_add|member_remove,factory.org_workstreams,factory.org_workstream[_create|_update|_delete|_owner|_shares|_share_preview|_import]). Each checks ids (one path segment, handle shape, owner kind, rev ≥ 1), builds the one route the contract names, and calls the engine'sFactoryOrg.FactoryOrgCall. The app never chooses a path.cmd/codeaf/appfactory_org.go: carries the request with the session already held for the connection (credentialed), sends the rev asIf-Match, reads up to 8 MiB. Refusals keep their status: 403 →forbidden, 409 →conflict, 412 →conflictwithdetail.reason: "stale". A write that may have left isuncertain, never retried.factory.menow answersteams([]from an older server) and acceptsconnectionas well asfactory. EveryfactoryReadmethod accepts either word.Contract notes for the desk lanes
factory.*method takesfactory, notconnection. The new methods takeconnectionper SPEC and also readfactorywhenconnectionis absent, so either spelling works.engine_featuresis the hellofeatureslist; the words are exactlyorg_teamsandorg_workstreams.Tests:
cmd/codeaf/appfactory_org_test.goruns a stubhttptestserver that speaks the contract (not G1/G2). It covers every route and method, the bearer on every request, If-Match + 412 stale, 409/403 with the server's words, bad ids refused before sending, the older-server 404, andfactory.meteams.