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

feat(secrets): update secret modal #992

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

abhinandan13jan
Copy link
Contributor

Fixes

https://issues.redhat.com/browse/HAC-5834

Description

This is WIP. Need to add tests

Type of change

  • Feature
  • Bugfix
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Screen shots / Gifs for design review

Screenshot 2024-09-25 at 8 13 09 PM Screenshot 2024-09-25 at 8 13 19 PM

How to test or reproduce?

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 27, 2024
Copy link
Contributor

openshift-ci bot commented Sep 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: abhinandan13jan
Once this PR has been reviewed and has the lgtm label, please assign rohitkrai03 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@abhinandan13jan abhinandan13jan changed the title [WIP] Update secret modal Update secret modal Oct 22, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 22, 2024
@CryptoRodeo
Copy link
Contributor

I think the initialValues in src/components/Secrets/__tests___/SecretModal.spec.tsx and src/components/Secrets/__tests___/SecretTypeSelector.spec.tsx will need to be changed based on the type error I'm seeing:

// Before
const initialValues: SecretModalValues = {
  secretName: '',
  type: SecretTypeDropdownLabel.opaque,
  keyValues: [{ key: '', value: '', readOnlyKey: false }],
  existingSecrets: [],
};

// After
const initialValues: SecretModalValues = {
  secretName: '',
  type: SecretTypeDropdownLabel.opaque,
  opaque: {
    keyValues: [{ key: '', value: '', readOnlyKey: false }],
  },
  existingSecrets: [],
};

@CryptoRodeo
Copy link
Contributor

I am seeing failing tests for src/components/Secrets/__tests___/SecretModal.spec.tsx:

should render validation message when user click on create button without filling the form
should call onSubmit handler with newly added secret

@abhinandan13jan
Copy link
Contributor Author

/retest

Copy link
Contributor

openshift-ci bot commented Oct 28, 2024

@abhinandan13jan: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/test bc524b3 link true /test test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@testcara
Copy link
Contributor

Hi, Abhi, could you help to improve the description of the PR if it's ready for review?

@caugello
Copy link
Contributor

When creating a source secret. In the secret list view the displayed type is key/value is this expected ?

@abhinandan13jan abhinandan13jan changed the title Update secret modal feat(secrets): ppdate secret modal Nov 5, 2024
@abhinandan13jan abhinandan13jan changed the title feat(secrets): ppdate secret modal feat(secrets): update secret modal Nov 5, 2024
@abhinandan13jan
Copy link
Contributor Author

/hold
Need to hold this till we migrate to new UI

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 6, 2024
@abhinandan13jan
Copy link
Contributor Author

/retest test

Copy link
Contributor

openshift-ci bot commented Nov 14, 2024

@abhinandan13jan: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test images
  • /test test

Use /test all to run all jobs.

In response to this:

/retest test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants