33 Commits
Author SHA1 Message Date
Stevan Freeborn 75e36c43fc Update production_criminalmindsapi.yml 2024-10-29 11:05:28 -05:00
Stevan Freeborn 25dbcc6b76 Merge pull request #46 from StevanFreeborn/dependabot/npm_and_yarn/client/multi-9f37c16f8f
Bump cookie and express in /client
2024-10-29 10:45:59 -05:00
dependabot[bot] 966a4da981 Bump cookie and express in /client
Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1)

Updates `express` from 4.21.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.0...4.21.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 15:43:26 +00:00
Stevan Freeborn b27884ccab Merge pull request #45 from StevanFreeborn/dependabot/npm_and_yarn/client/http-proxy-middleware-2.0.7
Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /client
2024-10-29 10:41:24 -05:00
dependabot[bot] 9c152b6c8e Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /client
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 15:15:34 +00:00
Stevan Freeborn 197f37d03a chore: update workflow 2024-10-01 21:07:51 -05:00
Stevan Freeborn 2100770780 chore: update workflow 2024-10-01 21:02:30 -05:00
Stevan Freeborn 5d624b25d3 chore: update workflow 2024-10-01 20:58:44 -05:00
Stevan Freeborn 7c80a7413c chore: update workflow 2024-10-01 20:55:38 -05:00
Stevan Freeborn a228799092 chore: update workflow 2024-10-01 20:54:20 -05:00
Stevan Freeborn 3c58de0c49 chore: update workflow 2024-10-01 20:53:08 -05:00
Stevan Freeborn 1d3c6bc7a6 Merge pull request #43 from StevanFreeborn/stevanfreeborn/chore/upgrade-to-dotnet-8
chore: update to dotnet 8
2024-10-01 20:51:06 -05:00
Stevan Freeborn 57d836797d chore: update to dotnet 8 2024-10-01 20:50:03 -05:00
Stevan Freeborn b9c84dc189 Merge pull request #42 from StevanFreeborn/dependabot/npm_and_yarn/client/rollup-2.79.2
Bump rollup from 2.75.6 to 2.79.2 in /client
2024-09-30 12:59:24 -05:00
dependabot[bot] 70808a0919 Bump rollup from 2.75.6 to 2.79.2 in /client
Bumps [rollup](https://github.com/rollup/rollup) from 2.75.6 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.75.6...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:57:00 +00:00
Stevan Freeborn 5ceac2150b Merge pull request #40 from StevanFreeborn/dependabot/npm_and_yarn/client/multi-9423f4c335
Bump body-parser and express in /client
2024-09-26 12:01:56 -05:00
dependabot[bot] 5ad4c7e238 Bump body-parser and express in /client
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 16:28:43 +00:00
Stevan Freeborn 3f8b8a110b Merge pull request #39 from StevanFreeborn/dependabot/github_actions/dot-github/workflows/actions/download-artifact-4.1.7
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
2024-09-04 08:53:18 -05:00
dependabot[bot] 75dd533871 Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-04 13:52:10 +00:00
Stevan Freeborn b1e24d3607 Merge pull request #38 from StevanFreeborn/dependabot/npm_and_yarn/client/express-4.19.2
Bump express from 4.18.1 to 4.19.2 in /client
2024-06-21 12:41:53 -05:00
Stevan Freeborn baae1a1d14 Merge pull request #37 from StevanFreeborn/dependabot/npm_and_yarn/client/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /client
2024-06-21 12:41:46 -05:00
dependabot[bot] c017347fab Bump express from 4.18.1 to 4.19.2 in /client
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:41:34 +00:00
dependabot[bot] 97611366e7 Bump braces from 3.0.2 to 3.0.3 in /client
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:41:23 +00:00
Stevan Freeborn fe5d6a1e6b Merge pull request #36 from StevanFreeborn/dependabot/npm_and_yarn/client/ejs-3.1.10
Bump ejs from 3.1.8 to 3.1.10 in /client
2024-06-21 12:41:12 -05:00
Stevan Freeborn c1ed670bb9 Merge pull request #35 from StevanFreeborn/dependabot/npm_and_yarn/client/follow-redirects-1.15.6
Bump follow-redirects from 1.15.1 to 1.15.6 in /client
2024-06-21 12:41:05 -05:00
dependabot[bot] 2ac80beb99 Bump ejs from 3.1.8 to 3.1.10 in /client
Bumps [ejs](https://github.com/mde/ejs) from 3.1.8 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.8...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:40:59 +00:00
Stevan Freeborn cbe3c2dddf Merge pull request #34 from StevanFreeborn/dependabot/npm_and_yarn/client/word-wrap-1.2.5
Bump word-wrap from 1.2.3 to 1.2.5 in /client
2024-06-21 12:40:58 -05:00
Stevan Freeborn 89dc8e68da Merge pull request #33 from StevanFreeborn/dependabot/npm_and_yarn/client/semver-6.3.1
Bump semver from 6.3.0 to 6.3.1 in /client
2024-06-21 12:40:51 -05:00
Stevan Freeborn b1eb5c1434 Merge pull request #32 from StevanFreeborn/dependabot/npm_and_yarn/client/tough-cookie-4.1.4
Bump tough-cookie from 4.0.0 to 4.1.4 in /client
2024-06-21 12:40:44 -05:00
dependabot[bot] bad3baa5f3 Bump follow-redirects from 1.15.1 to 1.15.6 in /client
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:40:09 +00:00
dependabot[bot] 90ed9f4405 Bump word-wrap from 1.2.3 to 1.2.5 in /client
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:51 +00:00
dependabot[bot] db3a5a6ccd Bump semver from 6.3.0 to 6.3.1 in /client
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:39 +00:00
dependabot[bot] bb92aa4f47 Bump tough-cookie from 4.0.0 to 4.1.4 in /client
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.4.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.4)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:30 +00:00
7 changed files with 5945 additions and 3586 deletions
@@ -8,10 +8,10 @@ on:
types: [closed]
branches:
- production
workflow_dispatch:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
@@ -43,3 +43,4 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ZEALOUS_CLIFF_09A0A7B10 }}
action: "close"
app_location: "/client"
@@ -12,32 +12,31 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
include-prerelease: true
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/server
run: dotnet publish -c Release -o release
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: server
path: ${{env.DOTNET_ROOT}}/server
path: ./server/release
deploy:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: server
- name: Login to Azure
@@ -51,6 +50,6 @@ jobs:
uses: azure/webapps-deploy@v2
with:
app-name: 'criminalmindsapi'
slot-name: 'Production'
slot-name: 'production'
package: .
+5912 -3554
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -12,7 +12,9 @@
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.1.3",
"http-proxy-middleware": "^2.0.6",
"http-proxy-middleware": "^2.0.7",
"loader-utils": ">=2.0.3",
"minimatch": ">=3.0.5",
"nth-check": ">=2.0.1",
"react": "^18.2.0",
"react-bootstrap": "^2.4.0",
@@ -21,11 +23,9 @@
"react-loading-icons": "^1.1.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"react-scripts": "^5.0.1",
"terser": ">=5.14.2",
"minimatch": ">=3.0.5",
"loader-utils": ">=2.0.3"
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "set HTTPS=true&&react-scripts start",
@@ -56,8 +56,8 @@
"devDependencies": {
"eslint-config-react-app": "^7.0.1",
"jest-editor-support": "^30.1.0",
"terser": ">=5.14.2",
"loader-utils": ">=2.0.3",
"minimatch": ">=3.0.5",
"loader-utils": ">=2.0.3"
"terser": ">=5.14.2"
}
}
+8 -7
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
@@ -9,15 +9,16 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.8" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
@@ -92,6 +92,7 @@ namespace server.tests.v1.UnitTests
character.Should().BeOfType<Quote>();
}
[Fact]
public async Task GetQuoteByIdAsync_ValidIdForNonExistentQuote_Returns404StatusCodeWithProblemDetails()
{
var quoteId = "62b7d5506c1b407771829926";
+6 -7
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
@@ -12,12 +12,11 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="Moq" Version="4.18.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
<PackageReference Include="MongoDB.Driver" Version="2.29.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
</ItemGroup>
<ItemGroup>