Skip to content

Commit

Permalink
Merge pull request #5013 from bcgov/test-rook
Browse files Browse the repository at this point in the history
Test rook
  • Loading branch information
sumathi-thirumani authored Jan 19, 2024
2 parents a9da4ea + ba13d1a commit 33d0210
Show file tree
Hide file tree
Showing 84 changed files with 3,891 additions and 475 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/forms-flow-ai-web-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
- main
paths:
- "apps/forms-flow-ai/forms-flow-ai-web/**"
Expand Down Expand Up @@ -47,6 +49,18 @@ jobs:
echo "TAG_NAME="test"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'dev-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_AI_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-rook"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'test-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_AI_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-rook"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'main' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_AI_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/forms-flow-ai-web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "apps/forms-flow-ai/forms-flow-ai-web/**"
- "!apps/forms-flow-ai/forms-flow-ai-web/src/forms/**"
Expand Down
58 changes: 44 additions & 14 deletions .github/workflows/forms-flow-bpm-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
- main
paths:
- "apps/forms-flow-ai/forms-flow-bpm/**"
Expand All @@ -27,37 +29,65 @@ jobs:
if: github.event_name == 'push' && github.repository == 'bcgov/foi-flow'
steps:
- uses: actions/checkout@v2
- name: Set ENV variables
id: set-variable
- name: Set ENV variables for dev branch
if: ${{ github.ref_name == 'dev' }}
shell: bash
run: |
if [ ${{ github.ref_name }} == 'dev' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'dev-marshal' ]; then
- name: Set ENV variables for dev-marshal branch
if: ${{ github.ref_name == 'dev-marshal' }}
shell: bash
run: |
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
- name: Set ENV variables for test-marshal branch
if: ${{ github.ref_name == 'test-marshal' }}
shell: bash
run: |
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
shell: bash
run: |
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-marshal"" >> $GITHUB_ENV
echo "TAG_NAME="dev-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-rook"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'test-marshal' ]; then
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
shell: bash
run: |
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "TAG_NAME="test-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-rook"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'main' ]; then
- name: Set ENV variables for main branch
if: ${{ github.ref_name == 'main' }}
shell: bash
run: |
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test"" >> $GITHUB_ENV
echo "BRANCH_NAME="main"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
else
echo "For ${{ github.ref_name }} branch"
fi
shell: bash
- name: Login Openshift
shell: bash
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/forms-flow-web-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
- main
paths:
- "forms-flow-web/**"
Expand Down Expand Up @@ -47,6 +49,18 @@ jobs:
echo "TAG_NAME="test-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'dev-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-rook"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'test-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-rook"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'main' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/forms-flow-web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "forms-flow-web/**"

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/notification-manager-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
- main
paths:
- "notification-manager/**"
Expand Down Expand Up @@ -47,6 +49,18 @@ jobs:
echo "TAG_NAME="test-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'dev-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-rook"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'test-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-rook"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'main' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/notification-manager-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "notification-manager/**"

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/request-management-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
- main
paths:
- "request-management-api/**"
Expand Down Expand Up @@ -49,6 +51,18 @@ jobs:
echo "TAG_NAME="test-marshal"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-marshal"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'dev-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="dev-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="dev-rook"" >> $GITHUB_ENV
echo "ENV_NAME="dev"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'test-rook' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
echo "TAG_NAME="test-rook"" >> $GITHUB_ENV
echo "BRANCH_NAME="test-rook"" >> $GITHUB_ENV
echo "ENV_NAME="test"" >> $GITHUB_ENV
elif [ ${{ github.ref_name }} == 'main' ]; then
echo "For ${{ github.ref_name }} branch"
echo "TOOLS_NAME=${{secrets.OPENSHIFT4_FRONTEND_REPOSITORY}}" >> $GITHUB_ENV
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/request-management-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:
- main
- dev
- dev-marshal
- test-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "request-management-api/**"
- "!request-management-api/request_api/email_templates/**"
Expand Down
9 changes: 9 additions & 0 deletions forms-flow-web/src/actions/FOI/foiActionConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ const FOI_ACTION_CONSTANTS = {
"FOI_PDF_STITCHED_STATUS_FOR_RESPONSEPACKAGE",
FOI_PDF_STITCHED_RECORD_FOR_RESPONSEPACKAGE:
"FOI_PDF_STITCHED_RECORD_FOR_RESPONSEPACKAGE",
FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINEREVIEW: "FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINEREVIEW",
FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINEREVIEW: "FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINEREVIEW",
FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINE: "FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINE",
FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINE: "FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINE",

OIPC_OUTCOMES: "OIPC_OUTCOMES",
OIPC_STATUSES: "OIPC_STATUSES",
OIPC_REVIEWTYPES: "OIPC_REVIEWTYPES",
OIPC_INQUIRYOUTCOMES: "OIPC_INQUIRYOUTCOMES",
};

export default FOI_ACTION_CONSTANTS;
52 changes: 52 additions & 0 deletions forms-flow-web/src/actions/FOI/foiRequestActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@ export const setFOIPDFStitchedRecordForResponsePackage =
payload: data,
});
};
export const setFOIPDFStitchedRecordForOipcRedlineReview = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINEREVIEW,
payload: data,
});
}
export const setFOIPDFStitchedRecordForOipcRedline = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.FOI_PDF_STITCHED_RECORD_FOR_OIPCREDLINE,
payload: data,
});
}
export const setFOIPDFStitchStatusForHarms = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.FOI_PDF_STITCHED_STATUS_FOR_HARMS,
Expand All @@ -166,6 +178,18 @@ export const setFOIPDFStitchStatusForResponsePackage = (data) => (dispatch) => {
payload: data,
});
};
export const setFOIPDFStitchStatusForOipcRedlineReview = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINEREVIEW,
payload: data,
});
};
export const setFOIPDFStitchStatusForOipcRedline = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.FOI_PDF_STITCHED_STATUS_FOR_OIPCREDLINE,
payload: data,
});
};

export const serviceActionError = (_data) => (dispatch) => {
//TODO update to a common file
Expand Down Expand Up @@ -425,3 +449,31 @@ export const setConversionFormats = (data) => (dispatch) => {
payload: data,
});
};

export const setOIPCOutcomes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_OUTCOMES,
payload: data,
});
};

export const setOIPCStatuses = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_STATUSES,
payload: data,
});
};

export const setOIPCReviewtypes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_REVIEWTYPES,
payload: data,
});
};

export const setOIPCInquiryoutcomes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_INQUIRYOUTCOMES,
payload: data,
});
};
11 changes: 11 additions & 0 deletions forms-flow-web/src/apiManager/endpoints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const API = {
FOI_GET_RECEIVED_MODELIST: `${FOI_BASE_API_URL}/api/foiflow/receivedmodes`,
FOI_POST_REQUEST_POST: `${FOI_BASE_API_URL}/api/foirequests`,
FOI_REQUEST_API: `${FOI_BASE_API_URL}/api/foirequests/<requestid>/ministryrequest/<ministryid>`,
FOI_REQUEST_SECTION_API: `${FOI_BASE_API_URL}/api/foirequests/<requestid>/ministryrequest/<ministryid>/section`,
FOI_MINISTRYVIEW_REQUEST_API: `${FOI_BASE_API_URL}/api/foirequests/<requestid>/ministryrequest/<ministryid>/ministry`,
FOI_RAW_REQUEST_DESCRIPTION: `${FOI_BASE_API_URL}/api/foiaudit/rawrequest/<requestid>/description`,
FOI_MINISTRY_REQUEST_DESCRIPTION: `${FOI_BASE_API_URL}/api/foiaudit/ministryrequest/<ministryid>/description`,
Expand Down Expand Up @@ -133,5 +134,15 @@ const API = {

FOI_DOWNLOAD_RECORDS_FOR_RESPONSEPACKAGE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/download/responsepackage`,
FOI_PDF_STITCH_STATUS_FOR_RESPONSEPACKAGE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/responsepackage/pdfstitchjobstatus`,

FOI_DOWNLOAD_RECORDS_FOR_OIPCREDLINEREVIEW: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/download/oipcreviewredline`,
FOI_PDF_STITCH_STATUS_FOR_OIPCREDLINEREVIEW: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/oipcreviewredline/pdfstitchjobstatus`,
FOI_DOWNLOAD_RECORDS_FOR_OIPCREDLINE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/download/oipcredline`,
FOI_PDF_STITCH_STATUS_FOR_OIPCREDLINE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/oipcredline/pdfstitchjobstatus`,

FOI_GET_OIPC_OUTCOMES: `${FOI_BASE_API_URL}/api/foiflow/oipc/outcomes`,
FOI_GET_OIPC_STATUSES: `${FOI_BASE_API_URL}/api/foiflow/oipc/statuses`,
FOI_GET_OIPC_REVIEWTYPES: `${FOI_BASE_API_URL}/api/foiflow/oipc/reviewtypes`,
FOI_GET_OIPC_INQUIRYOUTCOMES: `${FOI_BASE_API_URL}/api/foiflow/oipc/inquiryoutcomes`,
};
export default API;
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const fetchAdvancedSearchData = ({
requestState = [],
requestStatus = [],
requestType = [],
requestFlags = [],
dateRangeType = null,
fromDate = null,
toDate = null,
Expand Down Expand Up @@ -41,6 +42,7 @@ export const fetchAdvancedSearchData = ({
requestState: requestState,
requestStatus: requestStatus,
requestType: requestType,
requestFlags: requestFlags,
dateRangeType: dateRangeType,
fromDate: fromDate,
toDate: toDate,
Expand Down
Loading

0 comments on commit 33d0210

Please sign in to comment.