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

Prevent length constraint creation on endAbsolute lines #5938

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pierremtb
Copy link
Collaborator

@pierremtb pierremtb commented Mar 21, 2025

Fixes #5937 and #5871

Screen.Recording.2025-03-21.at.2.45.12.PM.mov

Copy link

vercel bot commented Mar 21, 2025

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Mar 28, 2025 6:35pm

Copy link

qa-wolf bot commented Mar 21, 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

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.90%. Comparing base (1753047) to head (f9acff7).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5938      +/-   ##
==========================================
+ Coverage   85.84%   85.90%   +0.05%     
==========================================
  Files         113      113              
  Lines       44484    44511      +27     
==========================================
+ Hits        38187    38236      +49     
+ Misses       6297     6275      -22     
Flag Coverage Δ
rust 85.90% <ø> (+0.05%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pierremtb pierremtb marked this pull request as ready for review March 27, 2025 00:44
@pierremtb pierremtb changed the title WIP: Prevent length constraint creation on endAbsolute lines Prevent length constraint creation on endAbsolute lines Mar 27, 2025
@pierremtb pierremtb requested review from Irev-Dev and a team March 27, 2025 00:44
if (hasEndAbsolute) {
// Won't be able to constrain that length
toast.error(
'Unable to constraint the length of a segment with endAbsolute'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Irev-Dev I'm curious about your opinion on this. Been looking for a way to intercept the call to set the length constraint on segments that can't actually take it like the endAbsolute ones, but super open to suggestions on different paths forward. Then I'm good to add a test for this of course!

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.

Looks like a good solution for now to me, but all good if you want to hear from @Irev-Dev before merging!

Thanks @franknoirot

Co-authored-by: Frank Noirot <[email protected]>
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.

Prevent length constraint creation on endAbsolute lines
2 participants