Skip to content

Add Cockpit job definition suspension#68

Open
hauptmedia wants to merge 1 commit into
mainfrom
codex/cockpit-job-definition-suspension
Open

Add Cockpit job definition suspension#68
hauptmedia wants to merge 1 commit into
mainfrom
codex/cockpit-job-definition-suspension

Conversation

@hauptmedia

Copy link
Copy Markdown

Summary

  • add a PUT /job-definition/{id}/suspended API wrapper and update signal
  • enable suspend/activate actions in the process definition Jobs tab
  • add an option to include existing jobs, success feedback, i18n, styles, and tests

Tests

  • node -e "JSON.parse(require('fs').readFileSync('public/locales/en-US/translation.json','utf8')); JSON.parse(require('fs').readFileSync('public/locales/de-DE/translation.json','utf8'));"
  • npx eslint src/api/resources/job_definition.js src/api/resources/job_definition.test.js src/pages/Processes.jsx src/pages/Processes.test.jsx src/state.js src/state.test.js
  • npx vitest run src/api/resources/job_definition.test.js src/state.test.js src/pages/Processes.test.jsx
  • npx vitest run --maxWorkers=4
  • npm run build
  • Browser smoke: http://127.0.0.1:5176/processes/proc:1/jobs reached the login boundary with no console errors

Reference

@sonarqubecloud

Copy link
Copy Markdown

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