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

Begin data connection clean up #3660

Conversation

ashley-o0o
Copy link
Contributor

@ashley-o0o ashley-o0o commented Jan 21, 2025

Closes: RHOAIENG-15563

Description

This PR begins to clean up old code from data connections. Removes the isConnectionTypesEnabled feature flag from the list of options, and cleans up some Cypress code related to testing data connections

How Has This Been Tested?

tested locally

Test Impact

Cypress tests updated to remove some data connections tests

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress This PR is in WIP state label Jan 21, 2025
Copy link
Contributor

openshift-ci bot commented Jan 21, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch 3 times, most recently from 39db0e7 to ea0b5ed Compare January 21, 2025 16:40
@ashley-o0o ashley-o0o marked this pull request as ready for review January 21, 2025 18:18
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress This PR is in WIP state label Jan 21, 2025
@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch 2 times, most recently from 6ebc0c1 to 4944255 Compare January 21, 2025 18:56
Copy link
Contributor

@emilys314 emilys314 left a comment

Choose a reason for hiding this comment

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

Hey you started removing connections (the new code) instead of the data connections (the old stuff) can you check the rest of your PR? thanks

@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch 7 times, most recently from c0e597d to 881757a Compare January 23, 2025 18:22
@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch 5 times, most recently from 250e904 to 6d2eb0e Compare January 29, 2025 23:17
@manaswinidas
Copy link
Contributor

FYI This will cause merge conflicts with #3590 - depending on what goes in first

@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch from 6d2eb0e to d5bad83 Compare January 30, 2025 14:20
@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch from d5bad83 to 0ed7e70 Compare January 30, 2025 14:31
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.48%. Comparing base (f398f85) to head (29e3643).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
...il/overview/configuration/ConfigurationSection.tsx 50.00% 1 Missing ⚠️
...src/pages/projects/screens/spawner/SpawnerPage.tsx 66.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3660      +/-   ##
==========================================
- Coverage   84.15%   83.48%   -0.67%     
==========================================
  Files        1453     1453              
  Lines       33866    33787      -79     
  Branches     9384     9363      -21     
==========================================
- Hits        28499    28207     -292     
- Misses       5367     5580     +213     
Files with missing lines Coverage Δ
frontend/src/app/AppRoutes.tsx 94.00% <ø> (-0.34%) ⬇️
frontend/src/components/TypeaheadSelect.tsx 67.58% <ø> (-0.18%) ⬇️
frontend/src/concepts/areas/const.ts 100.00% <ø> (ø)
frontend/src/concepts/areas/types.ts 100.00% <ø> (ø)
frontend/src/k8sTypes.ts 100.00% <ø> (ø)
...rontend/src/pages/home/aiFlows/ProjectsGallery.tsx 94.11% <ø> (+4.11%) ⬆️
...erenceServiceModal/ManageInferenceServiceModal.tsx 96.92% <100.00%> (+3.17%) ⬆️
...screens/projects/kServeModal/ManageKServeModal.tsx 95.03% <100.00%> (+0.84%) ⬆️
...c/pages/projects/screens/detail/ProjectDetails.tsx 96.42% <ø> (-0.35%) ⬇️
...c/pages/projects/screens/spawner/SpawnerFooter.tsx 83.94% <100.00%> (-0.35%) ⬇️
... and 3 more

... and 45 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f398f85...29e3643. Read the comment docs.

Copy link
Contributor

@emilys314 emilys314 left a comment

Choose a reason for hiding this comment

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

Also how much are we going to remove? The PR states it's the beginning, but the jira item implies all?

Additionally you have some orphaned files you can remove related to data connections to, like the entire folder of frontend/src/pages/projects/screens/detail/data-connections

@ashley-o0o
Copy link
Contributor Author

@emilys314 The plan is to remove it all, but we had discussed just starting with the removal of the feature flag and conditionally rendered code related to it, as well as fixing some of the test cases to use connections. A second deliverable would be removal of the remaining dead code. I assumed that it might be easier to open a second jira ticket for that, but unsure.

@ashley-o0o ashley-o0o force-pushed the 15563/data-connections-clean-up branch from 0ed7e70 to 29e3643 Compare January 31, 2025 16:05
Copy link
Contributor

@Griffin-Sullivan Griffin-Sullivan left a comment

Choose a reason for hiding this comment

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

/lgtm Tested locally and everything worked as I expected. Code changes seem reasonable but I'll leave it up to the experts 😄

Copy link
Contributor

openshift-ci bot commented Feb 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: Griffin-Sullivan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 669629e into opendatahub-io:main Feb 3, 2025
29 checks passed
ashley-o0o added a commit to ashley-o0o/odh-dashboard that referenced this pull request Feb 7, 2025
* Data connection clean up

* Clean up some DataConnections code in Cypress tests

* Remove connectionTypes SupportedArea

* Cypress fixes
ashley-o0o added a commit to ashley-o0o/odh-dashboard that referenced this pull request Feb 7, 2025
* Data connection clean up

* Clean up some DataConnections code in Cypress tests

* Remove connectionTypes SupportedArea

* Cypress fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants