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

refactor(objects): cnx 687 purge unused classes from objects #333

Merged
merged 14 commits into from
Nov 5, 2024

Conversation

clairekuang
Copy link
Member

@clairekuang clairekuang commented Oct 30, 2024

Changes to all converters pending this pr in sdk: specklesystems/speckle-sharp-sdk#151 . To be merged after SDK pr is merged.

  • removes qgis backwards compatibility and revit/rhino parameters and user strings in arcgis
  • removes unused parameter, material, and material quantities code in revit
  • refactors revit modelcurves by sending them as regular geometry instead

Copy link

linear bot commented Oct 30, 2024

@clairekuang clairekuang marked this pull request as draft October 30, 2024 13:57
Copy link
Contributor

@KatKatKateryna KatKatKateryna left a comment

Choose a reason for hiding this comment

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

Checked ArcGIS part - looks good except the Parameters converter, it will look nearly the same for Dictionary object and can be reused for that.

// Revit parameters are sent under the `properties` field as a `Dictionary<string,object?>`.
// This is the same for attributes from other applications. No Speckle objects should have attributes of type `Base`.
// Currently we are not sending any rhino user strings.
// TODO: add support for attributes of type `Dictionary<string,object?>`
Copy link
Contributor

Choose a reason for hiding this comment

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

we can just move this part of code lower to the condition "if Dict" rather than if Base. Why removing if the TODO is already done here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's sync on this: archicad, civil3d, revit, and eventually tekla will send some properties/parameters under the properties field with a dict value - need to implement this in a way in arcgis that can handle diff levels of nesting

@clairekuang clairekuang marked this pull request as ready for review November 5, 2024 10:13
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 12.12121% with 29 lines in your changes missing coverage. Please review.

Project coverage is 8.48%. Comparing base (8cfe0bf) to head (ae08faa).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...Speckle/TopLevel/RoomTopLevelConverterToSpeckle.cs 0.00% 13 Missing ⚠️
.../TopLevel/DirectShapeTopLevelConverterToSpeckle.cs 0.00% 4 Missing ⚠️
...opLevel/FootPrintRoofToSpeckleTopLevelConverter.cs 0.00% 2 Missing ⚠️
...e/TopLevel/ModelCurveToSpeckleTopLevelConverter.cs 0.00% 2 Missing ⚠️
...RhinoShared/ToSpeckle/Raw/BoxToSpeckleConverter.cs 0.00% 2 Missing ⚠️
...itShared/ToHost/Raw/Geometry/ArcConverterToHost.cs 0.00% 1 Missing ⚠️
...e/Raw/Geometry/BoundingBoxXYZToSpeckleConverter.cs 0.00% 1 Missing ⚠️
...ToSpeckle/Raw/Geometry/CircleToSpeckleConverter.cs 0.00% 1 Missing ⚠️
...ckle/TopLevel/CeilingTopLevelConverterToSpeckle.cs 0.00% 1 Missing ⚠️
...noShared/ToSpeckle/Raw/CircleToSpeckleConverter.cs 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@           Coverage Diff            @@
##             dev    #333      +/-   ##
========================================
+ Coverage   8.40%   8.48%   +0.08%     
========================================
  Files        240     237       -3     
  Lines       4829    4641     -188     
  Branches     561     514      -47     
========================================
- Hits         406     394      -12     
+ Misses      4406    4231     -175     
+ Partials      17      16       -1     

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

Copy link
Member

@adamhathcock adamhathcock left a comment

Choose a reason for hiding this comment

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

Works for me

@clairekuang clairekuang enabled auto-merge (squash) November 5, 2024 11:58
@clairekuang clairekuang merged commit 21ed17b into dev Nov 5, 2024
5 checks passed
@clairekuang clairekuang deleted the claire/cnx-687-purge-unused-classes-from-objects branch November 5, 2024 11:59
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.

4 participants