-
Notifications
You must be signed in to change notification settings - Fork 56
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
KCL: Chamfer and fillet now use keyword arguments #5389
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
a860394
to
e23a166
Compare
|
e23a166
to
53805fe
Compare
|
|
|
64b5324
to
adf6ef4
Compare
|
|
4d8b3da
to
71bde94
Compare
|
71bde94
to
002ad0c
Compare
|
5ce73f7
to
1e6c571
Compare
|
|
60874d4
to
cf601c2
Compare
|
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
I had a quick look over the JS stuff, looks good to me.
I would definitely like @max-mrgrsk to have a chance to take a look too though.
But I think he wrote a lot of tests, so I doubt bugs have been introduced with tests passing.
@@ -85,7 +85,7 @@ | |||
"fmt": "prettier --write ./src *.ts *.json *.js ./e2e ./packages", | |||
"fmt-check": "prettier --check ./src *.ts *.json *.js ./e2e ./packages", | |||
"fetch:wasm": "./get-latest-wasm-bundle.sh", | |||
"fetch:samples": "echo \"Fetching latest KCL samples...\" && curl -o public/kcl-samples-manifest-fallback.json https://raw.githubusercontent.com/KittyCAD/kcl-samples/next/manifest.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super familiar with this, will need to be changed back to next after this breaking change goes live?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked branch locally, point and filleted/chamfered in 3D: all works as expected. Thank you!
@@ -415,13 +399,13 @@ profile001 = startProfileAt([205.96, 254.59], sketch002) | |||
cameraPos: { x: 16020, y: -2000, z: 10500 }, | |||
cameraTarget: { x: -150, y: -4500, z: -80 }, | |||
beforeChamferSnippet: `angledLine([segAng(rectangleSegmentA001)-90,217.26],%,$seg01) | |||
chamfer({length=30,tags=[ | |||
chamfer(extrude001,length=30,tags=[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it has been probably answered elsewhere.. We use x=y
logic for almost all arguments. Why the reference argument does not follow the same logic? I mean ref=extrude001
instead of just extrude001
? + It is a little bit confusing that reference has to be the first argument, while the rest can be mixed up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first argument is kinda like a "self" param in Python or other OOP languages. It allows you to make one unlabeled arg which can be omitted if it's %
(that way in big |> pipelines you don't need to always use %
for the most common cases).
|
It was fixed by Kevin in #5446
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5389 +/- ##
==========================================
+ Coverage 86.07% 86.14% +0.07%
==========================================
Files 95 95
Lines 35523 35716 +193
==========================================
+ Hits 30576 30768 +192
- Misses 4947 4948 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you delete this file? Also, got
.
Previously:
|> fillet({ radius = 5, tags = [seg01] }, %)
Now:
|> fillet(radius = 5, tags = [seg01])