Skip to content

Enhance SvcAction with action line support and improved logging#143

Merged
cgalibern merged 1 commit into
opensvc:mainfrom
cgalibern:dev
Jun 19, 2026
Merged

Enhance SvcAction with action line support and improved logging#143
cgalibern merged 1 commit into
opensvc:mainfrom
cgalibern:dev

Conversation

@cgalibern

Copy link
Copy Markdown
Contributor

Description

This pull request enhances the SvcAction system with new functionality and improved traceability:

  • Action Line Support: Introduced SvcActionLine struct to represent and store detailed log information for SvcActions.
  • Bulk Operations: Updated InsertSvcAction and UpdateSvcAction to support bulk insertion of SvcActionLine objects.
  • API Updates: Modified api.yaml to reflect the new ActionLine model and its relationship with existing Action entities.
  • Improved Logging: Added detailed logs in feed instance handlers and workers to facilitate better tracing of operations.
  • Database Changes: Added a new log_type column to the svcactions table to differentiate action types.

These changes enable better handling, traceability, and extensibility within the SvcAction infrastructure.

Related Issues

The oc2 version did have the action lines support

…ion lines, improved API, and logging

- Added support for action lines in `SvcAction` with a new `SvcActionLine` struct to store detailed log information.
- Extended `InsertSvcAction` and `UpdateSvcAction` to handle bulk insertion of action lines.
- Modified `job_feed_instance_action.go` to process and persist `ActionLine` objects.
- Updated `api.yaml` schema to reflect new `ActionLine` model and integration with `Action`.
- Improved logging for feed instance actions in handlers and workers for better traceability.
- Adjusted database schema to include a new column `log_type` in `svcactions`.
@cgalibern cgalibern merged commit 53c86b2 into opensvc:main Jun 19, 2026
2 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