Skip to content

Conversation

@paula-stacho
Copy link
Collaborator

@paula-stacho paula-stacho commented Mar 12, 2025

Description

Adding error details for documents import.

First case: Not aborting on errors.

Details are available in the log file. This was almost working already, but there was a misnomer - errorInfo vs errInfo.
Screenshot 2025-03-12 at 15 35 26

Second case: Aborting on error.

Screenshot 2025-03-12 at 15 35 11
Users can view the error details in a modal window (similar to the other cases).

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@github-actions github-actions bot added the feat label Mar 12, 2025
@paula-stacho paula-stacho added the feature flagged PRs labeled with this label will not be included in the release notes of the next release label Mar 12, 2025
@paula-stacho paula-stacho marked this pull request as ready for review March 12, 2025 14:43
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

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

lgtm! Left one UX suggestion on toast clickability/hiding.

{err?.message} 
{showErrorDetails && (
<Link
onClick={showErrorDetails}
Copy link
Member

Choose a reason for hiding this comment

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

Can we close those toast when the user clicks to see the error? We currently will keep showing the toast when the modal is open, but the dismiss is not clickable as I the modal is capturing all of the clicks. I think there's a similar issue with the toast on connectivity issues, not the end of the world if it's not easily feasible, a nice to have.
Screenshot 2025-03-13 at 12 30 28 PM

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed!

@paula-stacho paula-stacho merged commit 9ac047e into validation-errors Mar 14, 2025
2 checks passed
@paula-stacho paula-stacho deleted the COMPASS-8867 branch March 14, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat feature flagged PRs labeled with this label will not be included in the release notes of the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants