Skip to content

Fix DISABLE_DISCONNECT in the frontend #1972

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

Merged
merged 2 commits into from
Mar 28, 2025
Merged

Fix DISABLE_DISCONNECT in the frontend #1972

merged 2 commits into from
Mar 28, 2025

Conversation

jmthomas
Copy link
Member

closes #1971

@jmthomas jmthomas requested review from ryanmelt and ryan-pratt March 26, 2025 03:31
Copy link

codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.82%. Comparing base (934ee29) to head (fe24c1e).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1972      +/-   ##
==========================================
+ Coverage   76.66%   76.82%   +0.16%     
==========================================
  Files         628      628              
  Lines       46547    46560      +13     
  Branches      755      755              
==========================================
+ Hits        35684    35769      +85     
+ Misses      10780    10708      -72     
  Partials       83       83              
Flag Coverage Δ
ruby-api 48.41% <ø> (+<0.01%) ⬆️
ruby-backend 82.87% <100.00%> (+0.33%) ⬆️

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.

@@ -51,7 +51,7 @@
<v-btn
block
color="primary"
:disabled="buttonsDisabled"
:disabled="buttonsDisabled || (item.disable_disconnect && item.connected === 'CONNECTED')"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add a tooltip to say that it's disabled due to the interface config

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea because otherwise it's like ... why is this disabled?!

@@ -80,6 +80,7 @@ VARIABLE reduced_log_retain_time 2592000
<% if include_inst and include_inst_int %>
INTERFACE <%= inst_int_name %> simulated_target_interface.rb sim_inst.rb
MAP_TARGET <%= inst_target_name %>
DISABLE_DISCONNECT
Copy link
Member

Choose a reason for hiding this comment

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

I don't want the demo to have DISABLE_DISCONNECT set on anything.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought the Demo philosophy was to test all the options ... that's why we didn't know this didn't work. :-)

Copy link
Member

Choose a reason for hiding this comment

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

To a point. This makes the demo annoying so I'm vetoing.

@jmthomas
Copy link
Member Author

Screenshot 2025-03-27 at 4 19 15 PM

Copy link

@jmthomas jmthomas merged commit 32afa0a into main Mar 28, 2025
25 of 28 checks passed
@jmthomas jmthomas deleted the disabled branch March 28, 2025 00:49
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.

Interface modifier DISABLE_DISCONNECT doesn't work
3 participants