Skip to content

omdb: add marked-as-seen to omdb db ereport list#10364

Merged
hawkw merged 2 commits into
mainfrom
eliza/omdb-ereport-seen
May 4, 2026
Merged

omdb: add marked-as-seen to omdb db ereport list#10364
hawkw merged 2 commits into
mainfrom
eliza/omdb-ereport-seen

Conversation

@hawkw
Copy link
Copy Markdown
Member

@hawkw hawkw commented May 2, 2026

This PR adds a column to omdb db ereport list to indicate whether or
not an ereport has been marked as "seen" by sitrep rendezvous. It also
adds a CLI argument to filter ereports based on whether or not they have
been marked. This information is already included in the
omdb db ereport info output, but I felt like it was worth adding to
the list command as well.

hawkw added 2 commits May 2, 2026 08:30
This PR adds a column to `omdb db ereport list` to indicate whether or
not an ereport has been marked as "seen" by sitrep rendezvous. It also
adds a CLI argument to filter ereports based on whether or not they have
been marked.
@hawkw hawkw requested a review from smklein May 2, 2026 15:35
@hawkw hawkw added Debugging For when you want better data in debugging an issue (log messages, post mortem debugging, and more) fault-management Everything related to the fault-management initiative (RFD480 and others) labels May 2, 2026
Comment on lines +93 to +99
/// Note that ereports which have not been marked in the database *may*
/// still have been included in a sitrep. Marking of ereport database
/// records occurs in the background, and may not be up to date with the
/// latest sitrep. If an ereport has been marked as seen, it has
/// *definitely* been included in a committed sitrep, but if an ereport
/// has not been marked, it *may or may not* have been included in a
/// committed sitrep.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for including this note; it's true, and also an important caveat for anyone using this

#[derive(Tabled)]
#[tabled(rename_all = "SCREAMING_SNAKE_CASE")]
struct EreportRowWithMark<'report> {
mark: &'static str,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: This could maybe be an enum with a "to string" impl instead of an arbitrary static str, right? but I don't care too much

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I went back and forth on this because I also didn't love the idea of an enum with a fmt::Display implementation that was an empty string. The reason I had left a similar suggestion on your PR was because we also had logic that was checking for a specific string. I think we could make this an enum but i don't think it's worth it in this case.

@hawkw hawkw merged commit c4e76c6 into main May 4, 2026
16 checks passed
@hawkw hawkw deleted the eliza/omdb-ereport-seen branch May 4, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Debugging For when you want better data in debugging an issue (log messages, post mortem debugging, and more) fault-management Everything related to the fault-management initiative (RFD480 and others)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants