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

fix: request render error not display - [INS-4833] #8277

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CurryYangxx
Copy link
Member

@CurryYangxx CurryYangxx commented Jan 7, 2025

In #8068, we removed the request error modal because some of the errors are also displayed in the preview panel.
But we ignored the request render error, so we restored the modal box and used it to display rendering errors.

@CurryYangxx CurryYangxx changed the title fix: request render error not display fix: request render error not display - [INS-4833] Jan 7, 2025
@CurryYangxx CurryYangxx requested review from ihexxa and cwangsmv January 7, 2025 06:41
Copy link
Contributor

@cwangsmv cwangsmv left a comment

Choose a reason for hiding this comment

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

Tried the changes and LGTM.

@filfreire
Copy link
Member

filfreire commented Jan 8, 2025

Tested locally, LGTM

image

if (e?.extraInfo && e?.extraInfo?.subType === RenderErrorSubType.EnvironmentVariable) {
url.searchParams.set('envVariableMissing', '1');
url.searchParams.set('undefinedEnvironmentVariables', e?.extraInfo?.undefinedEnvironmentVariables);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🇮🇹 🍝

Copy link
Contributor

Choose a reason for hiding this comment

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

Could this logic be cleaned up? Or expressed more simply.

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.

4 participants