Skip to content

Conversation

@mabaasit
Copy link
Collaborator

Description

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)

Comment on lines +52 to +53
// If save fails in storage, we don't want to update the state
// to avoid showing the item in the list.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? We do this for all the other storages

optInDataExplorerGenAIFeatures:
isAtlas && !!optInDataExplorerGenAIFeatures,
enableDataModeling: false,
enableDataModeling: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Anemy asked before to keep it switched off to make sure it's aligned with desktop

Comment on lines +75 to +76
// If delete fails in storage, we don't want to update the state
// to avoid showing the item in the list.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same question, if we are not updating state on saves like that, then we need to consider how to notify user about the failure, otherwise it's confusing. I don't understand why we need this change here though

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Like in save, if any storage method fails to change the state (within storage), changing state here means that the two are not in sync and for that reason i am checking if storage changed successfully, then update the state.

And yes, i agree that we should notify the user if storage op fails (maybe a toast?)

@mabaasit
Copy link
Collaborator Author

Closing this PR as we agreed not hide created diagrams from the users. Instead we will use session storage to store them on web so that users have nice and consistent user experience.

@mabaasit mabaasit closed this May 22, 2025
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