Optional Policy execution histories #48

Closed
opened 2025-12-17 10:26:39 -05:00 by mysticmomba · 3 comments
Owner

Pull policy exec histories, make execution history policy optional

Pull policy exec histories, make execution history policy optional
mysticmomba added this to the Version 1.0.0 Release milestone 2025-12-17 10:26:39 -05:00
mysticmomba added the enhancement label 2025-12-17 10:26:39 -05:00
mysticmomba self-assigned this 2025-12-17 10:26:39 -05:00
Author
Owner

Ideas:
Change parameters in pull_policy_exec_histories and history_logging from String to Some(String). If the String is None send policy names with policy:[] instead of including the names. This should technically work according to the API documentation.

Ideas: Change parameters in pull_policy_exec_histories and history_logging from String to Some(String). If the String is None send policy names with policy:[] instead of including the names. This should technically work according to the API documentation.
Author
Owner
fn main() { 
    let test: Option<String> = Some("Hello World!".to_string());
    let test2: Option<String> = None;
    match test {
        Some(test) => {
            println!("{}", test);
        },
        None =>{
            println!("No Value Found in Test");
        } 
    }
    match test2 {
        Some(test2) => {
            println!("{}", test2);
        },
        None => {
            println!("No Value Found in Test2");
        }
    }
}
``` fn main() { let test: Option<String> = Some("Hello World!".to_string()); let test2: Option<String> = None; match test { Some(test) => { println!("{}", test); }, None =>{ println!("No Value Found in Test"); } } match test2 { Some(test2) => { println!("{}", test2); }, None => { println!("No Value Found in Test2"); } } } ```
Author
Owner
use pyo3::prelude::*;

#[pyfunction(signature = (first, second, third=None))]
fn test(first: i64, second: String, third: Option<String>) {
    match third {
        Some(v) => println!("third = {}", v),
        None => println!("third not provided"),
    }
}
``` use pyo3::prelude::*; #[pyfunction(signature = (first, second, third=None))] fn test(first: i64, second: String, third: Option<String>) { match third { Some(v) => println!("third = {}", v), None => println!("third not provided"), } } ```
Zarithas modified the milestone from Version 1.0.0 Release to Version 1.1.0 Release 2025-12-17 12:47:48 -05:00
mysticmomba modified the milestone from Version 1.1.0 Release to Version 1.0.0 Release 2025-12-17 14:44:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mysticmomba/AirlockTools#48