Skip to content

Update decision definition history time to live#82

Open
hauptmedia wants to merge 1 commit into
mainfrom
codex/decision-definition-history-ttl
Open

Update decision definition history time to live#82
hauptmedia wants to merge 1 commit into
mainfrom
codex/decision-definition-history-ttl

Conversation

@hauptmedia

Copy link
Copy Markdown

Summary

  • add a Decision Definition REST helper for PUT /decision-definition/{id}/history-time-to-live
  • show an editable historyTimeToLive field on decision definition details
  • support clearing the value by submitting an empty field, which sends historyTimeToLive: null

Reference

Verification

  • node -e 'const fs=require("fs"); for (const locale of fs.readdirSync("public/locales")) JSON.parse(fs.readFileSync("public/locales/"+locale+"/translation.json", "utf8")); console.log("locale JSON ok")'
  • npx eslint src/pages/Decisions.jsx src/pages/Decisions.test.jsx src/api/resources/decision.js src/api/resources/decision.test.js src/state.js
  • npx vitest run src/api/resources/decision.test.js src/pages/Decisions.test.jsx
  • npx vitest run --maxWorkers=4
  • npm run build
  • Browser smoke at http://127.0.0.1:5175/decisions/d1

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
44.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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