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

BYOAI | BYOc | Sync PSL changes to dev Branch #100

Open
wants to merge 377 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
377 commits
Select commit Hold shift + click to select a range
5f5246a
testing automation flow
Prashant-Microsoft Sep 30, 2024
6313a92
testing automation flow
Prashant-Microsoft Sep 30, 2024
77c3c03
testing automation flow
Prashant-Microsoft Sep 30, 2024
7b4043e
testing automation flow
Prashant-Microsoft Sep 30, 2024
64a2d62
testing automation flow
Prashant-Microsoft Sep 30, 2024
2bad73d
testing automation flow
Prashant-Microsoft Sep 30, 2024
6f9e2a9
testing automation flow
Prashant-Microsoft Sep 30, 2024
e86b075
testing automation flow
Prashant-Microsoft Sep 30, 2024
37fec17
testing automation flow
Prashant-Microsoft Sep 30, 2024
f760a1a
testing automation flow
Prashant-Microsoft Sep 30, 2024
4e94ced
testing automation flow
Prashant-Microsoft Sep 30, 2024
4d54e0a
testing automation flow
Prashant-Microsoft Sep 30, 2024
d54e7ae
testing automation flow
Prashant-Microsoft Sep 30, 2024
737e300
testing automation flow
Prashant-Microsoft Sep 30, 2024
7f106a5
testing automation flow
Prashant-Microsoft Sep 30, 2024
3446f98
testing automation flow
Prashant-Microsoft Sep 30, 2024
473d1a4
testing automation flow
Prashant-Microsoft Sep 30, 2024
5e653f3
testing automation flow
Prashant-Microsoft Sep 30, 2024
2595464
testing automation flow
Prashant-Microsoft Sep 30, 2024
416d349
testing automation flow
Prashant-Microsoft Sep 30, 2024
928d5e7
Update main.bicep
Roopan-Microsoft Sep 30, 2024
2b03a19
testing automation flow
Prashant-Microsoft Oct 1, 2024
0760386
testing automation flow
Prashant-Microsoft Oct 1, 2024
06cefcb
testing automation flow
Prashant-Microsoft Oct 1, 2024
5dd6ad7
testing automation flow
Prashant-Microsoft Oct 1, 2024
064bcf7
testing automation flow
Prashant-Microsoft Oct 1, 2024
bd411f7
Merge pull request #2 from microsoft/dev
Roopan-Microsoft Oct 2, 2024
12dd649
testing automation flow
Prashant-Microsoft Oct 4, 2024
3cad65b
testing automation flow
Prashant-Microsoft Oct 4, 2024
312c4e1
testing automation flow
Prashant-Microsoft Oct 4, 2024
fb1c4bb
testing automation flow
Prashant-Microsoft Oct 4, 2024
aac9f71
Summarization of each call transcripts
Oct 4, 2024
c4310f5
testing automation flow
Prashant-Microsoft Oct 4, 2024
4a3dae9
testing automation flow
Prashant-Microsoft Oct 4, 2024
a61b35f
[Unit Test Cases] #8526 ( Answer Component)
Bangarraju-Microsoft Oct 4, 2024
f2123be
testing automation flow
Prashant-Microsoft Oct 4, 2024
84ed78f
testing automation flow
Prashant-Microsoft Oct 4, 2024
7e0106c
testing automation flow
Prashant-Microsoft Oct 4, 2024
cf348b8
testing automation flow
Prashant-Microsoft Oct 4, 2024
0ac38e7
modify code
Prashant-Microsoft Oct 7, 2024
ad6c497
Merge branch 'main' into psl-byo-bug7977
Himanshi-Mirosoft Oct 7, 2024
ef77694
added accessibility changes
Rohini-Microsoft Oct 7, 2024
433da72
Create codeql.yml
Roopan-Microsoft Oct 7, 2024
16fd5bd
Create label.yml
Roopan-Microsoft Oct 7, 2024
8b0b22a
Bicep updated to point dev for client advisor
Roopan-Microsoft Oct 7, 2024
0ea3a9f
main json updated
Roopan-Microsoft Oct 7, 2024
8f9909a
Bicep updated
Roopan-Microsoft Oct 7, 2024
f188e8a
label yml removed
Roopan-Microsoft Oct 7, 2024
d6126ec
Create label.yml
Roopan-Microsoft Oct 7, 2024
94112e8
labeler moved
Roopan-Microsoft Oct 7, 2024
e60f18e
deleted labeler yml
Roopan-Microsoft Oct 7, 2024
dab0d43
Create pylint.yml
Roopan-Microsoft Oct 7, 2024
0cf1f6c
Create eslint.yml
Roopan-Microsoft Oct 7, 2024
ec74b80
Added initial dependabot
Avijit-Microsoft Oct 8, 2024
84d9522
Updated for pip in dependabot
Avijit-Microsoft Oct 8, 2024
a59fa5a
Update function_app.py regarding the system message
Harmanpreet-Microsoft Oct 9, 2024
d2fa3df
added test workflow files
Oct 9, 2024
6512c54
updated the branch name
Oct 9, 2024
1973c20
removed unnecessory Line of code
Oct 9, 2024
efa95d3
Merge branch 'psl-byo-bug7977' of https://github.com/microsoft/Build-…
Oct 9, 2024
cb02ff7
Merge pull request #7 from Roopan-Microsoft/PSL-BUG-8413
Roopan-Microsoft Oct 9, 2024
935946a
add test scenario updated code
Mohan-Microsoft Oct 10, 2024
61c1ef7
UI - Unit test cases for Chat Component
Bangarraju-Microsoft Oct 11, 2024
7c10aed
Update Unit Test Case for Layout with regarding resources
Somesh-Microsoft Oct 11, 2024
2be4e0b
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Somesh-Microsoft Oct 11, 2024
188b1e0
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Bangarraju-Microsoft Oct 11, 2024
ea9aa36
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Somesh-Microsoft Oct 11, 2024
37283f4
Summarize and client name was changing on golden ques fix
Oct 11, 2024
82cefcb
renamed the file
Bangarraju-Microsoft Oct 11, 2024
e385d63
deleted test files
Prashant-Microsoft Oct 11, 2024
83da8da
added border and cursor
Rohini-Microsoft Oct 11, 2024
5b0d24c
Summarization issue line of code reduced
Oct 11, 2024
4152860
added expect
Somesh-Microsoft Oct 11, 2024
2b7cf69
Merge branch 'main' into PSL-BUG-7014
Roopan-Microsoft Oct 11, 2024
6507a18
Merge pull request #6 from Prashant-Microsoft/main
Roopan-Microsoft Oct 11, 2024
08de05a
removed eslint file
Prashant-Microsoft Oct 11, 2024
396af58
removed unnecessory code for debug
Oct 11, 2024
e1de154
Merge pull request #13 from Roopan-Microsoft/psl-dev-remove-eslint
Roopan-Microsoft Oct 11, 2024
59e6a98
Merge pull request #10 from Roopan-Microsoft/PSL_BUG_8401
Roopan-Microsoft Oct 11, 2024
c96c40b
Merge pull request #3 from microsoft/PSL-BUG-7014
Roopan-Microsoft Oct 11, 2024
148a0b8
UI - Unit test cases added for helpers and code clean up
Bangarraju-Microsoft Oct 11, 2024
5097c9b
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Bangarraju-Microsoft Oct 11, 2024
92f12f0
removed commented code
Bangarraju-Microsoft Oct 11, 2024
3019a85
Merge branch 'main' into PSL-US-7771-UT
Bangarraju-Microsoft Oct 11, 2024
c5ed67f
remove pylist error
Somesh-Microsoft Oct 11, 2024
aebe840
updated test scenario for ChatHistoryListItemCell
Mohan-Microsoft Oct 11, 2024
0794540
update pipeline
Somesh-Microsoft Oct 11, 2024
b595549
update the error
Somesh-Microsoft Oct 11, 2024
05d1f9b
Merge branch 'main' into psl-byo-bug7977
Himanshi-Mirosoft Oct 11, 2024
bef4a98
Use managed identity for cosmos db connection
Oct 11, 2024
5b70861
update error
Somesh-Microsoft Oct 11, 2024
f3d9033
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Mohan-Microsoft Oct 11, 2024
a7b69b3
coverage is added to git ignore
Mohan-Microsoft Oct 11, 2024
52408d7
Fixed failing test cases while running final coverage report
Mohan-Microsoft Oct 11, 2024
25dd1e0
added coverage in package
Mohan-Microsoft Oct 11, 2024
5f9272b
Update pylint.yml
Roopan-Microsoft Oct 11, 2024
3898d72
Merge pull request #14 from Roopan-Microsoft/PSL-BUG-8988
Somesh-Microsoft Oct 11, 2024
513c139
Revert "Psl bug 8988"
Somesh-Microsoft Oct 11, 2024
1d88ce2
Merge pull request #15 from Roopan-Microsoft/revert-14-PSL-BUG-8988
Roopan-Microsoft Oct 11, 2024
ac190f2
disableLocalAuth
Oct 11, 2024
e250fa3
Merge pull request #11 from Roopan-Microsoft/PSL-testWorkflow
Roopan-Microsoft Oct 11, 2024
6a7e258
Removed test scenario in Card component
Bangarraju-Microsoft Oct 11, 2024
b754886
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Bangarraju-Microsoft Oct 11, 2024
9146cab
UI - Unit test cases added for new changes in UserCard
Bangarraju-Microsoft Oct 11, 2024
64d9add
removed interface
Bangarraju-Microsoft Oct 11, 2024
4b46af4
Merge pull request #5 from microsoft/psl-byo-bug7977
Roopan-Microsoft Oct 13, 2024
d5ed8b1
Update function_app.py
Roopan-Microsoft Oct 14, 2024
3d13276
Update function_app.py
Roopan-Microsoft Oct 14, 2024
fa7245d
Merge branch 'main' into PSL-US-7771-UT
Bangarraju-Microsoft Oct 14, 2024
848a990
Update UserCard.test.tsx
Bangarraju-Microsoft Oct 14, 2024
179952f
Merge pull request #17 from Roopan-Microsoft/psl_8041
Roopan-Microsoft Oct 14, 2024
01f377b
updated pylint workflow
AjitPadhi-Microsoft Oct 14, 2024
acec2be
updated pylint workflow
AjitPadhi-Microsoft Oct 14, 2024
ca682ec
fixed lint issue
AjitPadhi-Microsoft Oct 14, 2024
a51e05b
fixed lint issue
AjitPadhi-Microsoft Oct 14, 2024
f76ca6a
Merge pull request #20 from Roopan-Microsoft/PSL-8988
Roopan-Microsoft Oct 14, 2024
7eb7cc0
Merge branch 'main' into PSL-US-8935
Roopan-Microsoft Oct 14, 2024
45ae3fa
Merge branch 'main' into PSL-US-7771-UT
Roopan-Microsoft Oct 14, 2024
95790bd
Merge pull request #16 from Roopan-Microsoft/PSL-US-8935
Roopan-Microsoft Oct 14, 2024
f66c2dd
Merge pull request #18 from microsoft/PSL-US-7771-UT
Roopan-Microsoft Oct 14, 2024
d75fd74
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
adf3f69
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
46fa390
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
966bb42
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
35e8561
Update app.py
Roopan-Microsoft Oct 15, 2024
66267f1
Update app.py
Roopan-Microsoft Oct 15, 2024
5f94636
backend unit test added
AjitPadhi-Microsoft Oct 15, 2024
5178d78
updated test workflow
AjitPadhi-Microsoft Oct 15, 2024
1bb809c
updated test workflow
AjitPadhi-Microsoft Oct 15, 2024
3ede0b8
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
b07a2eb
Merge pull request #22 from Roopan-Microsoft/PSL-8549
Roopan-Microsoft Oct 15, 2024
1756a97
Merge branch 'main' into psl-update-testworkflow
Roopan-Microsoft Oct 15, 2024
a92b304
Merge branch 'Roopan-Microsoft:main' into main
Avijit-Microsoft Oct 15, 2024
0d884b2
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
37745f7
Merge branch 'main' of https://github.com/Roopan-Microsoft/psl-byo-ma…
Rohini-Microsoft Oct 16, 2024
f14a8d9
Disable shared access key authentication for storage account.
Oct 16, 2024
7cd739b
Update copy_kb_files.sh
Pavan-Microsoft Oct 16, 2024
c0c7aa5
updated prompt flow version
Prashant-Microsoft Oct 17, 2024
b1292e5
Merge pull request #21 from Roopan-Microsoft/psl-update-testworkflow
Roopan-Microsoft Oct 17, 2024
aef33c3
modify code
Prashant-Microsoft Oct 17, 2024
258c77b
Merge branch 'main' into PSL-BUG-8506
Roopan-Microsoft Oct 17, 2024
2f41455
Merge pull request #23 from Roopan-Microsoft/PSL-BUG-8984
Roopan-Microsoft Oct 17, 2024
5c29ac8
Merge branch 'Roopan-Microsoft:main' into main
Avijit-Microsoft Oct 18, 2024
c2158e5
dependabot changes for pip directory
Avijit-Microsoft Oct 18, 2024
afcb495
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Oct 18, 2024
0f48cff
scheduled autodeployment twice a day
Prashant-Microsoft Oct 18, 2024
1635629
Merge pull request #26 from Roopan-Microsoft/PSL-BUG-8506
Prashant-Microsoft Oct 18, 2024
18fff4f
Merge pull request #28 from Roopan-Microsoft/autodeploy
Avijit-Microsoft Oct 21, 2024
0581dd6
Issue Fixed For Fork Branch
Oct 24, 2024
d679b93
test cases removed that was not needed
Oct 24, 2024
0562c11
Merge pull request #29 from Roopan-Microsoft/IssueWithFork
Himanshi-Mirosoft Oct 25, 2024
9835c35
updated base url
Prashant-Microsoft Oct 25, 2024
a19148e
Merge pull request #30 from Roopan-Microsoft/PSL-Task-9610
Prashant-Microsoft Oct 25, 2024
ab53323
Bug9231 fix and Chat.tsx Issue coming at time of getting response
Oct 26, 2024
0c67674
Removed unnecessary statement
Oct 26, 2024
fcd239a
Fixed 9231 bug
Oct 28, 2024
e8efa5c
Removed unnecessary Import statement
Oct 28, 2024
043a391
update prompt
Somesh-Microsoft Oct 28, 2024
ab9ba6c
Merge pull request #31 from Roopan-Microsoft/Bug9231-fix
Roopan-Microsoft Oct 28, 2024
828e119
"Updated AzureOpenAI API version, removed client investment risk tole…
Somesh-Microsoft Oct 29, 2024
9fc3d1c
Merge branch 'main' into PSL_BUG_8401
Somesh-Microsoft Oct 29, 2024
cb2e868
CI-CD pipeline
Priyanka-Microsoft Oct 30, 2024
5e7b20b
Resolving error for dockerfile
Priyanka-Microsoft Oct 30, 2024
aab672e
docker file path corrected
Priyanka-Microsoft Oct 30, 2024
042b627
ci pipeline
Priyanka-Microsoft Oct 30, 2024
3ac9f6a
Added listing files
Priyanka-Microsoft Oct 30, 2024
a4046d7
changed file path
Priyanka-Microsoft Oct 30, 2024
6de5b7a
changes
Priyanka-Microsoft Oct 31, 2024
0f84d21
Changes according to acceptance criteria
Priyanka-Microsoft Oct 31, 2024
ffcfdab
Changes after adding credential
Priyanka-Microsoft Oct 31, 2024
2763c83
Automating docker image
Priyanka-Microsoft Oct 31, 2024
259b239
github action updated
Priyanka-Microsoft Oct 31, 2024
9c3debc
changed dockerfile path
Priyanka-Microsoft Oct 31, 2024
9fe0eab
changed dockerfile path
Priyanka-Microsoft Oct 31, 2024
35839f2
changed dockerfile path1
Priyanka-Microsoft Oct 31, 2024
c49d9b5
Update package-lock.json to match package.json
Priyanka-Microsoft Oct 31, 2024
beaf0ec
dockerfile
Priyanka-Microsoft Oct 31, 2024
1497c5c
dockerfile
Priyanka-Microsoft Oct 31, 2024
721f28d
code changes
Priyanka-Microsoft Oct 31, 2024
74ee14c
dockerfile changes
Priyanka-Microsoft Oct 31, 2024
524c2e0
dockerfile changes
Priyanka-Microsoft Oct 31, 2024
6b0134a
added list the directory to debug
Priyanka-Microsoft Oct 31, 2024
4c80520
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
2d796a4
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
6414d46
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
a277c46
changes
Priyanka-Microsoft Oct 31, 2024
3f79960
updated json package
Priyanka-Microsoft Oct 31, 2024
149a003
Revert "updated json package"
Priyanka-Microsoft Oct 31, 2024
2349bce
updated json package
Priyanka-Microsoft Oct 31, 2024
9ad35d9
updated json package
Priyanka-Microsoft Oct 31, 2024
58203f5
updated json package
Priyanka-Microsoft Oct 31, 2024
21413e4
package updates
Priyanka-Microsoft Oct 31, 2024
cdae7a7
package updates
Priyanka-Microsoft Oct 31, 2024
807528b
Added codeowners file
Avijit-Microsoft Nov 1, 2024
ac564f4
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Nov 1, 2024
b724418
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
be921d9
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
8cf77d5
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
7a84c73
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
c1368b9
changes locarion user node
Priyanka-Microsoft Nov 4, 2024
1bae672
added install jest statement
Priyanka-Microsoft Nov 4, 2024
09f5d32
Delete dependabot
Avijit-Microsoft Nov 4, 2024
c63886f
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Nov 4, 2024
9a1ac07
added research assistant code
Priyanka-Microsoft Nov 5, 2024
52c45ba
changed file name
Priyanka-Microsoft Nov 5, 2024
06c8478
Merge pull request #1 from Priyanka-Microsoft/feature/8534-build-dock…
Priyanka-Microsoft Nov 5, 2024
9fee974
Added password secret
Priyanka-Microsoft Nov 5, 2024
a93893d
to check the pipeline
Priyanka-Microsoft Nov 5, 2024
6535c63
to check the pipeline
Priyanka-Microsoft Nov 5, 2024
95706d4
update transcript prompt
Somesh-Microsoft Nov 5, 2024
f0c1634
Merge branch 'PSL_BUG_8401' of https://github.com/SomeshJoshi-Microso…
Somesh-Microsoft Nov 5, 2024
80a8dca
testing pipeline
Priyanka-Microsoft Nov 5, 2024
487dd12
assign cosmos contributor Role to appservice
Nov 6, 2024
7250e3d
Update the code as per PR raise
Somesh-Microsoft Nov 6, 2024
ceed905
Merge pull request #34 from Somesh-Microsoft/PSL_BUG_8401
Roopan-Microsoft Nov 6, 2024
0419d2e
Merge pull request #33 from Avijit-Microsoft/main
Avijit-Microsoft Nov 6, 2024
8f93274
Merge pull request #2 from Priyanka-Microsoft/feature/8534-pipeline-i…
Priyanka-Microsoft Nov 6, 2024
6ecf632
Merge branch 'Roopan-Microsoft:main' into main
Priyanka-Microsoft Nov 6, 2024
c35bb1b
Merge pull request #25 from Roopan-Microsoft/PSL-US-8935-MiStorage
Pavan-Microsoft Nov 7, 2024
0cc5b8f
Merge branch 'main' into PSL-US-8935-COSMOS
Pavan-Microsoft Nov 7, 2024
9e62593
Merge pull request #35 from Roopan-Microsoft/PSL-US-8935-COSMOS
Avijit-Microsoft Nov 7, 2024
6ddb09c
Changes as suggested by Roopan
Priyanka-Microsoft Nov 7, 2024
bcdc0fe
Merge pull request #3 from Priyanka-Microsoft/feature/8534-pipeline-i…
Priyanka-Microsoft Nov 7, 2024
807438e
ui changes removed
Priyanka-Microsoft Nov 7, 2024
7f84184
Merge pull request #36 from Priyanka-Microsoft/main
Pavan-Microsoft Nov 8, 2024
0ca093f
fix for inconsistent respose for count of call transcript
Nov 12, 2024
e85658d
removed load statement for local debug
Nov 12, 2024
2ccd31f
added code to purge the deployment resources for research assistant
Prashant-Microsoft Nov 13, 2024
2f1d4d4
reverted the temprature field and after making temprature 0 it was gi…
Nov 13, 2024
177059e
modify code
Prashant-Microsoft Nov 13, 2024
94fa02c
removed extra space
Nov 13, 2024
a5fbf30
Merge pull request #37 from Roopan-Microsoft/Bug10335
Roopan-Microsoft Nov 13, 2024
ea52fca
added code to purge the deployment resources for client advisor
Prashant-Microsoft Nov 13, 2024
3481430
Update Dockerfile
Roopan-Microsoft Nov 13, 2024
8bc9739
Merge pull request #41 from Roopan-Microsoft/psl-fix-docker
Roopan-Microsoft Nov 13, 2024
5d1f8cb
added retry mechanism for research assistant
Prashant-Microsoft Nov 15, 2024
d671562
added retry mechanism for client advisor
Prashant-Microsoft Nov 15, 2024
3a6fc19
modify code
Prashant-Microsoft Nov 15, 2024
b686b06
modify code
Prashant-Microsoft Nov 15, 2024
ba754f6
Merge pull request #39 from Roopan-Microsoft/PSL-PURGE-9915
Avijit-Microsoft Nov 15, 2024
94ad7a4
Merge pull request #40 from Roopan-Microsoft/PSL-PURGE-9916
Avijit-Microsoft Nov 15, 2024
80d031d
added env variable for research assistant
Prashant-Microsoft Nov 18, 2024
a25e558
added env variable for client advisor
Prashant-Microsoft Nov 18, 2024
69dfc43
Merge pull request #42 from Roopan-Microsoft/PSL-PURGE-9915
Roopan-Microsoft Nov 18, 2024
db9839c
Merge pull request #43 from Roopan-Microsoft/PSL-PURGE-9916
Roopan-Microsoft Nov 18, 2024
fc51edd
added dependabot file and branch sync file
Nov 18, 2024
91ca63b
edit
Nov 18, 2024
0912d4f
branch name change
Nov 18, 2024
10f72c5
edits
Nov 18, 2024
3594ad0
Merge pull request #45 from Harmanpreet-Microsoft/main
Roopan-Microsoft Nov 20, 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
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft

# Specific directory ownership
/ClientAdvisor/ @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft

/ResearchAssistant/ @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft
93 changes: 93 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
version: 2
updates:
# 1. React (JavaScript/TypeScript) dependencies
- package-ecosystem: "npm"
directory: "/ClientAdvisor/App/frontend"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "npm"
directory: "/ResearchAssistant/App/frontend"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

# 2. Python dependencies
- package-ecosystem: "pip"
directory: "/ClientAdvisor/App"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ClientAdvisor/AzureFunction"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ClientAdvisor/Deployment/scripts/fabric_scripts"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ClientAdvisor/Deployment/scripts/index_scripts"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ResearchAssistant/App"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ResearchAssistant/Deployment/scripts/aihub_scripts"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ResearchAssistant/Deployment/scripts/fabric_scripts"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 15

- package-ecosystem: "pip"
directory: "/ResearchAssistant/Deployment/scripts/index_scripts"
schedule:
interval: "monthly"
commit-message:
prefix: "build"
target-branch: "dependabotchanges"
open-pull-requests-limit: 16
279 changes: 279 additions & 0 deletions .github/workflows/CAdeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
name: CI-Validate Deployment-Client Advisor

on:
push:
branches:
- main
paths:
- 'ClientAdvisor/**'
schedule:
- cron: '0 6,18 * * *' # Runs at 6:00 AM and 6:00 PM GMT

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Azure CLI
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az --version # Verify installation

- name: Login to Azure
run: |
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}

- name: Install Bicep CLI
run: az bicep install

- name: Generate Resource Group Name
id: generate_rg_name
run: |
echo "Generating a unique resource group name..."
TIMESTAMP=$(date +%Y%m%d%H%M%S)
COMMON_PART="pslautomationCli"
UNIQUE_RG_NAME="${COMMON_PART}${TIMESTAMP}"
echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV
echo "Generated RESOURCE_GROUP_PREFIX: ${UNIQUE_RG_NAME}"

- name: Check and Create Resource Group
id: check_create_rg
run: |
echo "RESOURCE_GROUP: ${{ env.RESOURCE_GROUP_NAME }}"
set -e
echo "Checking if resource group exists..."
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
if [ "$rg_exists" = "false" ]; then
echo "Resource group does not exist. Creating..."
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location uksouth || { echo "Error creating resource group"; exit 1; }
else
echo "Resource group already exists."
fi

- name: Generate Unique Solution Prefix
id: generate_solution_prefix
run: |
set -e
COMMON_PART="pslc"
TIMESTAMP=$(date +%s)
UPDATED_TIMESTAMP=$(echo $TIMESTAMP | tail -c 3)
UNIQUE_SOLUTION_PREFIX="${COMMON_PART}${UPDATED_TIMESTAMP}"
echo "SOLUTION_PREFIX=${UNIQUE_SOLUTION_PREFIX}" >> $GITHUB_ENV
echo "Generated SOLUTION_PREFIX: ${UNIQUE_SOLUTION_PREFIX}"

- name: Deploy Bicep Template
id: deploy
run: |
set -e
az deployment group create \
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file ClientAdvisor/Deployment/bicep/main.bicep \
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} cosmosLocation=eastus2

- name: List KeyVaults and Store in Array
id: list_keyvaults
run: |

set -e
echo "Listing all KeyVaults in the resource group ${RESOURCE_GROUP_NAME}..."

# Get the list of KeyVaults in the specified resource group
keyvaults=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --query "[?type=='Microsoft.KeyVault/vaults'].name" -o tsv)

if [ -z "$keyvaults" ]; then
echo "No KeyVaults found in resource group ${RESOURCE_GROUP_NAME}."
echo "KEYVAULTS=[]" >> $GITHUB_ENV # If no KeyVaults found, set an empty array
else
echo "KeyVaults found: $keyvaults"

# Format the list into an array with proper formatting (no trailing comma)
keyvault_array="["
first=true
for kv in $keyvaults; do
if [ "$first" = true ]; then
keyvault_array="$keyvault_array\"$kv\""
first=false
else
keyvault_array="$keyvault_array,\"$kv\""
fi
done
keyvault_array="$keyvault_array]"

# Output the formatted array and save it to the environment variable
echo "KEYVAULTS=$keyvault_array" >> $GITHUB_ENV
fi

- name: Update PowerBI URL
if: success()
run: |

set -e

COMMON_PART="-app-service"
application_name="${{ env.SOLUTION_PREFIX }}${COMMON_PART}"
echo "Updating application: $application_name"

# Log the Power BI URL being set
echo "Setting Power BI URL: ${{ vars.VITE_POWERBI_EMBED_URL }}"

# Update the application settings
az webapp config appsettings set --name "$application_name" --resource-group "${{ env.RESOURCE_GROUP_NAME }}" --settings VITE_POWERBI_EMBED_URL="${{ vars.VITE_POWERBI_EMBED_URL }}"

# Restart the web app
az webapp restart --resource-group "${{ env.RESOURCE_GROUP_NAME }}" --name "$application_name"

echo "Power BI URL updated successfully for application: $application_name."

- name: Delete Bicep Deployment
if: success()
run: |
set -e
echo "Checking if resource group exists..."
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
if [ "$rg_exists" = "true" ]; then
echo "Resource group exist. Cleaning..."
az group delete \
--name ${{ env.RESOURCE_GROUP_NAME }} \
--yes \
--no-wait
echo "Resource group deleted... ${{ env.RESOURCE_GROUP_NAME }}"
else
echo "Resource group does not exists."
fi

- name: Wait for resource deletion to complete
run: |

# List of keyvaults
KEYVAULTS="${{ env.KEYVAULTS }}"

# Remove the surrounding square brackets, if they exist
stripped_keyvaults=$(echo "$KEYVAULTS" | sed 's/\[\|\]//g')

# Convert the comma-separated string into an array
IFS=',' read -r -a resources_to_check <<< "$stripped_keyvaults"

# Append new resources to the array
resources_to_check+=("${{ env.SOLUTION_PREFIX }}-openai" "${{ env.SOLUTION_PREFIX }}-cogser")

echo "List of resources to check: ${resources_to_check[@]}"

# Get the list of resources in YAML format
resource_list=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --output yaml)

# Maximum number of retries
max_retries=3

# Retry intervals in seconds (30, 60, 120)
retry_intervals=(30 60 120)

# Retry mechanism to check resources
retries=0
while true; do
resource_found=false

# Iterate through the resources to check
for resource in "${resources_to_check[@]}"; do
echo "Checking resource: $resource"
if echo "$resource_list" | grep -q "name: $resource"; then
echo "Resource '$resource' exists in the resource group."
resource_found=true
else
echo "Resource '$resource' does not exist in the resource group."
fi
done

# If any resource exists, retry
if [ "$resource_found" = true ]; then
retries=$((retries + 1))
if [ "$retries" -ge "$max_retries" ]; then
echo "Maximum retry attempts reached. Exiting."
break
else
# Wait for the appropriate interval for the current retry
echo "Waiting for ${retry_intervals[$retries-1]} seconds before retrying..."
sleep ${retry_intervals[$retries-1]}
fi
else
echo "No resources found. Exiting."
break
fi
done

- name: Purging the Resources
if: success()
run: |

set -e
# Define variables
OPENAI_COMMON_PART="-openai"
openai_name="${{ env.SOLUTION_PREFIX }}${OPENAI_COMMON_PART}"
echo "Azure OpenAI: $openai_name"

MULTISERVICE_COMMON_PART="-cogser"
multiservice_account_name="${{ env.SOLUTION_PREFIX }}${MULTISERVICE_COMMON_PART}"
echo "Azure MultiService Account: $multiservice_account_name"

# Purge OpenAI Resource
echo "Purging the OpenAI Resource..."
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/uksouth/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/$openai_name --verbose; then
echo "Failed to purge openai resource: $openai_name"
else
echo "Purged the openai resource: $openai_name"
fi

# Purge MultiService Account Resource
echo "Purging the MultiService Account Resource..."
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/uksouth/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/$multiservice_account_name --verbose; then
echo "Failed to purge multiService account resource: $multiservice_account_name"
else
echo "Purged the multiService account resource: $multiservice_account_name"
fi

# Ensure KEYVAULTS is properly formatted as a comma-separated string
KEYVAULTS="${{ env.KEYVAULTS }}"

# Remove the surrounding square brackets, if they exist
stripped_keyvaults=$(echo "$KEYVAULTS" | sed 's/\[\|\]//g')

# Convert the comma-separated string into an array
IFS=',' read -r -a keyvault_array <<< "$stripped_keyvaults"

echo "Using KeyVaults Array..."
for keyvault_name in "${keyvault_array[@]}"; do
echo "Processing KeyVault: $keyvault_name"
# Check if the KeyVault is soft-deleted
deleted_vaults=$(az keyvault list-deleted --query "[?name=='$keyvault_name']" -o json --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }})

# If the KeyVault is found in the soft-deleted state, purge it
if [ "$(echo "$deleted_vaults" | jq length)" -gt 0 ]; then
echo "KeyVault '$keyvault_name' is soft-deleted. Proceeding to purge..."
az keyvault purge --name "$keyvault_name" --no-wait
else
echo "KeyVault '$keyvault_name' is not soft-deleted. No action taken."
fi
done

echo "Resource purging completed successfully"

- name: Send Notification on Failure
if: failure()
run: |

RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

# Construct the email body
EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>We would like to inform you that the Client Advisor Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
}
EOF
)

# Send the notification
curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
-H "Content-Type: application/json" \
-d "$EMAIL_BODY" || echo "Failed to send notification"
Loading