Skip to content

Conversation

@adietish
Copy link
Collaborator

@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 6.58%. Comparing base (71098f6) to head (e750e81).
⚠️ Report is 248 commits behind head on main.

Files with missing lines Patch % Lines
...com/redhat/devtools/gateway/DevSpacesConnection.kt 0.00% 20 Missing ⚠️
...in/com/redhat/devtools/gateway/DevSpacesContext.kt 0.00% 7 Missing ⚠️
.../redhat/devtools/gateway/server/RemoteIDEServer.kt 92.85% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #203      +/-   ##
========================================
+ Coverage   0.00%   6.58%   +6.58%     
========================================
  Files          4      32      +28     
  Lines         26    1184    +1158     
  Branches       0     215     +215     
========================================
+ Hits           0      78      +78     
- Misses        26    1098    +1072     
- Partials       0       8       +8     

☔ 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.

@adietish adietish force-pushed the issue-23579 branch 4 times, most recently from a0834ee to e7c2392 Compare October 27, 2025 22:56
@adietish adietish marked this pull request as ready for review October 28, 2025 11:24
@adietish adietish requested a review from vrubezhny October 28, 2025 18:57

delay(500L)
}
true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dead code here.

Otherwise looks good and reasonable to me.

If/when merged I'll have to align #205 according to this change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vrubezhny you're absolutely correct but it wont compile without it because the method has a boolean return value. I dont see any way to have it compile without the dead code. I'll add a comment that explains this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then, we can make it like:

            @Suppress("UNREACHABLE_CODE")
            null

I understand that this actually is not reachable code, but also returning true doesn't seem a correct thing...
It makes a fake impression of successful result, which isn't true.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agree, doing

@adietish adietish force-pushed the issue-23579 branch 2 times, most recently from 842f40b to a2e1967 Compare October 30, 2025 13:22
@adietish
Copy link
Collaborator Author

adietish commented Oct 30, 2025

@vrubezhny, @msivasubramaniaan: rebased it, can you please test/review it again? It should still enable/disable the connect button.

@adietish adietish requested a review from vrubezhny October 30, 2025 14:52
Copy link
Collaborator

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!


delay(500L)
}
true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Then, we can make it like:

            @Suppress("UNREACHABLE_CODE")
            null

I understand that this actually is not reachable code, but also returning true doesn't seem a correct thing...
It makes a fake impression of successful result, which isn't true.

import com.jetbrains.gateway.thinClientLink.LinkedClientManager
import com.jetbrains.gateway.thinClientLink.ThinClientHandle
import com.jetbrains.rd.util.lifetime.Lifetime
import com.redhat.devtools.gateway.openshift.DevWorkspace
Copy link
Collaborator

Choose a reason for hiding this comment

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

The import isn't really used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Signed-off-by: Andre Dietisheim <adietish@redhat.com>
Generated-by: gemini-cli
@adietish
Copy link
Collaborator Author

fixed & rebased

@adietish adietish merged commit c26a281 into redhat-developer:main Nov 1, 2025
5 checks passed
@adietish adietish deleted the issue-23579 branch November 1, 2025 00:02
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.

Jetbrains IDE: "Close and Stop" does not stop workspace

3 participants