Skip to content

Conversation

jacobrkerstetter
Copy link
Contributor

Description

  • reworked geometry commands files into the versioned architecture
  • matched with v1 server implementations for ease of future development

Issue linked

#1817

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate unit tests.
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved to the PR if any.
  • I have assigned this PR to myself.
  • I have added the minimum version decorator to any new backend method implemented.
  • I have made sure that the title of my PR follows Conventional commits style (e.g. feat: extrude circle to cylinder)

jacobrkerstetter and others added 2 commits September 17, 2025 11:02
… feat/geometry_commands_restructure

# Conflicts:
#	src/ansys/geometry/core/designer/geometry_commands.py
@github-actions github-actions bot added the enhancement New features or code improvements label Sep 17, 2025
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

❌ Patch coverage is 94.48441% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.57%. Comparing base (de8df27) to head (951bd99).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ys/geometry/core/_grpc/_services/v1/model_tools.py 69.56% 7 Missing ⚠️
...metry/core/_grpc/_services/v1/assembly_controls.py 70.58% 5 Missing ⚠️
...rc/ansys/geometry/core/_grpc/_services/v1/beams.py 70.58% 5 Missing ⚠️
...rc/ansys/geometry/core/_grpc/_services/_service.py 94.33% 3 Missing ⚠️
...ansys/geometry/core/_grpc/_services/v1/commands.py 72.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2234      +/-   ##
==========================================
+ Coverage   94.50%   94.57%   +0.07%     
==========================================
  Files         142      157      +15     
  Lines       10585    10883     +298     
==========================================
+ Hits        10003    10293     +290     
- Misses        582      590       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

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

Let's go set by set... I simply reviewed the "beams" part for now and it requires a few fixes. Please address them and I'll move on to the next block. Reviewing this PR will take time

@RobPasMue RobPasMue mentioned this pull request Sep 24, 2025
9 tasks
@RobPasMue
Copy link
Member

RobPasMue commented Sep 24, 2025

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

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

Reviewed Assembly Controls, Bodies and Commands (plus an extra Beams comment) -- looking good for now. Let's address these


self._grpc_client.log.debug(f"Creating beams on {self.id}...")
response = self._commands_stub.CreateBeamSegments(request)
response = self._grpc_client.services.beams.create_beam_segments(
Copy link
Member

Choose a reason for hiding this comment

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

Just remembered, for beams, remove the unnecessary "protect_grpc" statements on the create_beams wrapper method in this module!

# as for deleting a Body
#
self._commands_stub.DeleteBeam(EntityIdentifier(id=beam_requested.id))
self._grpc_client.services.beams.delete_beam(beam_id=beam_requested.id)
Copy link
Member

Choose a reason for hiding this comment

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

Delete protect_grpc from this method

return {}

@protect_grpc
def split_body(self, **kwargs): # noqa: D102
Copy link
Member

Choose a reason for hiding this comment

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

Missing dict type hint

raise NotImplementedError

@protect_grpc
def split_body(self, **kwargs): # noqa: D102
Copy link
Member

Choose a reason for hiding this comment

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

Missing dict type hint on return

Comment on lines 554 to +556
----------
selection : list[Body] | list[Component] | list[Face] | list[Edge]
Selection of the object to rename.
selection : list[Body] | list[Component]
Selection of the objects to rename.
Copy link
Member

Choose a reason for hiding this comment

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

Interesting... renaming does not apply to Face or Edge objects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants