Skip to content

refactor(api): remove dead schema, fix two persistence defects, drop legacy fields#682

Merged
yasithdev merged 1 commit into
apache:masterfrom
yasithdev:data-layer-cleanup
Jun 13, 2026
Merged

refactor(api): remove dead schema, fix two persistence defects, drop legacy fields#682
yasithdev merged 1 commit into
apache:masterfrom
yasithdev:data-layer-cleanup

Conversation

@yasithdev

Copy link
Copy Markdown
Contributor

Data-layer cleanup across the API. Removes schema that no code reads: the process_workflow table and proto message, the resource.status column and StatusEnum, the orphan agent_deployment_info table, the unused BatchQueueRepository, the duplicate app_module_mapping entity mapping, the dead credentials.CREDENTIAL_OWNER_TYPE column, and the grid-cert-legacy user_dn/generate_cert fields on ProcessModel/UserConfigurationDataModel (proto numbers reserved, Python stubs regenerated). Fixes two persistence defects: parsing_template silently dropped its parser_connections DAG on save, and queue_status.RUNNING_JOBS was a bit(1) truncating the running-job count to 0/1 (now int). Adds UNIQUE constraints on tag(value) and resource_star(user_id, resource_id) with race-safe, idempotent find-or-create. Entities and both V1 baselines stay in sync; verified with a clean build and a fresh-DB init of schema + seed.

…legacy fields

Removes schema no code reads (process_workflow table+proto, resource.status/StatusEnum, orphan agent_deployment_info table, unused BatchQueueRepository, duplicate app_module_mapping entity mapping, dead credentials.CREDENTIAL_OWNER_TYPE column, and the grid-cert-legacy user_dn/generate_cert fields on ProcessModel/UserConfigurationDataModel with proto numbers reserved and Python stubs regenerated). Fixes two defects: parsing_template silently dropped its parser_connections DAG on save, and queue_status.RUNNING_JOBS was a bit(1) truncating the running-job count to 0/1 (now int). Adds UNIQUE constraints on tag(value) and resource_star(user_id, resource_id) with race-safe idempotent find-or-create. Entities and both V1 baselines stay in sync; verified with a clean build and a fresh-DB init of schema + seed.
@yasithdev yasithdev merged commit 1c96d1c into apache:master Jun 13, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant