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

Remove the old service create/delete commands #2862

Merged

Conversation

datho7561
Copy link
Contributor

The old commands no longer work. They have been replaced with a webview that provides a nice form to create a service (that also doesn't work but will take a lot of time to fix). Removing this code will result in less to test for #2799.

Part of #2841

Signed-off-by: David Thompson davthomp@redhat.com

@datho7561
Copy link
Contributor Author

@rgrunber if you have time, could you please review this PR?

@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.28 🎉

Comparison is base (c8ba29f) 33.49% compared to head (ab93371) 33.77%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2862      +/-   ##
==========================================
+ Coverage   33.49%   33.77%   +0.28%     
==========================================
  Files          56       55       -1     
  Lines        4117     4059      -58     
  Branches      779      768      -11     
==========================================
- Hits         1379     1371       -8     
+ Misses       2738     2688      -50     
Impacted Files Coverage Δ
src/extension.ts 60.91% <100.00%> (ø)
src/odo.ts 33.17% <100.00%> (+1.60%) ⬆️
src/openshift/openshiftItem.ts 18.86% <100.00%> (+0.57%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@datho7561
Copy link
Contributor Author

datho7561 commented May 1, 2023

one second, i located some more dead code I can remove in this PR

okay should be good!

@datho7561 datho7561 force-pushed the 2841-remove-old-service-commands branch from c6e3535 to 797af89 Compare May 1, 2023 16:40
package.json Show resolved Hide resolved
@datho7561 datho7561 force-pushed the 2841-remove-old-service-commands branch from 797af89 to 6852b93 Compare May 1, 2023 19:40
rgrunber
rgrunber previously approved these changes May 1, 2023
The old commands no longer work.
They have been replaced with a webview that provides a nice form to
create a service
(that also doesn't work but will take a lot of time to fix).
Removing this code will result in less to test for redhat-developer#2799.

Part of redhat-developer#2841

Signed-off-by: David Thompson <davthomp@redhat.com>
@rgrunber rgrunber force-pushed the 2841-remove-old-service-commands branch from 6852b93 to ab93371 Compare May 5, 2023 14:50
@rgrunber rgrunber merged commit c1fef59 into redhat-developer:main May 5, 2023
@rgrunber rgrunber added this to the 1.4.0 milestone May 5, 2023
@datho7561 datho7561 deleted the 2841-remove-old-service-commands branch May 5, 2023 15:01
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this pull request May 19, 2023
- remove unused commands from `commands.ts` and unused methods from
  `odo.ts`
  - Notably, remove `ODO.getApplications()`, `ODO.getComponents()`,
    and the in-memory tree representing the cluster state,
    since they don't work properly and we have replacements for them
- rewrite integration tests for `commands.ts` and `odo.ts`
- report test coverage for integration tests
- add the integration tests to the UI test Jenkinsfile workflow

Depends on redhat-developer#2865, redhat-developer#2863, redhat-developer#2862

Fixes redhat-developer#2799

Signed-off-by: David Thompson <davthomp@redhat.com>
rgrunber pushed a commit that referenced this pull request May 19, 2023
- remove unused commands from `commands.ts` and unused methods from
  `odo.ts`
  - Notably, remove `ODO.getApplications()`, `ODO.getComponents()`,
    and the in-memory tree representing the cluster state,
    since they don't work properly and we have replacements for them
- rewrite integration tests for `commands.ts` and `odo.ts`
- report test coverage for integration tests
- add the integration tests to the UI test Jenkinsfile workflow

Depends on #2865, #2863, #2862

Fixes #2799

Signed-off-by: David Thompson <davthomp@redhat.com>
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.

2 participants