Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AXON-40] fix: add slightly more graceful failures in JiraIssuePage #48

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

sdzh-atlassian
Copy link
Member

What is this?

A temporary workaround to put into nightly so that we can hopefully dig a little deeper into #46

With this, if we try to render markup for an undefined field - we skip rendering that field, and we get an error message:
image

Some considerations on this:

  • I might be missing something in the implementation - but this is super weird. The only field rendered on JiraIssuePage which could fail with that exact step should be Summary - but that feels impossible?
  • By no means is this a long-term solution
  • We really need proper error handling in our pages :( Might be a good early task for @cabella-dot? 😉
  • Randomly spotted a bunch of copy-pasted code and moved it to a loop

How was this tested?

  • Rendered the page with some fields hardcoded to undefined as any, saw the error message and the page without the fields
  • Regular CI stuff

cabella-dot
cabella-dot previously approved these changes Dec 18, 2024
src/webviews/components/issue/JiraIssuePage.tsx Outdated Show resolved Hide resolved
Add temporary workaround to have JiraIssuePage fail slightly more
gracefully if a field is missing and we can't render markup for it
@sdzh-atlassian sdzh-atlassian force-pushed the AXON-40-field-ui-type-workaround branch from cf567e4 to 1a868b1 Compare December 18, 2024 22:17
@sdzh-atlassian sdzh-atlassian merged commit 197d21f into main Dec 19, 2024
2 checks passed
@sdzh-atlassian sdzh-atlassian deleted the AXON-40-field-ui-type-workaround branch December 19, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants