Skip to content

fix: disable request error modal - [INS-4559]#8068

Merged
CurryYangxx merged 4 commits intodevelopfrom
fix/request-error-modal
Oct 12, 2024
Merged

fix: disable request error modal - [INS-4559]#8068
CurryYangxx merged 4 commits intodevelopfrom
fix/request-error-modal

Conversation

@CurryYangxx
Copy link
Copy Markdown
Member

@CurryYangxx CurryYangxx commented Oct 11, 2024

close INS-4559

Changes:

  • disable request error alert modal (keep modal for collection runner), always show error in response preview panel
  • write script execution error into db and show error in response preview panel
  • fix smoke test

@CurryYangxx CurryYangxx marked this pull request as draft October 11, 2024 09:08
@CurryYangxx CurryYangxx force-pushed the fix/request-error-modal branch from 188ca27 to e66e130 Compare October 12, 2024 04:22
}
// this part is for persisting useful info (e.g. timeline) for debugging, even there is an error
const existingResponse = await models.response.getById(err.response._id);
const response = existingResponse || await models.response.create(err.response, err.maxHistoryResponses);
Copy link
Copy Markdown
Member Author

@CurryYangxx CurryYangxx Oct 12, 2024

Choose a reason for hiding this comment

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

we store error responses in this catch callback

@CurryYangxx CurryYangxx marked this pull request as ready for review October 12, 2024 05:13
@CurryYangxx CurryYangxx requested a review from ihexxa October 12, 2024 05:14
@CurryYangxx CurryYangxx force-pushed the fix/request-error-modal branch from 93c73b3 to 0f67417 Compare October 12, 2024 07:22
@CurryYangxx CurryYangxx merged commit b7b4547 into develop Oct 12, 2024
@CurryYangxx CurryYangxx deleted the fix/request-error-modal branch October 12, 2024 07:34
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.

2 participants