-
Notifications
You must be signed in to change notification settings - Fork 635
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
Add docs around package scanning and notify user of infected package upload. #13235
Conversation
var latestPkgs = Model.GetUsersLatestPackages(); | ||
if (latestPkgs != null && latestPkgs.maintains.Count > 0) | ||
{ | ||
foreach (var infectedVer in latestPkgs.maintains) |
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.
Would you remind me why do we need to look at each version here? I thought we only need to check the latest version of each package
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.
The API will return all packages with last uploaded version, so 1 version per package only.
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
Outdated
Show resolved
Hide resolved
@@ -543,17 +549,28 @@ public void ClearSearchTextBox(object obj) | |||
/// one of these toast notifications. | |||
/// </summary> | |||
/// <param name="obj"></param> | |||
public void ClearDownloadToastNotification(object obj) | |||
public void ClearToastNotification(object obj) |
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.
This is API breaking but I guess you decided to break it intentionally?
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.
Yes to make this function a bit more generic
|
||
<!-- Version --> | ||
<TextBlock | ||
Name="version" | ||
Name="iversion" |
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.
What does iversion
mean?
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.
infected version
just a name for the text block, no relation to apple 😛
src/DynamoCoreWpf/Views/PackageManager/PackageManagerSearchView.xaml
Outdated
Show resolved
Hide resolved
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.
LGTM with some comments
Purpose
https://jira.autodesk.com/browse/DYN-4691
https://jira.autodesk.com/browse/DYN-4695
This PR adds documentation around package scanning, and now users with infected packages upload will see dismissible toast notifications when loading package manager search window.
Documentation:
Infected package toast notification with package download:-
SS of notification:
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Add documentation around package scanning
Add notifications for users with infected package uploads
Reviewers
@DynamoDS/dynamo