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

Fix sketch-on-face sketches to be in the artifact graph #5489

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jtran
Copy link
Collaborator

@jtran jtran commented Feb 25, 2025

Part of #5385.

This PR makes sketch-on-face and sketch-on-plane less special. See the issue for why this matters, but the tl;dr is now that the artifact graph is built in Rust, we can remove special cases that were incomplete and broken.

Copy link

qa-wolf bot commented Feb 25, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Feb 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Feb 25, 2025 6:39am

Comment on lines +525 to +527
for exec_artifact in exec_artifacts.values() {
merge_artifact_into_map(&mut map, exec_artifact.clone());
}
Copy link
Collaborator Author

@jtran jtran Feb 25, 2025

Choose a reason for hiding this comment

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

This is the core of the change.

It's unfortunate that there are two loops, this one and the one above. I think this might cause some problems when there are multiple sketches-on-face/place on the same face/plane.

@jtran jtran force-pushed the jtran/plane-code-ref branch from 0f00752 to 88b06d1 Compare February 25, 2025 06:04
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 94.73684% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.31%. Comparing base (af14628) to head (ee06f3e).

Files with missing lines Patch % Lines
src/wasm-lib/kcl/src/execution/artifact.rs 90.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5489      +/-   ##
==========================================
+ Coverage   86.28%   86.31%   +0.03%     
==========================================
  Files          95       95              
  Lines       35900    35909       +9     
==========================================
+ Hits        30975    30996      +21     
+ Misses       4925     4913      -12     
Flag Coverage Δ
wasm-lib 86.31% <94.73%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

1 participant