-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix hidden operators exposure #1821
Conversation
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
…e.operators.build.build_operators() Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
…build_operators() Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1821 +/- ##
=======================================
Coverage 88.10% 88.10%
=======================================
Files 83 83
Lines 9951 9951
=======================================
Hits 8767 8767
Misses 1184 1184 |
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
… deprecation Signed-off-by: paul.profizi <paul.profizi@ansys.com>
hidden = 0 | ||
# List of hidden operators to still expose for retro-compatibility | ||
# until they are fully deprecated | ||
hidden_to_expose = [ # Use internal names |
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.
@cbellot000 here is the list of exceptions for hidden operators to still expose as Python modules
with open(init_file_path, "w") as init_file: | ||
init_file.writelines(sorted(lines)) | ||
core.set_default_server_context(core.AvailableServerContexts.premium) | ||
core.start_local_server(config=core.AvailableServerConfigs.LegacyGrpcServer) |
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.
why legacy??
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.
@cbellot000 that is historical but we could try with the GrpcServer
. In a next PR.
This PR completes a PR on the server-side to hide hidden operators.
It also refactors Python operator code generation for simplification and improved maintainability.