Cache if package maintainer is an author of the package to avoid multiple API calls#13111
Cache if package maintainer is an author of the package to avoid multiple API calls#13111zeusongit merged 1 commit intoDynamoDS:masterfrom
Conversation
|
do we check this again / refresh if the user logs out / logs in as another user? |
Not tested that scenario in revit, but it will break in that case, as Dictionary will have stale values. |
|
I checked in Revit, we cannot sign out without quitting, not sure about other integrators. @mjkkirschner |
QilongTang
left a comment
There was a problem hiding this comment.
LGTM does it make sense to add a unit test for this update?
Unit test is not helpful, as we call the parent method for result, internally it uses cached or API response, with no way of knowing the difference. |

Purpose
https://jira.autodesk.com/browse/DYN-5103
When a user right clicks a package in Dynamo package manager preference tab, we check if the user is an author of that package or not in order to enable/disable Deprecate/Undeprecate option for that package.
Created a cache in Dynamo to record the result so that we do not call the API again and again for one session.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Created a cache in Dynamo to record the result so that we do not call the API again and again for one session.
Reviewers
@QilongTang