+
Skip to content

Conversation

PProfizi
Copy link
Contributor

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.

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>
@PProfizi PProfizi added the bug Something isn't working label Oct 21, 2024
@PProfizi PProfizi added this to the v0.13.1 milestone Oct 21, 2024
@PProfizi PProfizi self-assigned this Oct 21, 2024
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.10%. Comparing base (64c59f4) to head (d2e4ddd).
Report is 12 commits behind head on master.

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
Copy link
Contributor Author

@PProfizi PProfizi Oct 24, 2024

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

why legacy??

Copy link
Contributor Author

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.

@PProfizi PProfizi merged commit aa61495 into master Oct 24, 2024
43 checks passed
@PProfizi PProfizi deleted the fix/hidden_operators_exposure branch October 24, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载