-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor hacbs folder and merge into src #281
Conversation
/cc @christianvogt |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
==========================================
+ Coverage 73.29% 73.42% +0.13%
==========================================
Files 434 436 +2
Lines 9163 9159 -4
Branches 2447 2446 -1
==========================================
+ Hits 6716 6725 +9
+ Misses 2309 2296 -13
Partials 138 138
Continue to review full report at Codecov.
|
@@ -11,10 +11,10 @@ import { | |||
AlertActionLink, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have src/components/modal
, should we move modals there instead of having two modal
and Modals
directories?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to leave conflicts out of this PR. There are 2 GettingStartedModal
components, one for app-studio, one for hacbs. When we do the work to resolve this we can combine the directories.
import { useGitOpsDeploymentCR } from '../../../../hooks/useGitOpsDeploymentCR'; | ||
import { ComponentGroupVersionKind } from '../../../../models'; | ||
import { PipelineRunGroupVersionKind } from '../../../../shared'; | ||
import { WatchK8sResource } from '../../../dynamic-plugin-sdk'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important, but I think we no longer need the dynamic-plugin-sdk.ts
file. All sdk types are now available in @openshift/dynamic-plugin-sdk-utils
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying hard not to mix in other types of rework/refactoring
6f98925
to
cdeceba
Compare
HACBS_ENTERPRISE_CONTRACT_INFO_LINK, | ||
HACBS_ENTERPRISE_CONTRACT_POLICIES_DATA, | ||
} from './const'; | ||
import { EnterpriseContractPolicyGroupVersionKind } from '../models'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these components also go inside src/components
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I must have moved it incorrectly
@@ -13,12 +13,12 @@ import { | |||
} from '@patternfly/react-core'; | |||
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon'; | |||
import { SearchIcon } from '@patternfly/react-icons/dist/js/icons'; | |||
import { useModalLauncher } from '../../../components/modal/ModalProvider'; | |||
import { useNamespace } from '../../../utils/namespace-context-utils'; | |||
import { IntegrationTestScenarioGroupVersionKind } from '../../models'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see IntegrationTest
, IntegrationTestForm
and IntegrationTestListView
, maybe all the integration tests related components can go into one IntegrationTest folder?
cdeceba
to
a793686
Compare
@jeff-phillips-18: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
/retest |
LGTM! Seems like the e2e failures happens in all the open PRs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeff-phillips-18 The hacbs=false
flag doesn't work anymore for switching to old app studio UI. Apart from that everything seems to be working fine.
Edit - False alarm. It does work after a few refreshes.
LGTM! |
@@ -44,7 +44,7 @@ type Level = { | |||
footerButton: { title: string; cta: any }; | |||
}; | |||
|
|||
export const LOCAL_STORAGE_KEY = 'hacbs/getting-started-modal'; | |||
export const LOCAL_STORAGE_KEY = 'getting-started-modal'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The app studio modal is also using the same local storage key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rottencandy There is a ticket and a PR to remove GettingStartedModals completely. So i think we should fine with this now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be the reason why e2e tests are getting stuck on getting started modal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can put it back for now and let it be removed if/when they are completely removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be the reason why e2e tests are getting stuck on getting started modal.
No, when i checked locally cypress is able to click on the Create Application button behind the modal and proceeded with the flow. I think the issue is, Applications is not loading in the ephemeral env, you can see this issue in Abhi's PR where he removed this modal completely but still e2e is failing with that error
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, jeff-phillips-18 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 |
/lgtm |
Fixes
Fixes HAC-2493
Description
Move HACBS code up into src directory. Remove hacbs specificity on local storage items. Remove hacbs css prefix.
A few components were left in the
hacbs
directory due to naming conflicts. These components need to get resolved to be the same component regardless of the feature flag (that is, the component should look the same), waiting on UX to determine the common look of these components.Type of change