scheduled prompts: add/remove targets on edit (#474 fast-follow)
This commit is contained in:
parent
376b37fed7
commit
99bf4d635d
6 changed files with 216 additions and 3 deletions
|
|
@ -954,8 +954,10 @@ pub enum ManagerRequest {
|
|||
/// doubly-wrapped so `Some(None)` (set explicit null) can flip
|
||||
/// a recurring schedule back to one-shot / clear the
|
||||
/// description, while plain `None` keeps the current value.
|
||||
/// Targets stay immutable. Refuses cancelled rows.
|
||||
/// Authorization mirrors `CancelSchedule`.
|
||||
/// `targets_add` / `targets_remove` mutate the recipient list
|
||||
/// in the same transaction; re-adding a previously-cancelled
|
||||
/// target drops the tombstone (replace-on-conflict). Refuses
|
||||
/// cancelled rows. Authorization mirrors `CancelSchedule`.
|
||||
EditSchedule {
|
||||
id: i64,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -966,6 +968,10 @@ pub enum ManagerRequest {
|
|||
interval_seconds: Option<Option<u64>>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
next_fire_at_unix: Option<i64>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
targets_add: Option<Vec<String>>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
targets_remove: Option<Vec<String>>,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue