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

Add artifact ID to KCL values that have them #5205

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Conversation

jtran
Copy link
Collaborator

@jtran jtran commented Jan 31, 2025

Resolves #5186.

Weirdly, the id of Sketch and other core structs may get mutated. Sometimes the id value is the same as the artifact ID, but not always. We track and expose the stable artifact ID for everything that has it. This isn't used yet, but it will be in a follow-up PR.

Copy link

vercel bot commented Jan 31, 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 6, 2025 1:14am

Copy link

qa-wolf bot commented Jan 31, 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!

Comment on lines +113 to +122
// TODO: We're reusing the same UUID for multiple commands. This seems
// like the artifact graph would never be able to find all the
// responses.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This seems like it must be a bug. Separate issue though.

@jtran jtran marked this pull request as draft January 31, 2025 21:35
@jtran jtran force-pushed the jtran/sketch-artifact-id branch from 6469b06 to 35a285d Compare January 31, 2025 21:43
@jtran jtran marked this pull request as ready for review January 31, 2025 21:51
Copy link

codecov bot commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.01%. Comparing base (d3b02b8) to head (18d5980).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5205      +/-   ##
==========================================
- Coverage   86.01%   86.01%   -0.01%     
==========================================
  Files          92       92              
  Lines       33082    33093      +11     
==========================================
+ Hits        28455    28464       +9     
- Misses       4627     4629       +2     
Flag Coverage Δ
wasm-lib 86.01% <100.00%> (-0.01%) ⬇️

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.

Copy link
Collaborator

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

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

LGTM this will help tease out that issue you raised with the reuse of IDs too

@jtran jtran force-pushed the jtran/sketch-artifact-id branch from 45053f1 to 18d5980 Compare February 6, 2025 01:01
@jtran jtran merged commit bebace1 into main Feb 6, 2025
33 checks passed
@jtran jtran deleted the jtran/sketch-artifact-id branch February 6, 2025 04:50
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.

Make sure stable artifact IDs are in all variants KclValue type
2 participants