-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add maintenance view to all dbs, clean soft deleted from all dbs (#6676)
We should remove soft deleted docs from all configured dbs. To this we also need to add maintenace view to all dbs. Also `maintenance/soft_deletes` is update to have id and rev so deleting won't required lookup_rev one by one
- Loading branch information
Showing
4 changed files
with
171 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
33 changes: 33 additions & 0 deletions
33
applications/crossbar/priv/couchdb/schemas/system_config.tasks.cleanup.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "system_config.tasks.cleanup", | ||
"description": "Schema for tasks.cleanup system_config", | ||
"properties": { | ||
"cleanup_dbs": { | ||
"default": { | ||
"classifications": [ | ||
"account", | ||
"modb", | ||
"yodb", | ||
"ratedeck", | ||
"resource_selectors" | ||
], | ||
"databases": [ | ||
"alerts", | ||
"accounts", | ||
"system_config", | ||
"system_data", | ||
"functions", | ||
"system_media", | ||
"offnet", | ||
"port_requests", | ||
"sip_auth", | ||
"webhooks" | ||
] | ||
}, | ||
"description": "tasks cleanup cleanup_dbs", | ||
"type": "object" | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains 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
This file contains 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