apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/bifrost.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: f2d5196407fd93d55baf0723db9fe8da creationTimestamp: "2026-05-26T19:51:45Z" generation: 7 labels: branch: main build: "105" context: release created-by-lighthouse: "true" event-GUID: c06a2140-593b-11f1-9859-2d9460a8d90f lighthouse.jenkins-x.io/baseSHA: 6bc902954d4b90f37c106decfa898138c254be05 lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1779825104715" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: apitaltrade-bifrost-main-release-tmtlx lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 6bc902954d4b90f37c106decfa898138c254be05 lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: bifrost lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: apitaltrade-bifrost-main-release-nf9bs-from-build-pack-pod provider: github repository: bifrost tekton.dev/pipeline: apitaltrade-bifrost-main-release-nf9bs managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.18 operation: Update time: "2026-05-26T19:57:38Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: f:completedTimestamp: {} f:status: {} manager: jx-promote-0.6.31 operation: Update time: "2026-05-26T19:58:47Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-05-26T20:07:12Z" name: greencapitaltrade-bifrost-main-105 namespace: jx resourceVersion: "52449965" uid: f8ebde10-795c-4711-8b2b-e08193ec01f6 spec: baseSHA: 6bc902954d4b90f37c106decfa898138c254be05 batchPipelineActivity: {} build: "105" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/bifrost/main/105.log completedTimestamp: "2026-05-26T19:58:22Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: bifrost gitUrl: https://github.com/greencapitaltrade/bifrost.git lastCommitMessage: "feat(team): default role_id + manager_id on create so name-only mutation works\n\nFlash's CREATE_TEAM mutation sends only `{ name }`. Fury forwards\n`{ uid, company_id, name }`. Bifrost's create_team controller had\n`role_id` / `manager_id` as optional kwargs but never defaulted\nthem — and asset.team's model declares both fields required=True.\nNet effect: every Flash team-create call would crash at INSERT\nwith \"role_id required\" once the user's company actually had the\nasset_team_management feature enabled.\n\nFix: introduce `asset.team._apply_create_defaults(vals, user)`:\n- role_id defaults to the company's 'rider' role (looked up via\n code, assumes the role catalogue is already seeded by\n asset.role.get_or_create_default_roles).\n- manager_id defaults to user.partner_id (the operator creating\n the team is the initial manager until they hand off via the UI).\n- Explicit values pass through unchanged.\n- Returns a new dict so callers can chain/inspect.\n\nThe controller now calls the helper between vals construction and\n`env['asset.team'].create(vals)`. Behaviour for callers that DID\npass role/manager is unchanged.\n\nTDD (6 assertions in test_team_create_defaults.py):\n- helper method exists on the model\n- minimal vals get role_id defaulted to rider\n- minimal vals get manager_id defaulted to user.partner\n- explicit role_id passes through\n- explicit manager_id passes through\n- end-to-end create() actually persists with the defaulted vals\n (uses skip_feature_check to bypass the contract gate, which is a\n separate concern from this fix)\n\nRED → GREEN. Combined team-related suites: 15/15.\n\n\U0001F916 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.7 \n" lastCommitSHA: f03c60f626bc1cd3782f3c7b460c605f10f87aff message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/bifrost/main releaseNotesURL: https://github.com/greencapitaltrade/bifrost/releases/tag/v6.71.0 startedTimestamp: "2026-05-26T19:51:45Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-05-26T19:58:22Z" name: Release startedTimestamp: "2026-05-26T19:57:22Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4011 startedTimestamp: "2026-05-26T19:58:22Z" status: Succeeded startedTimestamp: "2026-05-26T19:58:22Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-05-26T19:58:50Z" name: from build pack startedTimestamp: "2026-05-26T19:52:11Z" status: Succeeded steps: - completedTimestamp: "2026-05-26T19:52:34Z" name: Git Clone startedTimestamp: "2026-05-26T19:52:11Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:39Z" name: Next Version startedTimestamp: "2026-05-26T19:52:35Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:43Z" name: Jx Variables startedTimestamp: "2026-05-26T19:52:39Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:43Z" name: Setup Npm Nexus startedTimestamp: "2026-05-26T19:52:43Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:46Z" name: Setup Pip Cache startedTimestamp: "2026-05-26T19:52:43Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:48Z" name: Process Config Templates startedTimestamp: "2026-05-26T19:52:47Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:48Z" name: Update Fleet Management Version startedTimestamp: "2026-05-26T19:52:48Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:55Z" name: Check Registry startedTimestamp: "2026-05-26T19:52:52Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:14Z" name: Build Container Build startedTimestamp: "2026-05-26T19:53:04Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:38Z" name: Promote Changelog startedTimestamp: "2026-05-26T19:57:15Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:42Z" name: Promote Helm Release startedTimestamp: "2026-05-26T19:57:39Z" status: Succeeded - completedTimestamp: "2026-05-26T19:58:50Z" name: Promote Jx Promote startedTimestamp: "2026-05-26T19:57:42Z" status: Succeeded - kind: Stage stage: completedTimestamp: "2026-05-26T19:58:50Z" name: from build pack startedTimestamp: "2026-05-26T19:52:11Z" status: Succeeded steps: - completedTimestamp: "2026-05-26T19:52:34Z" name: Git Clone startedTimestamp: "2026-05-26T19:52:11Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:39Z" name: Next Version startedTimestamp: "2026-05-26T19:52:35Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:43Z" name: Jx Variables startedTimestamp: "2026-05-26T19:52:39Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:43Z" name: Setup Npm Nexus startedTimestamp: "2026-05-26T19:52:43Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:46Z" name: Setup Pip Cache startedTimestamp: "2026-05-26T19:52:43Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:48Z" name: Process Config Templates startedTimestamp: "2026-05-26T19:52:47Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:48Z" name: Update Fleet Management Version startedTimestamp: "2026-05-26T19:52:48Z" status: Succeeded - completedTimestamp: "2026-05-26T19:52:55Z" name: Check Registry startedTimestamp: "2026-05-26T19:52:52Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:14Z" name: Build Container Build startedTimestamp: "2026-05-26T19:53:04Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:38Z" name: Promote Changelog startedTimestamp: "2026-05-26T19:57:15Z" status: Succeeded - completedTimestamp: "2026-05-26T19:57:42Z" name: Promote Helm Release startedTimestamp: "2026-05-26T19:57:39Z" status: Succeeded - completedTimestamp: "2026-05-26T19:58:50Z" name: Promote Jx Promote startedTimestamp: "2026-05-26T19:57:42Z" status: Succeeded version: 6.71.0 status: {}