Skip to content

all: add crash reporting for beta users#4114

Merged
Parth merged 14 commits intomasterfrom
crash-alerts
Jan 27, 2026
Merged

all: add crash reporting for beta users#4114
Parth merged 14 commits intomasterfrom
crash-alerts

Conversation

@ad-tra
Copy link
Copy Markdown
Member

@ad-tra ad-tra commented Jan 18, 2026

fixes #3867

@Parth
Copy link
Copy Markdown
Member

Parth commented Jan 21, 2026

Copy link
Copy Markdown
Member

@Parth Parth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything looks great, some non-blocking nits

Comment on lines +71 to +73
if db.id.get().is_none() {
db.id.insert(LbID::generate())?;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add this to whoever calls this function, only reason I say this is because this function is going to be deleted soon and it's possible this will be missed

Comment on lines 148 to 153
@@ -151,10 +152,7 @@ impl Account {
/// their name to this list. Certainly telemetry in lockbook will always be opt in but the
/// mechanism of consent may evolve over time.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you stick these up by the const now

Comment on lines +36 to +43
impl DebugInfoDisplay for LbResult<DebugInfo> {
fn to_string(&self) -> String {
match self {
Ok(debug_info) => serde_json::to_string_pretty(debug_info).unwrap_or_default(),
Err(err) => format!("Error retrieving debug info: {:?}", err),
}
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant just impl DebugInfo but this is fine as well

Comment on lines +61 to +69
async fn lb_id(&self) -> LbResult<LbID> {
let tx = self.ro_tx().await;
let db = tx.db();

db.id
.get()
.copied()
.ok_or_else(|| LbErr::from(LbErrKind::Unexpected("Couldn't get Lb ID".to_string())))
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the thing that should just generate and set it actually.

@Parth Parth merged commit f856a57 into master Jan 27, 2026
1 check passed
@Parth Parth deleted the crash-alerts branch January 27, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

receive crash reports from beta users

2 participants