apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/hgngenterprises/riders.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: 4dc91d39097e57b6d8dabc99ca9a3072 creationTimestamp: "2026-09-07T08:46:31Z" generation: 8 labels: branch: main build: "28" context: release created-by-lighthouse: "true" event-GUID: 9d7b888c-aa98-11f1-95f6-45afc38f4da6 lighthouse.jenkins-x.io/baseSHA: 6a767cd096710c5b123531e72456e00f3aecc5da lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1788770791084" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: genterprises-riders-main-release-lj59c lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 6a767cd096710c5b123531e72456e00f3aecc5da lighthouse.jenkins-x.io/refs.org: hgngenterprises lighthouse.jenkins-x.io/refs.repo: riders lighthouse.jenkins-x.io/type: postsubmit owner: hgngenterprises podName: genterprises-riders-main-release-zdxxl-from-build-pack-pod provider: github repository: riders tekton.dev/pipeline: genterprises-riders-main-release 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.29 operation: Update time: "2026-09-07T08:48:38Z" - 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:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-09-07T08:50:05Z" name: hgngenterprises-riders-main-28 namespace: jx resourceVersion: "330150045" uid: 8235706d-4127-419b-bc62-1861caceb986 spec: baseSHA: 6a767cd096710c5b123531e72456e00f3aecc5da batchPipelineActivity: {} build: "28" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/hgngenterprises/riders/main/28.log completedTimestamp: "2026-09-07T08:49:59Z" context: release gitBranch: main gitOwner: hgngenterprises gitRepository: riders gitUrl: https://github.com/hgngenterprises/riders.git lastCommitMessage: | fix: move rider identity consumers into partner space, not hr.employee PR #36 resolved operator identity from asset_management, changing the identity object's `id` from an hr.employee id to a res.partner id. Every downstream consumer that queried hr.employee-keyed models with that id kept doing so, so those queries stopped matching anything. The clearest symptom was `GET /riders`, which filtered hr.employee on `parent_id = ` and never matched, so every team lead saw an empty rider list (reported by Vishal, a TL in company 4). This intentionally does not restore hr.employee ids. Per direction, the identity object is renamed `ctx.partner` (its `id` is a res.partner id) and every broken call site is moved into asset_management/partner space instead of being translated back to hr.employee. Fixed call sites: * The rider list, single-rider lookup (GET /:id), and the TL-viewing-a -rider's-history check (GET /:id/transactions) now resolve team membership from asset.team/asset.team.member, walking a manager's team subtree so a Senior Team Lead who manages a team of Team Leads still sees the riders under them, not the Team Leads themselves. * Vehicle endpoints now key off asset.asset/operator_id instead of the unrelated legacy maintenance.equipment/employee_id. Unassign also fixes a separate, pre-existing bug: it wrote a nonexistent manager_id field instead of reassigning the vehicle's operator. * addPan (POST /pan, /aadhaar) is the one confirmed data-integrity bug: it filed ir.attachment records under hr.employee with a partner id in res_id, which either overwrites/exposes an unrelated employee's PAN or orphans the upload. Now files under res.partner with the right id. * PUT /swap was crashing outright on a field the new identity object never sets. ctx.partner.id already is that partner id. Wire contract to the SPARQ app is unchanged: same field names, same pagination shape. Only the id space behind opaque fields changes, and every consumer of those ids in this service moves in lockstep. Kept out of scope: the deprecated fleet.team dual-read path, and middleware/smartRouting.js (dead code, not wired into any route). The proper follow-up is to source the rider list from Bifrost's team API instead of raw JSON-RPC queries, once riders has a real per-user identity to authorize that call with; noted in the PR body. Tests first: two new test files reproduce every regression above against pre-fix code, then pass against the fix. odoo-company-scope.test.js is updated to match the model getRider now deliberately queries. Co-Authored-By: Claude Opus 5 (1M context) lastCommitSHA: 0b326b0423cd74cbbd129da8a79a305239fcd592 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: hgngenterprises/riders/main releaseNotesURL: https://github.com/hgngenterprises/riders/releases/tag/v0.27.22 startedTimestamp: "2026-09-07T08:46:31Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-09-07T08:49:59Z" name: from build pack startedTimestamp: "2026-09-07T08:46:35Z" status: Succeeded steps: - completedTimestamp: "2026-09-07T08:47:14Z" name: Git Clone startedTimestamp: "2026-09-07T08:46:35Z" status: Succeeded - completedTimestamp: "2026-09-07T08:47:17Z" name: Next Version startedTimestamp: "2026-09-07T08:47:15Z" status: Succeeded - completedTimestamp: "2026-09-07T08:47:20Z" name: Jx Variables startedTimestamp: "2026-09-07T08:47:17Z" status: Succeeded - completedTimestamp: "2026-09-07T08:47:49Z" name: Build Npm Install startedTimestamp: "2026-09-07T08:47:21Z" status: Succeeded - completedTimestamp: "2026-09-07T08:48:30Z" name: Build Container Build startedTimestamp: "2026-09-07T08:47:50Z" status: Succeeded - completedTimestamp: "2026-09-07T08:48:38Z" name: Promote Changelog startedTimestamp: "2026-09-07T08:48:30Z" status: Succeeded - completedTimestamp: "2026-09-07T08:48:42Z" name: Promote Helm Release startedTimestamp: "2026-09-07T08:48:38Z" status: Succeeded - completedTimestamp: "2026-09-07T08:49:59Z" name: Promote Jx Promote startedTimestamp: "2026-09-07T08:48:43Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5704 startedTimestamp: "2026-09-07T08:49:27Z" status: Succeeded startedTimestamp: "2026-09-07T08:49:27Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5705 startedTimestamp: "2026-09-07T08:49:56Z" status: Succeeded startedTimestamp: "2026-09-07T08:49:56Z" status: Succeeded version: 0.27.22 status: {}