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

Regression fixes for 1st Release #218

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Regression fixes for 1st Release #218

merged 3 commits into from
Jul 11, 2024

Conversation

sakshibobade21
Copy link
Contributor

@sakshibobade21 sakshibobade21 commented Jul 11, 2024

Proposed changes

This PR fixes the regressions:

  1. The "Resume" option appears on the home page of ZEN even when no previous installation exists.
  2. Each time the YAML is updated in the editor, the cursor automatically moves to the beginning of the file.

This PR depends upon the following PRs:

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Change in a documentation
  • Refactor the code
  • Chore, repository cleanup, updates the dependencies.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

PR Checklist

Please delete options that are not relevant.

  • If the changes in this PR are meant for the next release / mainline, this PR targets a "staging" branch.
  • My code follows the style guidelines of this project (see: Contributing guideline)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • video or image is included if visual changes are made
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works, or describe a test method below

Testing

Further comments

@@ -203,7 +203,7 @@ const Home = () => {
setIsNewInstallation(true);
} else {
const data: ActiveState = unflatten(JSON.parse(lastInstallation));
setIsNewInstallation(false);
setIsNewInstallation(!(data && data.lastActiveDate));
Copy link
Contributor

Choose a reason for hiding this comment

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

I changed this line because quite frequently I would have a previously saved installation not show the resume button due to lastActiveDate being missing. Please fix the root cause instead (lastActiveDate not always being set properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never encountered an issue where - "resume button not showing sometimes when a previous installation does exist"
Confirmed this with Himani.
The previous date is always saved in the activeStage object, except for the home page where this behavior is intentional.

@@ -46,6 +46,9 @@ const EditorDialog = ({contentType, isEditorVisible, toggleEditorVisibility, onC
/* TODO: Should use an array for the Store to house separate outputs (Security vs Certificates for example) */
if(isEditorVisible) {
if(contentType == 'yaml') {
if (setupYaml?.installationArgs) {
Copy link
Contributor

@timgerstel timgerstel Jul 11, 2024

Choose a reason for hiding this comment

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

This second delete is unnecessary, remove this and leave the other one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How is this unnecessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

Because its redundant you only need the other delete

@sakshibobade21 sakshibobade21 changed the title Regression fixes Regression fixes for 1st Release Jul 11, 2024
@timgerstel timgerstel merged commit 14c806f into v2.x/rc Jul 11, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants