-
Notifications
You must be signed in to change notification settings - Fork 636
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
Pm search for packages - votes #14390
Pm search for packages - votes #14390
Conversation
- adding changes connected to the 'votes' behavior
- still not showing the new 'GetUserVotes' request that was added with this PR DynamoDS/PackageManagerClient#84
Sorry, I reviewed one commit(was routed through outlook) rather than the PR, will wait for the PR to be ready for review. |
hi @zeusongit, Deyan mentioned with the newer version of Greg, the new route does not exist still so this PR does not build |
Hi @QilongTang , I tried it locally, i updated the greg package to 6084, and it is building for me successfully locally, one thing that I noticed is that maybe greg is not updated in all the locations where it is used, so do a complete update maybe? |
@dnenov Is this ready for review or any changes coming in? |
- voting for packages functionality reinstated - checking for user votes on loading - if the user has already voted for a package prevents from voting again - ui updates
- now correctly updates the SeachElement item inside the PackageManagerPackagesControl 'votes' icon when user has voted for a package - now allows to vote for a package right after a package has been installed
Hey @reddyashish ! This one is definitely ready for review, it must have fallen under the cracks. My bad! |
- removed duplicate package references
@@ -261,6 +261,21 @@ public void Upvote_ReturnsFalseWhenRequestThrowsException() | |||
Assert.IsFalse(res); | |||
} | |||
|
|||
//[Test] |
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.
Uncomment this test? would be nice to test this. Is the mock test failing for any reason?
return pkgResponse.content; | ||
}, null); | ||
|
||
return votes.has_upvoted; |
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 local variable votes will be null when the function fails. Check for null before returning its property.
Some comments @dnenov. Also double check the additional references that are added. You would need to pull in the latest master again to resolve the conflicts. |
- reconciled meshed up references - comments
- last reference?
@@ -8,7 +8,7 @@ | |||
// associated with an assembly. | |||
[assembly: AssemblyCompany("Autodesk, Inc")] | |||
[assembly: AssemblyProduct("Dynamo")] | |||
[assembly: AssemblyCopyright("Copyright © Autodesk, Inc 2023")] | |||
[assembly: AssemblyCopyright("Copyright � Autodesk, Inc 2023")] |
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 file shouldn't be added, that is why the self-serve is failing.
- revert changes made by mistake
Purpose
Greg route working, now checks if user has voted for a package to prevent further voting. Current behavior is as follows:
details panel
!!! Greg updated! The new requestGetUserVotes
to add theuser/votes
route that was introduced with this PR is still not showing on the Dynamo side.This is a cherry-pick with package manager changes around the detailed package extension, and specifically the
votes
behavior. Alongside the visual updates, the PR changes the following - users will be able to vote for a package if they have it installed. Downloading is still disabled.UI Changes
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@zeusongit
@sm6srw
FYIs
@QilongTang