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

DYN-6856 Import settings from splash screen should handle empty file content. #15279

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

reddyashish
Copy link
Contributor

@reddyashish reddyashish commented Jun 4, 2024

Purpose

https://jira.autodesk.com/browse/DYN-6856

Preferences settings Import from splash screen should show an error when an empty xml file is imported.

Screenshot 2024-06-04 at 10 20 34 AM

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

DYN-6856 Import settings from splash screen should handle empty file content.

Reviewers

@QilongTang @avidit

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6856

@QilongTang QilongTang modified the milestones: 3.2, 3.3 Jun 4, 2024
@@ -1087,7 +1087,7 @@ public static PreferenceSettings LoadContent(string content)
PreferenceSettings settings = null;

if(string.IsNullOrEmpty(content))
return new PreferenceSettings();
return new PreferenceSettings() { isCreatedFromValidFile = false };
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm I guess you chose to not touch constructor since it should be true there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah the default constructor should be true as we import the default settings when no file is selected explicitly.

Copy link

github-actions bot commented Jun 4, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@reddyashish reddyashish merged commit f78644e into DynamoDS:master Jun 4, 2024
26 of 27 checks passed
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