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

All 1.1 #129

Open
wants to merge 160 commits into
base: all-1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
e85029f
Task #216708 fix: resolve all lint warnings
deechavhan098 Apr 2, 2024
8c1a41a
Task #216708 fix: resolve conflicts
deechavhan098 Apr 2, 2024
1edf0c3
Task #216708 fix: resolve code-rabbit comments
deechavhan098 Apr 2, 2024
3f0ac66
Task #216708 fix: remove es-lint commnets
deechavhan098 Apr 2, 2024
4a40c80
Task #216708 fix: resolve comments
deechavhan098 Apr 2, 2024
9920bf2
Task #216708 fix: resolve comments
deechavhan098 Apr 2, 2024
cbf15d0
Task #0000 fix: Orchestration Api Url changes
deechavhan098 Apr 3, 2024
03981ea
Task #216708 fix: changes merge from all-1.1
deechavhan098 Apr 12, 2024
4d189e4
Task #216708 fix: changes merge from all-1.1
deechavhan098 Apr 12, 2024
7865bb6
Task #216708 fix: changes merge from all-1.1
deechavhan098 Apr 12, 2024
2371510
Task #216708 fix: fixed lint warnings
deechavhan098 Apr 12, 2024
866dbb4
IssueId #215702 fix: Mozhigal | Progress not appearing correctly for …
ajinkyapandetekdi May 6, 2024
9cec0dd
Merge pull request #27 from deepali-chavhan/lint-errors
gouravmore May 6, 2024
f50d3d8
Merge pull request #46 from ajinkyapandetekdi/responsive
gouravmore May 6, 2024
fb1d764
Bug #217137 fix: Added postMessage in pratice for send the charLengt…
deechavhan098 May 14, 2024
57147a8
Bug #217137 fix: Added postMessage in pratice for send the charLengt…
deechavhan098 May 14, 2024
8c212e1
Bug #217137 fix: Added postMessage in pratice for send the charLengt…
deechavhan098 May 14, 2024
cfd87d7
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 14, 2024
a0f199a
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 14, 2024
381f682
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 15, 2024
355bc2f
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 15, 2024
315a1d6
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 15, 2024
c4f879b
Bug #217137 fix: Next button is not visible in level 9
deechavhan098 May 15, 2024
ae0d87a
Merge pull request #51 from deepali-chavhan/all-1.1-next-button
gouravmore May 15, 2024
484cf5b
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
0ccbe21
Merge pull request #61 from ajinkyapandetekdi/ALL-1.0.1
gouravmore May 23, 2024
ff9c4f4
Task #219679 fix:In S1 and S2, React component should be refresh on l…
deechavhan098 May 23, 2024
8ba0465
Task #219679 fix:In S1 and S2, React component should be refresh on l…
deechavhan098 May 23, 2024
6e9d60b
Merge pull request #62 from deepali-chavhan/refresh-component
gouravmore May 23, 2024
078d117
Issue #219606 fix: localstorage chagnes
gouravmore May 23, 2024
fa61f14
Issue #219679 fix: iframe reload issue fixes
gouravmore May 23, 2024
68421e0
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
aab9014
Issue #iframe reload issue fixed
gouravmore May 23, 2024
57c83aa
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
8b90b62
Merge pull request #63 from ajinkyapandetekdi/ALL-1.0.1
gouravmore May 23, 2024
4aa67b5
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
bb64908
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
c42ed14
Merge pull request #64 from ajinkyapandetekdi/ALL-1.0.1
gouravmore May 23, 2024
abc1ff9
IssueId #219606 feat: on submit should call the learnerai API call in…
ajinkyapandetekdi May 23, 2024
451b846
Merge pull request #65 from ajinkyapandetekdi/ALL-1.0.1
gouravmore May 23, 2024
5d740f7
IssueID #218587 If black hearts are 5 then if we speak correct word t…
ajinkyapandetekdi May 24, 2024
116aeab
Issue Merged with All-1.0.1
gouravmore May 24, 2024
00547fe
Issue #resolved all-1.0.1 conflicts
gouravmore May 24, 2024
e1d9424
IssueID #218587 fix: If black hearts are 5 then if we speak correct w…
ajinkyapandetekdi May 24, 2024
fcf254e
IssueID #218587 fix: If black hearts are 5 then if we speak correct w…
ajinkyapandetekdi May 24, 2024
0df8ee0
Merge pull request #66 from ajinkyapandetekdi/ALL-1.0.1
gouravmore May 24, 2024
2f148ea
Bug #219351 Added syllable count set to 50 for english to handle inco…
sudeeppr1998 May 24, 2024
b725445
added after comma and code formatting fixed
sudeeppr1998 May 28, 2024
8ccc32e
auto formatting changes removed
sudeeppr1998 May 28, 2024
f017b9c
IssueId #219476 fix: Next button is not visible in level 9 below scre…
ajinkyapandetekdi May 28, 2024
5b102cd
Merge pull request #74 from ajinkyapandetekdi/updated-all-1.1
gouravmore May 28, 2024
2550c20
IssueId #220144 feat: Minus Percentage Should not show on FronEnd Sid…
ajinkyapandetekdi May 29, 2024
3457ab0
IssueId #220144 feat: Minus Percentage Should not show on FronEnd Sid…
ajinkyapandetekdi May 29, 2024
5e4fec2
IssueId #220144 feat: Minus Percentage Should not show on FronEnd Sid…
ajinkyapandetekdi May 30, 2024
f338471
Merge pull request #67 from sudeeppr1998/all-1.1
gouravmore May 30, 2024
c81c6a1
Merge pull request #75 from ajinkyapandetekdi/updated-all-1.1
gouravmore May 30, 2024
ea39674
Task #219999 fix: URL config as env for ALL app
deechavhan098 May 30, 2024
4e93d8a
Merge remote-tracking branch 'upstream/all-1.1' into all-1.1
deechavhan098 May 30, 2024
8bf9138
Merge pull request #76 from deepali-chavhan/all-1.1
gouravmore May 31, 2024
8e27d15
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
93c8085
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
a1b9acc
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
b8d35d8
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
2d28e2e
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
e29a525
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
a4a9b60
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
3a37f29
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
629f23a
IssueId #219355 Getting required score in minus values.
ajinkyapandetekdi May 31, 2024
ef37c57
Merge pull request #77 from ajinkyapandetekdi/updated-all-1.1
gouravmore May 31, 2024
d711c82
Task #219999 fix: changes done for test-rig app
deechavhan098 May 31, 2024
3301d54
Merge branch 'all-1.1' of github.com:Sunbird-ALL/storylingo-v2 into a…
deechavhan098 May 31, 2024
710f8b7
IssueID #220326 feat: Implement Mobile Responsiveness for Assessment …
ajinkyapandetekdi Jun 2, 2024
a0ec751
Task #219999 fix: Added new env variable for language or route
deechavhan098 Jun 3, 2024
b9f9d84
Task #219999 fix: Added new env variable for language or route
deechavhan098 Jun 3, 2024
13e864c
Task #219999 fix: resolve comments
deechavhan098 Jun 3, 2024
d50ff86
Task #219999 fix: resolve comments
deechavhan098 Jun 3, 2024
83aeaaa
Task #219999 fix: resolve comments
deechavhan098 Jun 3, 2024
88d9b3f
IssueID #220326 feat: Implement Mobile Responsiveness for Assessment …
ajinkyapandetekdi Jun 3, 2024
b6f7e9c
Merge pull request #78 from deepali-chavhan/all-1.1
gouravmore Jun 3, 2024
6d49200
IssueID #220326 feat: Implement Mobile Responsiveness for Assessment …
ajinkyapandetekdi Jun 3, 2024
f70d3be
IssueID #220326 feat: Implement Mobile Responsiveness for Assessment …
ajinkyapandetekdi Jun 3, 2024
b1d78ef
Merge pull request #79 from ajinkyapandetekdi/updated-all-1.1
gouravmore Jun 3, 2024
e52538e
Task #0000 fix: change in getAssessment response
deechavhan098 Jun 3, 2024
397c71d
Merge pull request #80 from deepali-chavhan/all-1.1
gouravmore Jun 4, 2024
3834821
Task #0000 fix: pagination API is failing
deechavhan098 Jun 4, 2024
a362815
Merge pull request #81 from deepali-chavhan/all-1.1
gouravmore Jun 4, 2024
6eba688
Task #0000 fix: pagination API is failing
deechavhan098 Jun 4, 2024
3c8b70d
Merge branch 'all-1.1' of github.com:Sunbird-ALL/storylingo-v2 into a…
deechavhan098 Jun 4, 2024
dd6bff5
Task #0000 fix: pagination API is failing
deechavhan098 Jun 4, 2024
f1ec586
Merge pull request #82 from deepali-chavhan/all-1.1
gouravmore Jun 4, 2024
72d14e6
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 4, 2024
d044a07
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 4, 2024
ddf8b77
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 4, 2024
1debefb
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 5, 2024
23f85e3
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 5, 2024
a9c63ae
IssueId #216311 fix: Mozhigal | Content going beyond white panel issue
ajinkyapandetekdi Jun 5, 2024
8ac3373
Merge pull request #83 from ajinkyapandetekdi/updated-all-1.1
gouravmore Jun 6, 2024
8365fc7
Task #0000 fix: Issue resolve audio playing after next button click
deechavhan098 Jun 6, 2024
b3762d5
Merge pull request #84 from deepali-chavhan/all-1.1
gouravmore Jun 6, 2024
7161c14
IssueId #220140 feat: Audio preprocessing lib update
ajinkyapandetekdi Jun 11, 2024
ba0a15b
IssueId #220140 feat: Audio preprocessing lib update
ajinkyapandetekdi Jun 11, 2024
4eaa56d
Merge pull request #85 from ajinkyapandetekdi/updated-all-1.1
gouravmore Jun 11, 2024
9bde645
Issue #220140 fix: Audio preprocessing lib update
gouravmore Jun 12, 2024
54b7e05
IssueId #0000 fix: fix pop-up box coming in showcase and added dialog…
deechavhan098 Jun 12, 2024
28227cc
Merge pull request #86 from deepali-chavhan/all-1.1
gouravmore Jun 12, 2024
c743c6d
Task #0000 fix: disabled next button if user not speak
deechavhan098 Jun 12, 2024
bd0eb79
Merge pull request #87 from deepali-chavhan/all-1.1
gouravmore Jun 12, 2024
f96b26b
IssueId #0000 fix: disabled next button if user not speak
ajinkyapandetekdi Jun 12, 2024
b7b0888
Merge pull request #88 from ajinkyapandetekdi/updated-all-1.1
gouravmore Jun 12, 2024
fde9fb9
Task #0000 fix: voice should not be recorded
deechavhan098 Jun 13, 2024
fbad447
Merge pull request #89 from deepali-chavhan/updated-all-1.1
gouravmore Jun 13, 2024
37410df
Bug #221383 fix: speak again popup is not showing properly.
deechavhan098 Jun 18, 2024
eb232c6
Merge pull request #91 from deepali-chavhan/test-rig-all
gouravmore Jun 18, 2024
fd1c808
Issue #all-automation git-hub workflows
gouravmore Jun 19, 2024
33af7e4
Issue #all-automation
gouravmore Jun 19, 2024
f60fa1b
Issue #all-automation
gouravmore Jun 19, 2024
79be4f6
Issue #all-automation changes
gouravmore Jun 19, 2024
d717315
Task #217402 fix: Husky Implementation and Integration in React
deechavhan098 Jun 19, 2024
de8c35b
Issue #env to var chagnes for yml file
gouravmore Jun 19, 2024
b0812a3
Issue npm install issue fixes
gouravmore Jun 19, 2024
add473d
updated the node version
gouravmore Jun 19, 2024
23f894e
Merge pull request #92 from deepali-chavhan/all-automation
gouravmore Jun 19, 2024
b6c421b
updated the node version
gouravmore Jun 19, 2024
9b0a0a1
Merge remote-tracking branch 'origin/all-automation' into all-automation
gouravmore Jun 19, 2024
e0e209d
disabled CI
gouravmore Jun 19, 2024
3ac4d49
disabled CI
gouravmore Jun 19, 2024
cd81a9e
Issue #workflow updates for test-rig dev
gouravmore Jun 19, 2024
e26dbff
package.json updates
gouravmore Jun 19, 2024
5f714b4
Issue #all-automation for prod bucket
gouravmore Jun 19, 2024
194dd50
Automation workflow test
gouravmore Jun 20, 2024
9c611d3
Merge pull request #93 from Sunbird-ALL/all-automation
gouravmore Jun 20, 2024
44e43e3
Branch update for test-rig prod
gouravmore Jun 20, 2024
e8c56a7
Merge pull request #95 from Sunbird-ALL/all-automation
gouravmore Jun 20, 2024
f405c18
Issue #219845 fix: branch update for test-rig prod
gouravmore Jun 20, 2024
66aec69
Merge pull request #97 from Sunbird-ALL/all-automation
gouravmore Jun 20, 2024
933fd5f
Issueid #221626 fix: Implement AuthGuard for Route Protection in React
ajinkyapandetekdi Jun 25, 2024
a693625
sandbox deployment
gouravmore Jun 25, 2024
2fd4db1
Issueid #221626 fix: Implement AuthGuard for Route Protection in React
ajinkyapandetekdi Jun 26, 2024
f4ab199
Issueid #221626 fix: Implement AuthGuard for Route Protection in React
ajinkyapandetekdi Jun 26, 2024
870e270
Update all-dev-rig.yml
gouravmore Jun 26, 2024
bb984f0
Merge pull request #100 from ajinkyapandetekdi/authguard
gouravmore Jun 26, 2024
c77d531
Merge pull request #102 from Sunbird-ALL/all-1.1-appliance-prod
gouravmore Jun 26, 2024
4af5ad0
Update all-dev-rig.yml
gouravmore Jun 26, 2024
9c8d30b
Issue #env config updates
gouravmore Jun 26, 2024
96114aa
IssueId #223082 feat: Create Log Out Button in Test-Rig [React]
ajinkyapandetekdi Jul 12, 2024
18d9bb9
IssueId #223082 feat: Create Log Out Button in Test-Rig [React]
ajinkyapandetekdi Jul 12, 2024
d91ee92
Merge pull request #107 from ajinkyapandetekdi/logout-functionality
gouravmore Jul 12, 2024
bb7c1ec
IssueId #223082 feat: Create Log Out Button in Test-Rig [React]
ajinkyapandetekdi Jul 12, 2024
6e3bdda
Merge pull request #110 from ajinkyapandetekdi/logout-functionality
gouravmore Jul 12, 2024
04c9989
devices spects added in start event
gouravmore Jul 12, 2024
49e768a
Merge branch 'all-1.2' of github.com:Sunbird-ALL/storylingo-v2 into a…
gouravmore Jul 12, 2024
05c4ef9
Merge pull request #119 from Sunbird-ALL/all-1.2
gouravmore Jul 23, 2024
8c65fd0
Task #224175 fix: Sonar Cloud Fixes for all-learner-ai-app
deechavhan098 Jul 30, 2024
96689fb
Update all-dev-rig.yml
gouravmore Jul 30, 2024
e063b00
Merge pull request #127 from deepali-chavhan/all-1.2
gouravmore Jul 30, 2024
086deb1
Merge pull request #128 from Sunbird-ALL/all-1.2
gouravmore Jul 30, 2024
0a76543
Merge branch 'all-1.0' into all-1.1
gouravmore Jul 30, 2024
e5f57f5
Task #224175 fix: sonar issue fixed
deechavhan098 Jul 30, 2024
1613498
Merge pull request #130 from deepali-chavhan/all-1.2
gouravmore Jul 30, 2024
d5e75a1
Merge pull request #131 from Sunbird-ALL/all-1.2
gouravmore Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions .github/workflows/all-app-sandbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: ALL sandbox prod Deployment

on:
push:
branches:
- all-1.1-appliance-prod

jobs:
deploy:
runs-on: ubuntu-latest
environment: all-app-sandbox

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
Comment on lines +22 to +25
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimize the AWS CLI installation step.

Consider combining the apt-get update and apt-get install commands to reduce the number of layers in the Docker image.

- sudo DEBIAN_FRONTEND=noninteractive apt-get update
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli


- name: Configure AWS credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region ${{ secrets.AWS_REGION }}

- name: Clean up node_modules and package-lock.json
run: |
rm -rf node_modules
rm -f package-lock.json

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Run Husky Install
run: npm run prepare

- name: Build and Package Application
env:
SKIP_PREFLIGHT_CHECK: ${{ vars.SKIP_PREFLIGHT_CHECK }}
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
REACT_APP_VER: ${{ vars.REACT_APP_VER }}
REACT_APP_TIMEDIFF: ${{ vars.REACT_APP_TIMEDIFF }}
REACT_APP_HOST: ${{ vars.REACT_APP_HOST }}
REACT_APP_ENDPOINT: ${{ vars.REACT_APP_ENDPOINT }}
REACT_APP_APISLUG: ${{ vars.REACT_APP_APISLUG }}
REACT_APP_CHANNEL: ${{ vars.REACT_APP_CHANNEL }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
REACT_APP_BATCHSIZE: ${{ vars.REACT_APP_BATCHSIZE }}
REACT_APP_CONTENT_SIZE: ${{ vars.REACT_APP_CONTENT_SIZE }}
REACT_APP_LANGUAGE: ${{ vars.REACT_APP_LANGUAGE }}
REACT_APP_TELEMETRY_MODE: ${{ vars.REACT_APP_TELEMETRY_MODE }}
REACT_APP_VIRTUAL_ID_HOST: ${{ vars.REACT_APP_VIRTUAL_ID_HOST }}
REACT_APP_LEARNER_AI_ORCHESTRATION_HOST: ${{ vars.REACT_APP_LEARNER_AI_ORCHESTRATION_HOST }}
REACT_APP_LEARNER_AI_APP_HOST: ${{ vars.REACT_APP_LEARNER_AI_APP_HOST }}
REACT_APP_CONTENT_SERVICE_APP_HOST: ${{ vars.REACT_APP_CONTENT_SERVICE_APP_HOST }}
REACT_APP_CAPTURE_AUDIO: ${{ vars.REACT_APP_CAPTURE_AUDIO }}
REACT_APP_AWS_S3_BUCKET_NAME: ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
REACT_APP_AWS_S3_BUCKET_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_URL }}
REACT_APP_AWS_S3_REGION: ${{ vars.REACT_APP_AWS_S3_REGION }}
REACT_APP_AWS_S3_BUCKET_CONTENT_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_CONTENT_URL }}
REACT_APP_MIN_DECIBELS: ${{ vars.REACT_APP_MIN_DECIBELS }}
REACT_APP_IS_AUDIOPREPROCESSING: ${{ vars.REACT_APP_IS_AUDIOPREPROCESSING }}
REACT_APP_POST_LEARNER_PROGRESS: ${{ vars.REACT_APP_POST_LEARNER_PROGRESS }}
REACT_APP_IS_APP_IFRAME: ${{ vars.REACT_APP_IS_APP_IFRAME }}
REACT_APP_IS_IN_APP_AUTHORISATION: ${{ vars.REACT_APP_IS_IN_APP_AUTHORISATION }}
REACT_APP_IS_APP_LANGUAGES: ${{ vars.REACT_APP_IS_APP_LANGUAGES }}
CI: false # Disabling CI to not treat warnings as errors
run: npm run build

- name: Deploy to S3 Bucket
run: aws s3 sync ./build s3://sb-all-appliance/assets/all-app/

- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
Comment on lines +84 to +88
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove sensitive information from debug logs.

Avoid printing sensitive information such as environment variables in the debug logs.

- echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
+ echo "REACT_APP_AWS_S3_BUCKET_NAME: [REDACTED]"
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "REACT_APP_AWS_S3_BUCKET_NAME: [REDACTED]"


- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
PATHS: '/*'
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
97 changes: 97 additions & 0 deletions .github/workflows/all-dev-rig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: ALL rig dev Deployment

on:
push:
branches:
- all-1.2.1

jobs:
deploy:
runs-on: ubuntu-latest
environment: all-dev-rig

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli

- name: Configure AWS credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region ${{ secrets.AWS_REGION }}

- name: Clean up node_modules and package-lock.json
run: |
rm -rf node_modules
rm -f package-lock.json

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Run Husky Install
run: npm run prepare

- name: Build and Package Application
env:
SKIP_PREFLIGHT_CHECK: ${{ vars.SKIP_PREFLIGHT_CHECK }}
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
REACT_APP_VER: ${{ vars.REACT_APP_VER }}
REACT_APP_TIMEDIFF: ${{ vars.REACT_APP_TIMEDIFF }}
REACT_APP_HOST: ${{ vars.REACT_APP_HOST }}
REACT_APP_ENDPOINT: ${{ vars.REACT_APP_ENDPOINT }}
REACT_APP_APISLUG: ${{ vars.REACT_APP_APISLUG }}
REACT_APP_CHANNEL: ${{ vars.REACT_APP_CHANNEL }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
REACT_APP_BATCHSIZE: ${{ vars.REACT_APP_BATCHSIZE }}
REACT_APP_CONTENT_SIZE: ${{ vars.REACT_APP_CONTENT_SIZE }}
REACT_APP_LANGUAGE: ${{ vars.REACT_APP_LANGUAGE }}
REACT_APP_TELEMETRY_MODE: ${{ vars.REACT_APP_TELEMETRY_MODE }}
REACT_APP_VIRTUAL_ID_HOST: ${{ vars.REACT_APP_VIRTUAL_ID_HOST }}
REACT_APP_LEARNER_AI_ORCHESTRATION_HOST: ${{ vars.REACT_APP_LEARNER_AI_ORCHESTRATION_HOST }}
REACT_APP_LEARNER_AI_APP_HOST: ${{ vars.REACT_APP_LEARNER_AI_APP_HOST }}
REACT_APP_CONTENT_SERVICE_APP_HOST: ${{ vars.REACT_APP_CONTENT_SERVICE_APP_HOST }}
REACT_APP_CAPTURE_AUDIO: ${{ vars.REACT_APP_CAPTURE_AUDIO }}
REACT_APP_AWS_S3_BUCKET_NAME: ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
REACT_APP_AWS_S3_BUCKET_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_URL }}
REACT_APP_AWS_S3_REGION: ${{ vars.REACT_APP_AWS_S3_REGION }}
REACT_APP_AWS_S3_BUCKET_CONTENT_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_CONTENT_URL }}
REACT_APP_MIN_DECIBELS: ${{ vars.REACT_APP_MIN_DECIBELS }}
REACT_APP_IS_AUDIOPREPROCESSING: ${{ vars.REACT_APP_IS_AUDIOPREPROCESSING }}
REACT_APP_POST_LEARNER_PROGRESS: ${{ vars.REACT_APP_POST_LEARNER_PROGRESS }}
REACT_APP_IS_APP_IFRAME: ${{ vars.REACT_APP_IS_APP_IFRAME }}
REACT_APP_IS_IN_APP_AUTHORISATION: ${{ vars.REACT_APP_IS_IN_APP_AUTHORISATION }}
REACT_APP_IS_APP_LANGUAGES: ${{ vars.REACT_APP_IS_APP_LANGUAGES }}
CI: false # Disabling CI to not treat warnings as errors
run: npm run build

- name: Deploy to S3 Bucket
run: aws s3 sync ./build s3://sballappliance/

- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}

- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
PATHS: '/*'
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
81 changes: 81 additions & 0 deletions .github/workflows/all-dev-tn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: ALL tn dev Deployment

on:
push:
branches:
- test

jobs:
deploy:
runs-on: ubuntu-latest
environment: all-dev-rig

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
- name: Configure AWS credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region ${{ secrets.AWS_REGION }}
- name: Build and Package Application
run: |
npm install

- name: Build Production
run: |
REACT_APP_API_KEY=${{ secrets.REACT_APP_API_KEY }} \
REACT_APP_MODE=play \
REACT_APP_authToken="" \
REACT_APP_PID=learner-ai-story-demo \
REACT_APP_UID=anonymous \
REACT_APP_ID=all.ll.app \
REACT_APP_VER="0.3.0" \
REACT_APP_TIMEDIFF="0" \
REACT_APP_HOST=https://telemetry-dev.theall.ai \
REACT_APP_ENDPOINT=telemetry \
REACT_APP_APISLUG="/v1/" \
REACT_APP_CHANNEL="learner-ai-demo" \
REACT_APP_ENV="all-player" \
REACT_APP_BATCHSIZE=1 \
REACT_APP_CONTENT_SIZE=5 \
REACT_APP_LANGUAGE=ta \
REACT_APP_TELEMETRY_MODE=DT \
REACT_APP_LEARNER_AI_APP_HOST="https://www.learnerai-dev.theall.ai" \
REACT_APP_CAPTURE_AUDIO=true \
REACT_APP_AWS_S3_BUCKET_NAME=all-dev-storage \
REACT_APP_AWS_S3_BUCKET_URL=https://all-dev-storage.s3.ap-south-1.amazonaws.com \
REACT_APP_AWS_S3_REGION=ap-south-1 \
REACT_APP_AWS_ACCESS_KEY_ID=${{ secrets.REACT_APP_AWS_ACCESS_KEY_ID }} \
REACT_APP_AWS_SECRET_ACCESS_KEY=${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }} \
REACT_APP_AWS_S3_BUCKET_CONTENT_URL=https://all-dev-content-service.s3.ap-south-1.amazonaws.com \
REACT_APP_MIN_DECIBELS=-75 \
REACT_APP_IS_AUDIOPREPROCESSING=false \
npm run build
- name: Deploy to S3 Bucket
run: |
aws s3 sync ./build s3://sballappliance/assets/sb-ai/
- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{secrets.REACT_APP_AWS_S3_BUCKET_NAME}}
### Invalidate Cloudfront
- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
PATHS: '/*'
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
97 changes: 97 additions & 0 deletions .github/workflows/all-prod-rig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: ALL rig prod Deployment

on:
push:
branches:
- test-rig-1.1-prod

jobs:
deploy:
runs-on: ubuntu-latest
environment: all-prod-rig

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
Comment on lines +22 to +25
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimize the AWS CLI installation step.

Consider combining the apt-get update and apt-get install commands to reduce the number of layers in the Docker image.

- sudo DEBIAN_FRONTEND=noninteractive apt-get update
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
- name: Install AWS CLI
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli


- name: Configure AWS credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region ${{ secrets.AWS_REGION }}

- name: Clean up node_modules and package-lock.json
run: |
rm -rf node_modules
rm -f package-lock.json

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Run Husky Install
run: npm run prepare

- name: Build and Package Application
env:
SKIP_PREFLIGHT_CHECK: ${{ vars.SKIP_PREFLIGHT_CHECK }}
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
REACT_APP_VER: ${{ vars.REACT_APP_VER }}
REACT_APP_TIMEDIFF: ${{ vars.REACT_APP_TIMEDIFF }}
REACT_APP_HOST: ${{ vars.REACT_APP_HOST }}
REACT_APP_ENDPOINT: ${{ vars.REACT_APP_ENDPOINT }}
REACT_APP_APISLUG: ${{ vars.REACT_APP_APISLUG }}
REACT_APP_CHANNEL: ${{ vars.REACT_APP_CHANNEL }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
REACT_APP_BATCHSIZE: ${{ vars.REACT_APP_BATCHSIZE }}
REACT_APP_CONTENT_SIZE: ${{ vars.REACT_APP_CONTENT_SIZE }}
REACT_APP_LANGUAGE: ${{ vars.REACT_APP_LANGUAGE }}
REACT_APP_TELEMETRY_MODE: ${{ vars.REACT_APP_TELEMETRY_MODE }}
REACT_APP_VIRTUAL_ID_HOST: ${{ vars.REACT_APP_VIRTUAL_ID_HOST }}
REACT_APP_LEARNER_AI_ORCHESTRATION_HOST: ${{ vars.REACT_APP_LEARNER_AI_ORCHESTRATION_HOST }}
REACT_APP_LEARNER_AI_APP_HOST: ${{ vars.REACT_APP_LEARNER_AI_APP_HOST }}
REACT_APP_CONTENT_SERVICE_APP_HOST: ${{ vars.REACT_APP_CONTENT_SERVICE_APP_HOST }}
REACT_APP_CAPTURE_AUDIO: ${{ vars.REACT_APP_CAPTURE_AUDIO }}
REACT_APP_AWS_S3_BUCKET_NAME: ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
REACT_APP_AWS_S3_BUCKET_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_URL }}
REACT_APP_AWS_S3_REGION: ${{ vars.REACT_APP_AWS_S3_REGION }}
REACT_APP_AWS_S3_BUCKET_CONTENT_URL: ${{ vars.REACT_APP_AWS_S3_BUCKET_CONTENT_URL }}
REACT_APP_MIN_DECIBELS: ${{ vars.REACT_APP_MIN_DECIBELS }}
REACT_APP_IS_AUDIOPREPROCESSING: ${{ vars.REACT_APP_IS_AUDIOPREPROCESSING }}
REACT_APP_POST_LEARNER_PROGRESS: ${{ vars.REACT_APP_POST_LEARNER_PROGRESS }}
REACT_APP_IS_APP_IFRAME: ${{ vars.REACT_APP_IS_APP_IFRAME }}
REACT_APP_IS_IN_APP_AUTHORISATION: ${{ vars.REACT_APP_IS_IN_APP_AUTHORISATION }}
REACT_APP_IS_APP_LANGUAGES: ${{ vars.REACT_APP_IS_APP_LANGUAGES }}
CI: false # Disabling CI to not treat warnings as errors
run: npm run build

- name: Deploy to S3 Bucket
run: aws s3 sync ./build s3://sb-all-rig/

- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
Comment on lines +84 to +88
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove sensitive information from debug logs.

Avoid printing sensitive information such as environment variables in the debug logs.

- echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
+ echo "REACT_APP_AWS_S3_BUCKET_NAME: [REDACTED]"
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "REACT_APP_AWS_S3_BUCKET_NAME: [REDACTED]"


- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
PATHS: '/*'
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Loading