Skip to content

When iterating API events, wrap each element into try block and skip faulty ones, but retain the rest #1611

@whisperity

Description

@whisperity

From #1592 it seems that we will be in a constant rush to get up to date with GitHub's changes. As a defencive measure to prevent crashes or full-blown app failures when some of the schema changes, wouldn't it be possible to wrap the conversion of API response objects to Java objects in an exception handling block for each notification element, and still render those that don't fail the expected schema, while skipping the rest? (Maybe even adding a card with "this notification element failed to render" inbetween the working notifications, and if someone presses that, the raw API json could still be shown…)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions