Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
9166587
implement profiles APIs + tests
nadimakk Feb 18, 2023
6867305
start of images implementation
nadimakk Feb 18, 2023
106d166
Implement ImageController & BlobImageStore
alijaafar21 Feb 19, 2023
7a90a8a
Implement ImageControllerTests & Perform Minor Changes
alijaafar21 Feb 20, 2023
a68c064
Create ImageDto & Modify ImageController and BlobImageStore accordingly
alijaafar21 Feb 21, 2023
f456588
add checks for validity of profile pic, add delete image when profile…
nadimakk Feb 21, 2023
2a85615
Change ImageDto to Image
alijaafar21 Feb 22, 2023
d82da04
Modify CosmosProfileStoreTests Constructor to handle dependencies inj…
alijaafar21 Feb 22, 2023
569d4b3
use response from DownloadToAsync to avoid calling Blob storage
nadimakk Feb 22, 2023
62ebf48
add tests for ImageExists from BlobStorage
nadimakk Feb 22, 2023
dfe4f8e
Create ProfileService with Tests
alijaafar21 Feb 26, 2023
b37371f
Edit relevant classes and tests to incorporate ProfileService
alijaafar21 Feb 26, 2023
2d9b7b4
Create custom exceptions
alijaafar21 Mar 1, 2023
7cf6206
Create prbuild.yml
alijaafar21 Mar 8, 2023
17405d3
Create azure_deploy.yml
alijaafar21 Mar 8, 2023
4454fe3
Update prbuild.yml
nadimakk Mar 8, 2023
60e144f
Merge pull request #6 from nadimakk/Lab3
alijaafar21 Mar 8, 2023
2945732
Edit workflow azure_deploy.yml
alijaafar21 Mar 9, 2023
58c53ca
Edit workflow prbuild.yml
nadimakk Mar 9, 2023
c4b52e9
Update workflow azure_deploy.yml
nadimakk Mar 9, 2023
335e335
Remove connection strings from appsettings
nadimakk Mar 9, 2023
a7decb1
Update prbuild.yml
nadimakk Mar 9, 2023
270dea7
rename Blob connection string name
nadimakk Mar 9, 2023
6623f7c
fix BlobStorage name in Program.cs
nadimakk Mar 9, 2023
5bd108e
Merge pull request #8 from nadimakk/Lab3
nadimakk Mar 9, 2023
dd5f28c
structure and begin storage layer
nadimakk Mar 27, 2023
c0b3947
Modify database entities & update ComosConversationStore
alijaafar21 Mar 28, 2023
d6152f4
complete conversation store and tests
nadimakk Mar 28, 2023
233bf11
Implement CosmosMessageStore
alijaafar21 Mar 29, 2023
5c1623c
begin conversation service
nadimakk Mar 29, 2023
f4a76d3
complete conversation service
nadimakk Mar 30, 2023
1ca4e88
complete message service
nadimakk Mar 30, 2023
e019ded
Perform code refactor & implement ConversationsController
alijaafar21 Mar 30, 2023
b4df943
Refactor & start ImageService
alijaafar21 Mar 30, 2023
a11b1ba
begin ConversationServiceTests
nadimakk Mar 30, 2023
1b092e9
Refactor & Implement ImageService
alijaafar21 Mar 30, 2023
00a8405
complete UserConversationServiceTests
nadimakk Mar 30, 2023
adb0b35
Merge branch 'Phase2' of https://github.com/nadimakk/ChatService into…
nadimakk Mar 30, 2023
31dab5f
refactoring of CosmosProfileStoreTest
nadimakk Mar 30, 2023
782b799
ConversationsControllerTests
alijaafar21 Mar 30, 2023
340398b
Merge branch 'Phase2' of https://github.com/nadimakk/ChatService into…
alijaafar21 Mar 30, 2023
8fbb5a5
Tiny bug fix
alijaafar21 Mar 30, 2023
f8fc10d
Implement ImageServiceTests and refactor
alijaafar21 Mar 31, 2023
26ab01f
Code Refactor
nadimakk Mar 31, 2023
88630dd
Add ChatService.sln.DotSettings.user to .gitignore
nadimakk Mar 31, 2023
5f6a69f
Add logs
nadimakk Mar 31, 2023
d5117a9
change log level
nadimakk Apr 1, 2023
f1c9a63
Bug fixes
alijaafar21 Apr 1, 2023
1f5971f
bug fixes and test refactoring
nadimakk Apr 1, 2023
4e95493
bug fix
nadimakk Apr 1, 2023
79a1034
Initial commit on orphan branch
nadimakk Apr 1, 2023
79f0560
Merge branch 'Phase2' into Submission
nadimakk Apr 1, 2023
a16effd
Merge branch 'Submission' into AprilPRSubmission
alijaafar21 Apr 14, 2023
bb09270
Fix all the comments
alijaafar21 Apr 14, 2023
c5d5946
UrlEncode the continuationToken
alijaafar21 Apr 14, 2023
9499e94
Delete ChatService.sln.DotSettings.user
alijaafar21 Apr 14, 2023
4580935
Delete .idea/.idea.ChatService/.idea directory
alijaafar21 Apr 14, 2023
dac5730
Merge pull request #10 from nadimakk/AprilPRSubmission
nadimakk Apr 15, 2023
93ea548
add URL encode and decode controller tests
nadimakk Apr 15, 2023
443347d
add ServiceUnavailableException throws and catches
nadimakk Apr 15, 2023
d4874fd
add tests for ServiceUnavailableException
nadimakk Apr 15, 2023
d83af07
Merge pull request #12 from nadimakk/AprilPRSubmission
nadimakk Apr 15, 2023
87f4e50
start of fixing functional tests
nadimakk Apr 15, 2023
4732c0e
fixing functional tests
nadimakk Apr 15, 2023
df7fdef
Complete fix functional tests
alijaafar21 Apr 15, 2023
8db579d
Get some validations with their tests back
alijaafar21 Apr 16, 2023
9a0885d
Refactor Code
alijaafar21 Apr 16, 2023
261be63
Save the unix time in milliseconds instead of seconds
alijaafar21 Apr 18, 2023
446a1ec
Merge pull request #13 from nadimakk/AprilPRSubmission
alijaafar21 Apr 18, 2023
fc285fa
Accomodate functional test updates
alijaafar21 Apr 26, 2023
837a8bf
implement Exception Middleware
nadimakk Apr 26, 2023
48f6f05
Merge pull request #14 from nadimakk/AprilPRSubmission
nadimakk Apr 26, 2023
3ac556f
Merge pull request #15 from nadimakk/main
nadimakk Apr 26, 2023
d8513f9
Add tests for invalid query parameters and refactor profile service t…
alijaafar21 Apr 27, 2023
cbb70ee
begin fixing AprilPR comments
nadimakk May 1, 2023
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
50 changes: 50 additions & 0 deletions .github/workflows/azure_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build, Test, and Deploy to Azure

on:
workflow_dispatch:
push:
branches:
- main

env:
AZURE_WEBAPP_NAME: chat-service-ali-nadim
AZURE_WEBAPP_PACKAGE_PATH: './publish'

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Restore dependencies
run: dotnet restore ./ChatService.sln

- name: Build
run: dotnet build ./ChatService.sln --configuration Release --no-restore

- name: Run unit tests
run: dotnet test ChatService.Web.Tests/bin/Release/net6.0/ChatService.Web.Tests.dll

- name: Run integration tests
run: dotnet test ChatService.Web.IntegrationTests/bin/Release/net6.0/ChatService.Web.IntegrationTests.dll
env:
Cosmos:ConnectionString: ${{ secrets.COSMOS_CONNECTIONSTRING }}
BlobStorage:ConnectionString: ${{ secrets.BLOBSTORAGE_CONNECTIONSTRING }}

- name: Publish
run: dotnet publish --configuration Release --output '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}' --no-restore ChatService.Web

- name: Deploy
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CHATSERVICE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
35 changes: 35 additions & 0 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PR Build

on:
pull_request:
branches: [ "main" ]

jobs:
build-and-test:

runs-on: ubuntu-latest

steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Run unit tests
run: dotnet test ChatService.Web.Tests/bin/Release/net6.0/ChatService.Web.Tests.dll

- name: Run integration tests
run: dotnet test ChatService.Web.IntegrationTests/bin/Release/net6.0/ChatService.Web.IntegrationTests.dll
env:
Cosmos:ConnectionString: ${{ secrets.COSMOS_CONNECTIONSTRING }}
BlobStorage:ConnectionString: ${{ secrets.BLOBSTORAGE_CONNECTIONSTRING }}
Loading