-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge the changes on release-1.2.0 to main. (#…
…148) * Update to 1.2.0 * create super user * itvr 317, 325, 320, 321, 319 (#149) * -updates styles -updates eligibilty page -removes unused code from pages and css * -switches login to log in on bceid button * -adds drivers license and email to application serializer so it is passed to the frontend for the confirmation page * -updates application summary to match designs for each application type -updates fontsize in confirmation table * -started storybook for confirmation pages (does not currently work because of issues with idp) * -updates identification examples page to match new designs * -adds 'name and' to secondary identification 'The secondary piece of identification gives further proof of your name and address.' * -adds extra line to next steps for summary * -adds component for I Need Help section as it is reused so much * -updates variable for dark grey, removes 'background' from name because its used for text too * -updates spouse form -updates file drop area -updates household login -updates title of household login story -adds margin and width to file drop area css * -adds back accidentally removed } * -increases font size for consent checkbox labels * -adds tax information to consent * -adds table border variable -adds css for rebate table * -changes label text for spouse email -makes form changes -updates spouse form, some casing -adds component for upload to form and spouse form * -removes summary story (not working) * -adds variables to consent tax * itvr-327--loading-screen (#152) * itvr-327--loading-screen * itvr-327--disable-submit-buttons-when-loading * itvr-331--complete-cra-workflow (#151) * itvr-331--complete-cra-workflow * itvr-331--use-not-approved-status-and-fix-emails * new design changes/fixes (#154) * -correct capitalization on titles for consent -spacing between fields on form -spouse email text drops to newline -removes margin from p.error * -fixes condition in application type -removes eligibility pages and creates new individualLogin page, renames Household to householdLogin * itvr-328--add-footer (#153) * itvr328--add-footer * itvr-328--css-changes * itvr-328--move-footer-to-layout * change class to className * itvr 314 -changes alt text to identification examples (#156) * -changes alt text to identification examples * -fixed alt tags which were swapped for drivers licence and bc service card * design changes, stories (#155) * -story for application summary * -adds tax consent story for spouse * -fixes rebate amount for household table -adds new line to spouse email input, to say that the spouse has authorized the applicant to use their email * -adds story for new i need help component * -adds story for spouse form * -comments out not working stories * By pass django auth (#150) * update backend deployment readme * itvr-324--consent-changes (#159) * itvr-309-300--bcsc (#158) * itvr-309-300--bcsc * itvr-309--bcsc-houshold-application * fix details page issue * fix email variables (#160) Co-authored-by: Emily <[email protected]> Co-authored-by: tim738745 <[email protected]>
- Loading branch information
1 parent
df3c3de
commit 7ab9c15
Showing
81 changed files
with
2,179 additions
and
1,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
const task = require('./lib/build-k6.js') | ||
const settings = require('./lib/config.js') | ||
|
||
task(Object.assign(settings, { phase: 'build'})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
const settings = require('./lib/config.js') | ||
const task = require('./lib/deploy-k6.js') | ||
|
||
task(Object.assign(settings, { phase: settings.options.env})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use strict"; | ||
const { OpenShiftClientX } = require("@bcgov/pipeline-cli"); | ||
const path = require("path"); | ||
|
||
module.exports = settings => { | ||
const phases = settings.phases; | ||
const options = settings.options; | ||
const oc = new OpenShiftClientX(Object.assign({ namespace: phases.build.namespace }, options)); | ||
const phase = "build"; | ||
let objects = []; | ||
const templatesLocalBaseUrl = oc.toFileUrl(path.resolve(__dirname, "../../openshift")); | ||
|
||
// The building of your cool app goes here ▼▼▼ | ||
|
||
// build frontend | ||
|
||
//build backend | ||
objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/templates/backend/backend-bc.yaml`, { | ||
'param':{ | ||
'NAME': phases[phase].name, | ||
'SUFFIX': phases[phase].suffix, | ||
'VERSION': phases[phase].tag, | ||
'GIT_URL': oc.git.http_url, | ||
'GIT_REF': oc.git.ref | ||
} | ||
})) | ||
|
||
oc.applyRecommendedLabels( | ||
objects, | ||
phases[phase].name, | ||
phase, | ||
phases[phase].changeId, | ||
phases[phase].instance, | ||
); | ||
oc.applyAndBuild(objects); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
"use strict"; | ||
const { OpenShiftClientX } = require("@bcgov/pipeline-cli"); | ||
const path = require("path"); | ||
//const KeyCloakClient = require('./keycloak'); | ||
|
||
module.exports = settings => { | ||
const phases = settings.phases; | ||
const options = settings.options; | ||
const phase = options.env; | ||
const changeId = phases[phase].changeId; | ||
const oc = new OpenShiftClientX(Object.assign({namespace: phases[phase].namespace}, options)); | ||
|
||
//add Valid Redirect URIs for the pull request to keycloak | ||
/************ | ||
if(phase === 'dev') { | ||
const kc = new KeyCloakClient(settings, oc); | ||
kc.addUris(); | ||
} | ||
*************/ | ||
|
||
const templatesLocalBaseUrl = oc.toFileUrl(path.resolve(__dirname, "../../openshift")); | ||
var objects = []; | ||
|
||
// The deployment of your cool app goes here ▼▼▼ | ||
|
||
//before deploy k6 backend, copy backend-dc.yaml to backend-k6-dc.yaml and add BYPASS_AUTHENTICATION and gove value True | ||
//sample image files are available at https://www.learningcontainer.com/sample-jpeg-file-download-for-testing/ | ||
objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/templates/backend/backend-k6-dc.yaml`, { | ||
'param': { | ||
'NAME': phases[phase].name, | ||
'SUFFIX': phases[phase].suffix, | ||
'VERSION': phases[phase].tag, | ||
'ENV_NAME': phases[phase].phase, | ||
'BACKEND_HOST_NAME': phases[phase].backendHost, | ||
'CPU_REQUEST': phases[phase].backendCpuRequest, | ||
'CPU_LIMIT': phases[phase].backendCpuLimit, | ||
'MEMORY_REQUEST': phases[phase].backendMemoryRequest, | ||
'MEMORY_LIMIT': phases[phase].backendMemoryLimit, | ||
'HEALTH_CHECK_DELAY': phases[phase].backendHealthCheckDelay, | ||
'REPLICAS': phases[phase].backendReplicas, | ||
'DJANGO_DEBUG': phases[phase].backendDjangoDebug, | ||
'BUCKET_NAME': phases[phase].bucketName | ||
} | ||
})) | ||
|
||
oc.applyRecommendedLabels( | ||
objects, | ||
phases[phase].name, | ||
phase, | ||
`${changeId}`, | ||
phases[phase].instance, | ||
); | ||
oc.importImageStreams(objects, phases[phase].tag, phases.build.namespace, phases.build.tag); | ||
oc.applyAndDeploy(objects, phases[phase].instance); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.contrib.auth import get_user_model | ||
from rest_framework.authentication import TokenAuthentication | ||
|
||
|
||
ITVRUser = get_user_model() | ||
|
||
|
||
class LoadTestingAuthentication(TokenAuthentication): | ||
# Use any kind of token in the front end | ||
# ex. Authorization: Bearer testtoken | ||
keyword = "Bearer" | ||
|
||
def authenticate_credentials(self, token): | ||
# This requires a user to be present in the database. | ||
user = ITVRUser.objects.first() | ||
return user, token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.