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

Removed disableS3Endpoint and disableArtifactsAPI flags #3086

Merged

Conversation

Gkrumbach07
Copy link
Member

closes: https://issues.redhat.com/browse/RHOAIENG-9698

Description

  • removed disableS3Endpoint and disableArtifactsAPI feature flags and their uses
  • removed tests that tested this flag
  • updated other tests
  • removed /api/storage api endpoint and frontend usages
  • removed geStorageObject function as it is not supported due to CORS issues
  • removed size warnings as it is not relevant anymore

How Has This Been Tested?

  1. create a pipeline run with markdown, html, model, and text/csv metric outputs
  2. check that you can visualize the html formatted
  3. check that markdown is visible but it will not be formatted
  4. do this for both compare runs and artifact viz tab
  5. check that artifact uri link opens all in a new tab, except for model which will also download

Test Impact

removed tests that tested the flags, updated others

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

@DaoDaoNoCode
Copy link
Member

DaoDaoNoCode commented Aug 13, 2024

There are some places that are not used anymore and might need removal:

  1. In https://github.com/Gkrumbach07/odh-dashboard/blob/cleanup-s3-feature/frontend/src/concepts/pipelines/content/artifacts/utils.ts. Should we remove the 2 functions in this files and remove the unit tests related to them?
  2. In https://github.com/Gkrumbach07/odh-dashboard/blob/cleanup-s3-feature/frontend/src/__tests__/cypress/cypress/support/commands/odh.ts#L578-L593, should we remove the 2 support for the old /api/storage endpoint?
  3. In https://github.com/Gkrumbach07/odh-dashboard/blob/cleanup-s3-feature/frontend/src/__tests__/cypress/cypress/tests/mocked/pipelines/compareRuns.cy.ts#L218-L237, should we remove these 2 mocked API calls?

Update tests and removed more unused code

Removed disableS3Endpoint and disableArtifactsAPI flags
@Gkrumbach07
Copy link
Member Author

/retest

Copy link
Member

@DaoDaoNoCode DaoDaoNoCode left a comment

Choose a reason for hiding this comment

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

Tested on the cluster. No feature flags are needed and the feature is working well.
/lgtm

@Gkrumbach07
Copy link
Member Author

/approve

Copy link
Contributor

openshift-ci bot commented Aug 14, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DaoDaoNoCode, Gkrumbach07

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

@DaoDaoNoCode
Copy link
Member

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit a0f050f into opendatahub-io:main Aug 14, 2024
6 checks passed
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.

3 participants