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

Make data connection for S3 model sources AWS-unspecific #1479

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

manaswinidas
Copy link
Contributor

@manaswinidas manaswinidas commented Jul 6, 2023

Fixes #1381

Description

Changes as suggested in #1381 comment
Screenshot 2023-07-06 at 9 50 57 PM
Screenshot 2023-07-06 at 9 51 34 PM

How Has This Been Tested?

  1. Check out the PR branch
  2. Try to create a data connection and/or pipeline server using the "Create New data connection" option. Also, look at the modal after clicking on "View Pipeline Configuration" while the pipeline is getting created and while Deploying a model using a "New Data Connection"

Test Impact

Just visual changes as described in #1381 and added test for endpoint required field for "Deploy model"

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • The commits have meaningful messages (squashes happen on merge by the bot).
  • 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 tests & storybook 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

Copy link
Member

@Gkrumbach07 Gkrumbach07 left a comment

Choose a reason for hiding this comment

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

i have not looked at tests yet.

@Gkrumbach07
Copy link
Member

Looks good. only concern is that this still will always default to AWS S3

export const getDataConnectionProvider = (dataConnection: DataConnection): string => {
  switch (dataConnection.type) {
    case DataConnectionType.AWS:
      return 'AWS S3';
    default:
      throw new Error('Invalid data connection type');
  }
};

@andrewballantyne is this ok

@lucferbux
Copy link
Contributor

Looks good. only concern is that this still will always default to AWS S3

export const getDataConnectionProvider = (dataConnection: DataConnection): string => {
  switch (dataConnection.type) {
    case DataConnectionType.AWS:
      return 'AWS S3';
    default:
      throw new Error('Invalid data connection type');
  }
};

@andrewballantyne is this ok

I think the goal of that issue was to change the display name of the fields, we would support more providers in follow up changes. But I'll defer to @andrewballantyne's response here.

@Gkrumbach07
Copy link
Member

/lgtm

The provider logic doesn't need to be changed

@openshift-ci openshift-ci bot added the lgtm label Jul 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne

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-ci openshift-ci bot added the approved label Jul 7, 2023
@andrewballantyne
Copy link
Member

/hold

Sorry, one sec 😓

@openshift-ci openshift-ci bot added the do-not-merge/hold This PR is hold for some reason label Jul 7, 2023
@andrewballantyne
Copy link
Member

/unhold

Nevermind 😄

@openshift-ci openshift-ci bot removed the do-not-merge/hold This PR is hold for some reason label Jul 7, 2023
@openshift-merge-robot openshift-merge-robot merged commit e1817ed into opendatahub-io:main Jul 7, 2023
4 checks passed
@shalberd
Copy link
Contributor

shalberd commented Jul 8, 2023

@manaswinidas thank you. @lucferbux Yeah, the backend code libraries, be they in Python or Go or whatever, have AWS* in their env variables, even though they can work with all S3 compatible providers, that is ok, though.

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.

[Feature Request]: make data connection for S3 model sources AWS-unspecific
6 participants