Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
Signed-off-by: James Talton <[email protected]>
  • Loading branch information
jamestalton committed Aug 29, 2024
1 parent 86b2a8e commit 7c716c2
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

jobs:
test-matrix:
generate-matrix:
name: Test Matrix
runs-on: ubuntu-latest
outputs:
Expand All @@ -23,11 +23,11 @@ jobs:
component:
name: Component
runs-on: ubuntu-latest
needs: test-matrix
needs: generate-matrix
strategy:
fail-fast: false
matrix:
directory: ${{ fromJson(needs.test-matrix.outputs.MATRIX) }}
directory: ${{ fromJson(needs.generate-matrix.outputs.MATRIX) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions frontend/awx/access/organizations/OrganizationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {
import { PageFormTextInput } from '../../../../framework/PageForm/Inputs/PageFormTextInput';
import { requestGet, requestPatch, swrOptions } from '../../../common/crud/Data';
import { usePostRequest } from '../../../common/crud/usePostRequest';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache/useInvalidateCache';
import { PageFormSelectExecutionEnvironment } from '../../administration/execution-environments/components/PageFormSelectExecutionEnvironment';
import { PageFormInstanceGroupSelect } from '../../administration/instance-groups/components/PageFormInstanceGroupSelect';
import { AwxPageForm } from '../../common/AwxPageForm';
import { awxAPI } from '../../common/api/awx-utils';
import { getAddedAndRemoved } from '../../common/util/getAddedAndRemoved';
import { InstanceGroup } from '../../interfaces/InstanceGroup';
import { Organization } from '../../interfaces/Organization';
import { AwxRoute } from '../../main/AwxRoutes';
import { getAddedAndRemoved } from '../../common/util/getAddedAndRemoved';

type IOrganizationData = Organization & {
instanceGroups?: InstanceGroup[];
Expand Down
8 changes: 4 additions & 4 deletions frontend/awx/access/roles/RoleForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useWatch } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import {
Expand All @@ -9,18 +10,17 @@ import {
useGetPageUrl,
usePageNavigate,
} from '../../../../framework';
import { PageFormMultiSelect } from '../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { PageFormHidden } from '../../../../framework/PageForm/Utils/PageFormHidden';
import { useGet } from '../../../common/crud/useGet';
import { usePatchRequest } from '../../../common/crud/usePatchRequest';
import { usePostRequest } from '../../../common/crud/usePostRequest';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache/useInvalidateCache';
import { AwxPageForm } from '../../common/AwxPageForm';
import { awxAPI } from '../../common/api/awx-utils';
import { AwxRbacRole } from '../../interfaces/AwxRbacRole';
import { AwxRoute } from '../../main/AwxRoutes';
import { AwxContentTypes, useAwxRoleMetadata } from './hooks/useAwxRoleMetadata';
import { PageFormMultiSelect } from '../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { PageFormHidden } from '../../../../framework/PageForm/Utils/PageFormHidden';
import { useWatch } from 'react-hook-form';

export function CreateRole(props: { breadcrumbLabelForPreviousPage?: string }) {
const { t } = useTranslation();
Expand Down
2 changes: 1 addition & 1 deletion frontend/awx/main/AwxLogin.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page } from '@patternfly/react-core';
import useSWR, { mutate } from 'swr';
import { LoadingState } from '../../../framework/components/LoadingState';
import { AnsibleLogin } from '../../common/AnsibleLogin';
import { AnsibleLogin } from '../../common/AnsibleLogin/AnsibleLogin';
import type { AuthOption } from '../../common/SocialAuthLogin';
import { requestGet } from '../../common/crud/Data';
import { awxAPI } from '../common/api/awx-utils';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
LoginMainHeader,
} from '@patternfly/react-core';
import { ExclamationCircleIcon } from '@patternfly/react-icons';
import { ReactNode, useCallback, useState, useEffect } from 'react';
import { useLocation } from 'react-router';
import { ReactNode, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useLocation } from 'react-router';
import styled from 'styled-components';
import { ErrorBoundary } from '../../framework/components/ErrorBoundary';
import { useFrameworkTranslations } from '../../framework/useFrameworkTranslations';
import { AuthOption, SocialAuthLogin } from './SocialAuthLogin';
import { RequestError, createRequestError } from './crud/RequestError';
import { getCookie } from './crud/cookie';
import { useFrameworkTranslations } from '../../../framework';
import { ErrorBoundary } from '../../../framework/components/ErrorBoundary';
import { getCookie } from '../crud/cookie';
import { createRequestError, RequestError } from '../crud/RequestError';
import { AuthOption, SocialAuthLogin } from '../SocialAuthLogin';

export function AnsibleLogin(props: {
/** Title for the login main body header of the login page */
Expand Down
2 changes: 1 addition & 1 deletion frontend/common/crud/useDeleteRequest.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
import { useClearCache } from '../useInvalidateCache';
import { useClearCache } from '../useInvalidateCache/useInvalidateCache';
import { createRequestError } from './RequestError';
import { requestCommon } from './requestCommon';

Expand Down
2 changes: 1 addition & 1 deletion frontend/common/crud/usePatchRequest.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useClearCache } from '../useInvalidateCache';
import { useClearCache } from '../useInvalidateCache/useInvalidateCache';
import { createRequestError } from './RequestError';
import { requestCommon } from './requestCommon';

Expand Down
2 changes: 1 addition & 1 deletion frontend/common/crud/usePostRequest.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useClearCache } from '../useInvalidateCache';
import { useClearCache } from '../useInvalidateCache/useInvalidateCache';
import { createRequestError } from './RequestError';
import { requestCommon } from './requestCommon';

Expand Down
2 changes: 1 addition & 1 deletion frontend/common/crud/usePutRequest.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useClearCache } from '../useInvalidateCache';
import { useClearCache } from '../useInvalidateCache/useInvalidateCache';
import { createRequestError } from './RequestError';
import { requestCommon } from './requestCommon';

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
import { PageFormTextInput } from '../../../../../framework/PageForm/Inputs/PageFormTextInput';
import { requestGet, requestPatch, swrOptions } from '../../../../common/crud/Data';
import { usePostRequest } from '../../../../common/crud/usePostRequest';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache/useInvalidateCache';
import { edaAPI } from '../../../common/eda-utils';
import { EdaPageForm } from '../../../common/EdaPageForm';
import { EdaOrganization, EdaOrganizationCreate } from '../../../interfaces/EdaOrganization';
import { EdaRoute } from '../../../main/EdaRoutes';
import { edaAPI } from '../../../common/eda-utils';

export function CreateOrganization() {
const { t } = useTranslation();
Expand Down
8 changes: 4 additions & 4 deletions frontend/eda/access/roles/RoleForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useWatch } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import {
Expand All @@ -9,18 +10,17 @@ import {
useGetPageUrl,
usePageNavigate,
} from '../../../../framework';
import { PageFormMultiSelect } from '../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { PageFormHidden } from '../../../../framework/PageForm/Utils/PageFormHidden';
import { useGet } from '../../../common/crud/useGet';
import { usePatchRequest } from '../../../common/crud/usePatchRequest';
import { usePostRequest } from '../../../common/crud/usePostRequest';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache';
import { useInvalidateCacheOnUnmount } from '../../../common/useInvalidateCache/useInvalidateCache';
import { EdaPageForm } from '../../common/EdaPageForm';
import { edaAPI } from '../../common/eda-utils';
import { EdaRbacRole } from '../../interfaces/EdaRbacRole';
import { EdaRoute } from '../../main/EdaRoutes';
import { EdaContentTypes, useEdaRoleMetadata } from './hooks/useEdaRoleMetadata';
import { PageFormMultiSelect } from '../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { PageFormHidden } from '../../../../framework/PageForm/Utils/PageFormHidden';
import { useWatch } from 'react-hook-form';

export function CreateRole(props: { breadcrumbLabelForPreviousPage?: string }) {
const { t } = useTranslation();
Expand Down
8 changes: 4 additions & 4 deletions frontend/eda/access/teams/TeamPage/TeamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {
import { PageFormTextInput } from '../../../../../framework/PageForm/Inputs/PageFormTextInput';
import { requestGet, requestPatch, swrOptions } from '../../../../common/crud/Data';
import { usePostRequest } from '../../../../common/crud/usePostRequest';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache/useInvalidateCache';
import { edaAPI } from '../../../common/eda-utils';
import { EdaPageForm } from '../../../common/EdaPageForm';
import { EdaOrganization } from '../../../interfaces/EdaOrganization';
import { EdaResult } from '../../../interfaces/EdaResult';
import { EdaTeam, EdaTeamCreate, EdaTeamDetail } from '../../../interfaces/EdaTeam';
import { EdaRoute } from '../../../main/EdaRoutes';
import { edaAPI } from '../../../common/eda-utils';
import { EdaResult } from '../../../interfaces/EdaResult';
import { EdaOrganization } from '../../../interfaces/EdaOrganization';
import { PageFormSelectOrganization } from '../../organizations/components/PageFormOrganizationSelect';

export function CreateTeam() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/eda/main/EdaLogin.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page } from '@patternfly/react-core';
import { mutate } from 'swr';
import { LoadingState } from '../../../framework/components/LoadingState';
import { AnsibleLogin } from '../../common/AnsibleLogin';
import { AnsibleLogin } from '../../common/AnsibleLogin/AnsibleLogin';
import { edaAPI } from '../common/eda-utils';
import { useEdaActiveUser } from '../common/useEdaActiveUser';

Expand Down
18 changes: 9 additions & 9 deletions frontend/hub/access/roles/RolePage/HubRoleForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useWatch } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router-dom';
import { useWatch } from 'react-hook-form';
import {
PageFormSelect,
PageFormSubmitHandler,
Expand All @@ -10,18 +10,18 @@ import {
useGetPageUrl,
usePageNavigate,
} from '../../../../../framework';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache';
import { PageFormMultiSelect } from '../../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { PageFormHidden } from '../../../../../framework/PageForm/Utils/PageFormHidden';
import { useGet } from '../../../../common/crud/useGet';
import { usePatchRequest } from '../../../../common/crud/usePatchRequest';
import { usePostRequest } from '../../../../common/crud/usePostRequest';
import { HubRbacRole } from '../../../interfaces/expanded/HubRbacRole';
import { useInvalidateCacheOnUnmount } from '../../../../common/useInvalidateCache/useInvalidateCache';
import { hubAPI } from '../../../common/api/formatPath';
import { HubRoute } from '../../../main/HubRoutes';
import { HubPageForm } from '../../../common/HubPageForm';
import { useHubRoleMetadata } from '../hooks/useHubRoleMetadata';
import { PageFormHidden } from '../../../../../framework/PageForm/Utils/PageFormHidden';
import { PageFormMultiSelect } from '../../../../../framework/PageForm/Inputs/PageFormMultiSelect';
import { ContentTypeEnum } from '../../../interfaces/expanded/ContentType';
import { useGet } from '../../../../common/crud/useGet';
import { usePatchRequest } from '../../../../common/crud/usePatchRequest';
import { HubRbacRole } from '../../../interfaces/expanded/HubRbacRole';
import { HubRoute } from '../../../main/HubRoutes';
import { useHubRoleMetadata } from '../hooks/useHubRoleMetadata';
import { useIsValidRoleName } from '../hooks/useIsValidRoleName';

export function CreateRole(props: { breadcrumbLabelForPreviousPage?: string }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { PageFormSecret } from '../../../../framework/PageForm/Inputs/PageFormSe
import { PageFormExpandableSection } from '../../../../framework/PageForm/PageFormExpandableSection';
import { useGet } from '../../../common/crud/useGet';
import { usePostRequest } from '../../../common/crud/usePostRequest';
import { useClearCache } from '../../../common/useInvalidateCache';
import { useClearCache } from '../../../common/useInvalidateCache/useInvalidateCache';
import { useIsValidUrl } from '../../../common/validation/useIsValidUrl';
import { HubError } from '../../common/HubError';
import { HubPageForm } from '../../common/HubPageForm';
Expand Down
2 changes: 1 addition & 1 deletion frontend/hub/administration/remotes/RemoteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { PageFormSection } from '../../../../framework/PageForm/Utils/PageFormSe
import { LoadingPage } from '../../../../framework/components/LoadingPage';
import { useGet } from '../../../common/crud/useGet';
import { usePostRequest } from '../../../common/crud/usePostRequest';
import { useClearCache } from '../../../common/useInvalidateCache';
import { useClearCache } from '../../../common/useInvalidateCache/useInvalidateCache';
import { useIsValidUrl } from '../../../common/validation/useIsValidUrl';
import { HubError } from '../../common/HubError';
import { HubPageForm } from '../../common/HubPageForm';
Expand Down
2 changes: 1 addition & 1 deletion frontend/hub/main/HubLogin.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page } from '@patternfly/react-core';
import { mutate } from 'swr';
import { LoadingState } from '../../../framework/components/LoadingState';
import { AnsibleLogin } from '../../common/AnsibleLogin';
import { AnsibleLogin } from '../../common/AnsibleLogin/AnsibleLogin';
import { useHubActiveUser } from '../../hub/common/useHubActiveUser';
import { hubAPI } from '../common/api/formatPath';
import { HubContextProvider } from '../common/useHubContext';
Expand Down
2 changes: 1 addition & 1 deletion frontend/hub/namespaces/HubNamespaceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { PageFormSection } from '../../../framework/PageForm/Utils/PageFormSecti
import { useGet } from '../../common/crud/useGet';
import { usePostRequest } from '../../common/crud/usePostRequest';
import { usePutRequest } from '../../common/crud/usePutRequest';
import { useClearCache } from '../../common/useInvalidateCache';
import { useClearCache } from '../../common/useInvalidateCache/useInvalidateCache';
import { HubError } from '../common/HubError';
import { HubPageForm } from '../common/HubPageForm';
import { hubAPI } from '../common/api/formatPath';
Expand Down

0 comments on commit 7c716c2

Please sign in to comment.