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-5605 Dynamo installs, but fails to pick up package #13770

Merged

Conversation

filipeotero
Copy link
Contributor

Purpose

This PR fixes the bug that doesn't refresh the status of some packages after being loaded.

refreshPackageDownloadStatus

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

Reviewers

@QilongTang

FYIs

@RobertGlobant20 @jesusalvino


PythonServices.PythonEngineManager.Instance.
LoadPythonEngine(package.LoadedAssemblies.Select(x => x.Assembly));

PackgeLoaded?.Invoke(package);
Copy link
Contributor

Choose a reason for hiding this comment

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

What would be the difference here to execute this slightly later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a piece of code in the WorkspaceDepedencyView that checks the loaded python packages.

The code was interpreting some packages as missing because, when it was hitting there, they were not included in the loaded assemblies. So, we need to trigger the PackgeLoaded action after the assembly is found in the available engines.

@QilongTang QilongTang added this to the 2.18.0 milestone Feb 23, 2023
@QilongTang QilongTang merged commit 564d0f9 into DynamoDS:master Feb 23, 2023
sm6srw pushed a commit to sm6srw/Dynamo that referenced this pull request Mar 29, 2023
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