Repository navigation
Conversation
…who may view the request A task read or task list returned the payload of a change request's review task to any reader of the asset, including the proposed values. The task now keeps its change-request fields, and their change history, for readers who may view the request: admins, the asset's owners and reviewers, the requester, and assignees of its review task.
…view The review of pending changes showed a column change as the whole column list with no published value. Each changed column now shows its own published and proposed value, as the request's change preview does.
…e asset's status A lifecycle configuration takes exits: stages such as Deprecated or Archived it moves an asset to from any stage, automatically once conditions hold or when a user requests it. A user requests one through the entity's new lifecycleRequest field, offered from the stage badge of the assets whose own lifecycle takes that request. The request reaches only the lifecycle playbooks that take requests, is checked against the lifecycle owning the asset, and survives CSV imports, session consolidation and workflow writes.
… requests in FilterEntityImplTest The trigger's field filter keeps its signature; a change carrying a lifecycle request also passes when the workflow takes requests, and only then looks the workflow up.
…fecycle, declare lifecycleRequest - Comment, resolve, close, PATCH and PUT responses carry a review task's change-request fields only for readers who may view the request, as reads do. - A lifecycle request fires only the lifecycle that owns the entity's stage. - om:lifecycleRequest is declared in the ontology. - The unoffered-stage IT asserts the 400, a 404 and a PUT-keeps-request IT are added, the no-chip Playwright check waits for the offer, and the unused fieldTriggers overload and the no-op gate entry are removed.
…n redacting A page of review tasks loads its change requests with one findByIds query and loads the review tasks of requests the caller neither made nor owns in one batch, instead of one request lookup and one task load per task.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…alues in the column review A lifecycle request is validated against the stored entity read with every field, as the requestable-stages endpoint reads it, so a stage the asset offers is never refused on write. The pending-changes review shows column values in full; the task view keeps its short preview.
| public static void requireUneditedRequest(Task original, Task patched) { | ||
| if (original.getType() == TaskEntityType.StatusUpdate | ||
| && (!Objects.equals(original.getAbout(), patched.getAbout()) | ||
| || !RequestedMove.of(original).equals(RequestedMove.of(patched)))) { |
There was a problem hiding this comment.
Owners can replace approvers.
requireUneditedRequest preserves the requested move but leaves assignees editable. An asset owner who is not a required approver can replace the assignees through PATCH or bulk Assign, then have the replacement approve the request. Resolution trusts the edited list rather than the lifecycle's chosen approvers.
Protect the approver list on both edit paths, or check it against the lifecycle before accepting a decision.
How this was verified: Asset owners may reassign tasks, and status-request resolution checks membership only in the task's current assignees.
Knowledge Base Used: Governance workflow automation
| List<EntityReference> others = selectApprovers(approval, entity, requester); | ||
| if (others.isEmpty()) { | ||
| others = withoutRequester(admins(), requester); | ||
| } |
There was a problem hiding this comment.
Team-only requests get stuck. When an approving team's only member raises a request,
withoutRequester retains the team. That leaves others nonempty, so the administrator fallback never runs. The requester cannot resolve their own task, and other administrators fail the assigned-person check. The request needs manual reassignment or withdrawal instead of reaching an independent approver.
Expand teams and remove the requester before deciding whether to assign administrators.
Knowledge Base Used: Governance workflow automation
| public static void endRuns(EntityInterface<?> entity, String entityType, String from, String to) { | ||
| EntityStatusWorkflows.ACTIVE | ||
| .owningStageOf(entityType, entity) | ||
| .flatMap(EntityStatusWorkflows::playbookWithTransitions) | ||
| .filter(playbook -> EntityStatusWorkflows.makesTransition(playbook, from, to)) | ||
| .ifPresent(playbook -> endRuns(entity, to, playbook)); |
There was a problem hiding this comment.
Old approvals survive status changes.
endRuns chooses the owning lifecycle from the partial entity passed by the status PATCH. For example, a domain lifecycle that excludes assets with missing childrenCount offers and accepts a request using a full read. The PATCH clears that field, so this lookup finds no lifecycle and leaves its old onboarding approvals open after the move.
Load the same complete asset fields before choosing which lifecycle's runs to end.
Knowledge Base Used:
…erge # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TaskRepository.java
UI browser testsRan: 133 of 135 test files execute the changed code Result: ✅ 1096 passed · 154 skipped Changed code executed by these browser tests: 51 / 146 lines (35%)
Changed files no browser test loads
|
The Metric browser tests merged from main render the entity header, which now asks for the stages a user can request. Give the shared MSW setup a handler returning none, and apply the organize-imports order ui-checkstyle expects.
… first, Workflows tabs (#38702) * UI polish: lifecycle request badge, withdraw confirm, workflow tabs - View Request opens the asset's Activity Feeds & Tasks tab with the request selected (classic and AI mode), instead of the standalone task page - Withdraw request asks for confirmation in a 400px modal - ConfirmationModal takes an optional width (default unchanged, 520) - Pending-request menu moved into PendingRequestMenu - Workflows page filter uses core Tabs instead of ButtonGroup - New locale keys in all 21 languages * View Request opens a request that is not on the loaded page of tasks
…s its run as cancelled - A raised status request's assignees can be changed only by an admin, on PATCH and bulk Assign, so an asset owner cannot make themselves its approver. - closeTask is a plain close again: a user's withdrawal ends the run through closeTaskAndCancelWorkflowRun, recorded as CANCELLED. - ADR v5 records that a raised request is frozen and decided only by its assignees. - Regenerated the Playwright impact map for PendingRequestMenu.
Code Review ✅ Approved 🔴 High risk 9 closed / 9 findingsLifecycle approval rules authorize persistent asset-status transitions; an incorrect decision could retire or misclassify governed assets. Adds lifecycle status requests as ✅ 9 closed✅ Performance: Task list redaction runs per-task DB lookups (N+1) for non-admins
✅ Quality: Stage-badge trigger restyles core Button padding/shadow/background
✅ Bug: Approvers resolved against a partially loaded entity, unlike the offer
✅ Bug: Any-stage approval is not superseded once the asset changes stage
✅ Security: Entity owner can reassign a status request to themselves and approve it
...and 4 more closed from earlier reviews VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
No linked issue: this is the lifecycle "exits" work from the governance lifecycle feedback round, paired with the Collate lifecycle editor PR (linked below). Follow-up for the seeded Glossary Term lifecycle: open-metadata/openmetadata-collate#8611.
A lifecycle can now move an asset off its onboarding path, to a stage such as Deprecated or Archived, from any stage: automatically once the asset meets conditions, or when a user requests it, with the approvers the lifecycle names. A request is a normal task on the task framework (
StatusUpdate, likeTierUpdateorDescriptionUpdate), so no asset schema carries request state. On an asset whose own lifecycle offers the exit, the status badge becomes a small menu (In Review ⌄→ Deprecate). Picking it opens a dialog for the status and a reason, and the request then shows as "Deprecation requested", with View request and Withdraw request, until its approvers decide.The PR also carries two fixes from the same round:
Type of change:
High-level design:
StatusUpdate:StatusUpdateTaskWorkflowand described by theStatusUpdatetask form schema.entityStatusis set from the task'snewStatus, written for the approver with governance-bot as impersonator, so the lifecycle's ownership of the status holds.lifecycleRequestfield on any asset, and no per-asset write-path special cases.StatusUpdateTasks):LifecycleExitRuns). Whenever the asset moves to one of its lifecycle's exit stages, by an approved request or an automatic exit, the lifecycle's open approval runs on it end and its tasks for other stages close. A request and an onboarding approval belong to different workflows, so neither replaces the other.GET /v1/metadata/types/lifecycleStages/{entityType}/{id}/requestableStagesis backed byEntityRepository.getRequestableStages, the same check a request runs, so what is offered is what is accepted.lifecycleConfiguration.exits(stage,trigger,conditions, andapprovalfor on-request exits).task.jsonaddsStatusUpdate.useLifecycleRequestsreads the offered stages and the openStatusUpdatetask.EntityStageBadgeopensStatusRequestModal.Tests:
Use cases covered
Unit tests
TaskWorkflowLifecycleResolverTest,TaskFormExecutionResolverTest,TaskTargetOperationsTest,TaskResourceTest,WorkflowEventConsumerTest,EntityStatusWorkflowsTest,CreateTaskTest,FilterEntityImplTest,WorkflowTriggerFiltersTest,MetadataCollectionServiceTest,ChangeRequestVisibilityTest,RdfOntologyContractTest).EntityStatusBadgesuites (badge, dialog, pending menu,useLifecycleRequests) 36 run, 0 failures;PendingChanges32 run, 0 failures.Backend integration tests
WorkflowDefinitionResourceIT224–230 (approve ends onboarding approval, reject keeps it, unoffered stage, duplicate request, requestable stages per entity, withdraw, decided as requested): 7 run, 0 failures on MySQL + Elasticsearch.ChangeRequestResourceIT, including the new domain task list redaction test: 13 run, 0 failures.Playwright (UI) tests
playwright/e2e/Features/Workflows/LifecycleRequest.spec.ts:Manual testing performed
Live: this branch's server (MySQL + Elasticsearch), the Collate UI from the companion PR, fresh database, seeded sample data. Admin, and Ana Lopez as owner.
UI screenshots:
Requesting Deprecate from the status chip, with a reason:
The owner approves the status update task:
Checklist:
Fixes <issue-number>: <short explanation>(no linked issue)Fixes #<issue-number>above.ceef2e26e4a. The request is a task, not a field. All 6 findings are fixed: exit and onboarding interference, the rejected-exit review, the stuck and duplicated requests (gone with the field), automatic exits from another exit stage, and the domain list and delete redaction. Two gaps found while testing live are fixed too: the pending-request lookup used an entity link where the task list takes an FQN, and an approver could change the requested status.Companion: open-metadata/openmetadata-collate#8601 (the lifecycle editor Exits section and the seeded Glossary Term lifecycle).
🤖 Generated with Claude Code
Do not merge until the approval bypass and request-lifecycle failures are fixed.
Findings
Summary
Adds lifecycle status requests through tasks, with per-asset offers, approvals, withdrawal, and status-badge controls. It also adds transition rules and hides unreadable change-request values in domain task lists and delete responses.
yan-3005 kept the batching tests because call counts are the behavior under test; Greptile withdrew that finding.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Asset status menu] --> B[StatusUpdate task] B --> C[Choose lifecycle approvers] C --> D{Decision} D -->|Approve| E[Update asset status] E --> F[Close old lifecycle work] E --> G[Restart owning lifecycle] D -->|Reject| H[Keep current status] B -->|Withdraw| I[Close task and end its run]Reviews (10) · Last reviewed commit: "fix(lifecycle): status requests are deci..." · Reviewed by Greptile
UI polish screenshots (from #38702, follow-up #38720): before and after, light and dark
Merged into this branch from #38702. Each image is a 2×2 grid. Columns are Before and After. Rows are Light (classic mode) and Dark (AI mode).
Workflows page tabs

Pending request menu

View Request → Activity Feeds & Tasks, request selected (before: standalone task page)

Withdraw asks first (before: withdrew immediately)
