-
Notifications
You must be signed in to change notification settings - Fork 634
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-6394: Add legacy trace warning when opening workspace #14628
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
64b4706
remove coreclr-ncalc references
aparajit-pratap 4a82ae7
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap dbc3e12
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 81ace20
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap a7cafdc
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 55c654d
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 7ede2a4
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap c43a02d
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 1951d1a
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap cd100b1
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap c04c193
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 35edbdb
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 5c6a4a3
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 1641149
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap eff8d9b
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 8415e17
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 8a3368b
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 3350614
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap be0a127
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap a3d62e9
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap a3c806e
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap e93499d
Merge branch 'master' of github.com:DynamoDS/Dynamo
aparajit-pratap 37d470c
show legacy trace warning
aparajit-pratap 9c09ab3
cleanup
aparajit-pratap 946e529
get workspace version correctly
aparajit-pratap 5a9d878
update warning
aparajit-pratap 1dd5c3c
add warning for xml DYNs
aparajit-pratap e26d682
add unit test
aparajit-pratap 1b38c4d
cleanup
aparajit-pratap a2a6256
review comments
aparajit-pratap a39ae7f
Merge branch 'master' of github.com:DynamoDS/Dynamo into dyn-6394
aparajit-pratap 77cc25d
update tests
aparajit-pratap 16d50d4
revert test fixture change
aparajit-pratap 2d96ffd
Merge branch 'master' of github.com:DynamoDS/Dynamo into dyn-6394
aparajit-pratap 97d5987
refactor, add test
aparajit-pratap 3e0cbd5
cleanup
aparajit-pratap d8e2dc2
rename
aparajit-pratap 71eb83c
review comments
aparajit-pratap e5a56ed
update tests
aparajit-pratap 456c20e
update tests
aparajit-pratap 0c03faf
revert unchanged test file
aparajit-pratap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -517,24 +517,6 @@ internal static Version VersionFromString(string version) | |
return new Version(ver.Major, ver.Minor, ver.Build, 0); | ||
} | ||
|
||
/// <summary> | ||
/// Call this method to obtain the version of current WorkspaceModel. | ||
/// Note that the revision number is dropped as both "0.7.0.1234" | ||
/// should be treated as the same version as "0.7.0.5678", and no file | ||
/// migration should take place. | ||
/// </summary> | ||
/// <param name="workspace">The WorkspaceModel to get the Version from. | ||
/// </param> | ||
/// <returns>Returns the Version object representing the workspace | ||
/// version with the revision set to 0.</returns> | ||
/// | ||
internal static Version VersionFromWorkspace(WorkspaceModel workspace) | ||
{ | ||
// Ignore revision number. | ||
var ver = workspace.WorkspaceVersion; | ||
return new Version(ver.Major, ver.Minor, ver.Build, 0); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not used |
||
|
||
/// <summary> | ||
/// Call this method to determine if migration should take place | ||
/// for the input DYN/DYF file based on the given version numbers. | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so now, we just return an empty list no matter what, but we make a note that there was at least 1 node with trace data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed the variable from
containsTraceData
tocontainsLegacyTraceData
to make it clearer. This flag is only used to trigger the toast notification when opening an old workspace.