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

vdk-jupyter: Jupyter UI change the strategy on storing the data from user input #1624

Merged

Conversation

duyguHsnHsn
Copy link
Collaborator

@duyguHsnHsn duyguHsnHsn commented Feb 13, 2023

What:
Changed the strategy on storing the data from user input for each vdk operation.

Why:
It is linked to the #1484
It is also linked to the problem - saving SessionStorage data is really error-prone. SessionStorage keys are pure strings and even a single typo can create many unwanted behaviour of the project.
With this solution we remove the sessionStorage saved data and save them in global variables which are dataclasses that describe the input data from a user for specific vdk operation.

Note: If this solution is reviewed better than the current solution with the SessionStorage, the #1621 PR will be removed

Signed-off-by: Duygu Hasan hduygu@vmware.com

@ivakoleva
Copy link
Contributor

I got it, this change aims to shift the session-scoped data to conversation-scoped one.
If logically possible to narrow the scope of visibility, then this would be an improvement.

Copy link
Contributor

@ivakoleva ivakoleva left a comment

Choose a reason for hiding this comment

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

LGTM

@duyguHsnHsn duyguHsnHsn force-pushed the person/hduygu/vdk-jupyter-ui-change-data-storage-strategy branch from b481a88 to 8f7090a Compare February 21, 2023 15:11
Copy link
Contributor

@ivakoleva ivakoleva left a comment

Choose a reason for hiding this comment

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

LVGTM

Copy link
Contributor

@ivakoleva ivakoleva left a comment

Choose a reason for hiding this comment

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

LGTM

@duyguHsnHsn duyguHsnHsn force-pushed the person/hduygu/vdk-jupyter-ui-change-data-storage-strategy branch from 3ac0b8b to c6ace5e Compare February 23, 2023 08:36
@duyguHsnHsn duyguHsnHsn merged commit fefa259 into main Feb 23, 2023
@duyguHsnHsn duyguHsnHsn deleted the person/hduygu/vdk-jupyter-ui-change-data-storage-strategy branch February 23, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants