CL-900 Remove required attributes from json schema to permit deletion of related data
- [ ] Prepared branch for code review
Description
We need to remove the "enabled" (for example, for the events_widget) from "required": ["allowed", "enabled"], in back/config/schemas/settings.schema.json.erb before we delete the enabled key/value pair from AppConfiguration.settings (as is done in this PR), but we cannot delete the related property…
"properties": {
...,
"enabled": { "type": "boolean", "default": true}
}
… until after the data deletion (as the property will exist, and therefore needs to be in the schema, before it is deleted by the task). There may be more similar cases than just the 2 "enabled" booleans.
Links
I think we have to merge this into master, not CL-5_flexible_pages_iteration_1. The epic branch has been merged already.
I think we have to merge this into
master, notCL-5_flexible_pages_iteration_1. The epic branch has been merged already.
Yes, that's probably true. CL-5 wasn't merged into master when I started this.