Repository navigation
Add governance, REST API and typed settings (phases 4 and 5) - #10
Merged
Merged
Conversation
… alerts (phase 4a) Move every service class into Services\ (19 classes, old names kept through class_alias until 1.0). Add settings_history behind the history.enabled schema switch, written in each change's transaction, with history(), rollback() and historyDiff() on the Settings contract and the laranail::settings.history and prune-history commands. Add lock, rollback, category, maintenance and refusal events, the built-in alert and log listeners, and rule-based, throttled alerts through Laravel notifications that never carry a value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 and Phase 5 of the settings design (Amendment A, §16), built as one branch:
src/Services/(old names kept viaclass_alias, deprecated until 1.0, recorded in the audit), value history withhistory(),rollback()andhistoryDiff(), 11 events, built-in listeners, and alert notifications that never carry values.settings_change_requestsbehind theapprovals.tableschema switch, stale-request detection, min approvals, expiry), export/import/diff by slug and identity, importers for spatie, toolkit and akaunting,reencrypt,rescope, a fullerdoctor, and opt-in persisted configuration.api/settings/v1, ETag/If-Match (412), 202 for approvals, idempotency keys, cursor pagination, RFC 9457 problem details, and an OpenAPI 3.1 document checked against real responses.load/save/register, attributes) and settings migrations.Behaviour changes
SetSetting,ForgetSetting,LockSettingandUnlockSettingreturn the opened change request, or null.Settingscontract gains seven methods. Nothing is tagged yet.Verification (local)
composer auditclean