feat: conservative approach to single design per modeler#1740
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1740 +/- ##
==========================================
+ Coverage 90.75% 90.80% +0.04%
==========================================
Files 91 91
Lines 8007 8003 -4
==========================================
Hits 7267 7267
+ Misses 740 736 -4 ☔ View full report in Codecov by Sentry. |
|
@RobPasMue I played around with a few things with Discovery and core services and I didn't encounter any issue. Looks good! I have a few comments that are minor and can probably be addressed (if needed) after the PR is merged
|
The user will get a warning in their logs whenever they perform a call to
Hmm the
There are 2 calls to it in fact. But the method is still needed so that the client side still knows that a design is active.
That decorator is still needed IMO as long as the caching still exists. But I don't envision it disappearing. It depends on the depth of the caching we will do honestly. We can discuss this later. But even if we remove caching... whenever a user "stores" an object, we have to be conservative and assume that the user could try to use it later... so we will still need the decorator to tell them that the design is closed and this object can no longer be used. |
Description
A single design instance per Modeler object is handled. If a new design is requested, the old design is closed. We are also being conservative and checking that if you use an object belonging to an old design, we are still checking whether the design is active or not. With #1721 we lost this capability. This implementation makes it more robust
Issue linked
Closes #1710
Checklist
feat: extrude circle to cylinder)