Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api/src/bin/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ async fn show_locations(_db: &impl Handler, locs: &[Location]) {
("name", l.name.clone()),
("enabled", bool_str(l.enabled)),
("nitc_enabled", opt_ts(l.nitc_enabled)),
(
"nitc_complete_on_export",
bool_str(l.nitc_complete_on_export),
),
(
"ses_api_headquarters_id",
opt_str(&l.ses_api_headquarters_id),
Expand Down Expand Up @@ -555,10 +559,14 @@ async fn show_sessions(db: &impl Handler, sessions: &[Session]) {
"location_id",
decorate(&s.location_id, locs.get(&s.location_id)),
),
("active", bool_str(s.active)),
("code", opt_str(&s.code)),
("client_version", opt_str(&s.client_version)),
("last_contact", opt_ts(s.last_contact)),
("healthcheck_url", opt_str(&s.healthcheck_url)),
("public_key", opt_str(&s.public_key)),
("key_fingerprint", opt_str(&s.key_fingerprint)),
("key_expires_at", opt_ts(s.key_expires_at)),
(
"config",
serde_json::to_string(&s.config).unwrap_or_default(),
Expand Down Expand Up @@ -626,6 +634,7 @@ async fn show_periods(db: &impl Handler, periods: &[Period]) {
decorate(&p.location_id, locs.get(&p.location_id)),
),
("category_id", category),
("comment", opt_str(&p.comment)),
("start_time", fmt_ts(p.start_time)),
(
"end_time",
Expand Down Expand Up @@ -680,6 +689,7 @@ async fn show_categories(db: &impl Handler, cats: &[Category]) {
("id", c.id.clone()),
("name", c.name.clone()),
("enabled", bool_str(c.enabled)),
("is_virtual", bool_str(c.is_virtual)),
("nitc_group_id", group),
("nitc_participant_type", opt_str(&c.nitc_participant_type)),
("created_at", fmt_ts(c.created_at)),
Expand Down Expand Up @@ -719,6 +729,10 @@ async fn show_users(db: &impl Handler, users: &[User]) {
"email_config",
serde_json::to_string(&u.email_config).unwrap_or_default(),
),
(
"disaggregate_virtual_periods",
bool_str(u.disaggregate_virtual_periods),
),
("created_at", fmt_ts(u.created_at)),
("updated_at", fmt_ts(u.updated_at)),
]);
Expand Down