Skip to content

Commit

Permalink
Merge pull request #2023 from bcgov/docs
Browse files Browse the repository at this point in the history
Form Recognizer Docs
  • Loading branch information
pbolduc authored Dec 10, 2024
2 parents 51e4762 + 365260b commit d8496f6
Show file tree
Hide file tree
Showing 11 changed files with 207 additions and 64 deletions.
76 changes: 76 additions & 0 deletions docs/form-recognizer.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/25.0.2 Chrome/128.0.6613.186 Electron/32.2.5 Safari/537.36" version="25.0.2">
<diagram name="Page-1" id="FckbbgUA_ycBtha7Nfw7">
<mxGraphModel dx="810" dy="537" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="f_B0i8LunEfuUYC8yh6b-1" value="logs" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="350" y="420" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-2" value="shared" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="350" y="340" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-3" value="layout" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="170" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-4" value="custom template" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="520" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-5" value="proxy" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="350" y="130" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-5" target="f_B0i8LunEfuUYC8yh6b-3">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="300" y="160" as="sourcePoint" />
<mxPoint x="240" y="200" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-7" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-5" target="f_B0i8LunEfuUYC8yh6b-4">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="380" y="575" as="sourcePoint" />
<mxPoint x="520" y="620" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-8" value="pod" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="243" y="235" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-9" value="pod" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="424" y="125" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-10" value="pod" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="596" y="234" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-11" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-3" target="f_B0i8LunEfuUYC8yh6b-2">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="400" y="510" as="sourcePoint" />
<mxPoint x="450" y="460" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-3" target="f_B0i8LunEfuUYC8yh6b-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="400" y="510" as="sourcePoint" />
<mxPoint x="450" y="460" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-13" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-4" target="f_B0i8LunEfuUYC8yh6b-2">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="570" y="575" as="sourcePoint" />
<mxPoint x="320" y="620" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-14" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="f_B0i8LunEfuUYC8yh6b-4" target="f_B0i8LunEfuUYC8yh6b-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="640" y="385" as="sourcePoint" />
<mxPoint x="500" y="515" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-15" value="pvc" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="424" y="340" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="f_B0i8LunEfuUYC8yh6b-16" value="pvc" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="410" y="420" width="60" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
18 changes: 9 additions & 9 deletions gitops/charts/traffic-court-dev-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ global:

arc-dispute-api:
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"Swagger__Enabled": "true"

citizen-api:
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"FormRecognizer__ApiVersion": "2022-08-31"
Expand All @@ -30,7 +30,7 @@ citizen-api:

citizen-web:
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
route:
# https://dev.justice.gov.bc.ca
Expand All @@ -39,7 +39,7 @@ citizen-web:
{
"production": false,
"environment": "Dev",
"version": "2.5.1",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"understandYourTicketLink": "https://understandmyticket.gov.bc.ca/",
Expand Down Expand Up @@ -193,7 +193,7 @@ citizen-web:
oracle-data-api:
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"JAVA_OPTS": "-Dlogging.level.ca.bc.gov.open.jag.tco.oracledataapi=DEBUG"
Expand All @@ -208,7 +208,7 @@ oracle-data-api:

staff-api:
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"Jwt__Audience": "staff-api"
Expand All @@ -222,7 +222,7 @@ staff-api:
"TicketSearch__SearchType": "RoadSafety"
staff-web:
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
route:
# https://dev.jag.gov.bc.ca
Expand All @@ -241,7 +241,7 @@ staff-web:
{
"production": false,
"environment": "Dev",
"version": "2.5.2",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"features": {
Expand All @@ -251,7 +251,7 @@ staff-web:
workflow-service:
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"EmailConfiguration__Sender": "[email protected]"
Expand Down
18 changes: 9 additions & 9 deletions gitops/charts/traffic-court-prod-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ arc-dispute-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"Swagger__Enabled": "false"
Expand All @@ -20,7 +20,7 @@ citizen-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"FormRecognizer__ApiVersion": "2022-08-31"
Expand All @@ -39,13 +39,13 @@ citizen-web:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
appConfig: |
{
"production": true,
"environment": "prod",
"version": "2.5.1",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"understandYourTicketLink": "https://understandmyticket.gov.bc.ca/",
Expand Down Expand Up @@ -221,7 +221,7 @@ oracle-data-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"JAVA_OPTS": ""
Expand All @@ -238,7 +238,7 @@ staff-api:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"Jwt__Audience": "staff-api"
Expand All @@ -263,7 +263,7 @@ staff-web:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
route:
# https://test.jag.gov.bc.ca
Expand All @@ -282,7 +282,7 @@ staff-web:
{
"production": true,
"environment": "prod",
"version": "2.5.2",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"features": {
Expand Down Expand Up @@ -407,7 +407,7 @@ workflow-service:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"EmailConfiguration__Sender": "[email protected]"
Expand Down
18 changes: 9 additions & 9 deletions gitops/charts/traffic-court-test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ arc-dispute-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"Swagger__Enabled": "true"
Expand All @@ -20,7 +20,7 @@ citizen-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"FormRecognizer__ApiVersion": "2022-08-31"
Expand All @@ -39,7 +39,7 @@ citizen-web:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
route:
# https://test.justice.gov.bc.ca
Expand All @@ -48,7 +48,7 @@ citizen-web:
{
"production": false,
"environment": "Test",
"version": "2.5.1",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"understandYourTicketLink": "https://bcmoag--staging.sandbox.my.salesforce-sites.com/?tn=BCTC",
Expand Down Expand Up @@ -205,7 +205,7 @@ oracle-data-api:
pdb:
create: true
image:
tag: "2.5.1"
tag: "2.6.0"
pullPolicy: Always
env:
"JAVA_OPTS": ""
Expand All @@ -222,7 +222,7 @@ staff-api:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"Jwt__Audience": "staff-api"
Expand All @@ -240,7 +240,7 @@ staff-web:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
route:
# https://test.jag.gov.bc.ca
Expand All @@ -259,7 +259,7 @@ staff-web:
{
"production": false,
"environment": "Test",
"version": "2.5.2",
"version": "2.6.0",
"useMockServices": false,
"apiBaseUrl": "/api",
"features": {
Expand Down Expand Up @@ -322,7 +322,7 @@ workflow-service:
pdb:
create: true
image:
tag: "2.5.2"
tag: "2.6.0"
pullPolicy: Always
env:
"EmailConfiguration__Sender": "[email protected]"
Expand Down
10 changes: 6 additions & 4 deletions src/backend/TrafficCourts/Staff.Service/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
using FastEndpoints;
using MassTransit;
using Microsoft.OpenApi.Models;
using OpenTelemetry.Metrics;
using OpenTelemetry.Trace;
using System.Reflection;
using System.Text.Json.Serialization;
using TrafficCourts.Caching;
using TrafficCourts.Common;
using TrafficCourts.Common.Authentication;
using TrafficCourts.Common.Configuration;
using TrafficCourts.Messaging;
using TrafficCourts.OrdsDataService;
using TrafficCourts.Staff.Service.Authentication;
using TrafficCourts.Staff.Service.Services;
using TrafficCourts.Caching;
using ZiggyCreatures.Caching.Fusion;
using FastEndpoints;

namespace TrafficCourts.Staff.Service;

Expand Down Expand Up @@ -40,6 +41,7 @@ public static void ConfigureApplication(this WebApplicationBuilder builder, Seri
})
.AddMassTransitInstrumentation()
.AddOracleDataApiInstrumentation()
.AddOrdsDataServiceInstrumentation()
.AddRedisInstrumentation();
},
options =>
Expand All @@ -48,12 +50,12 @@ public static void ConfigureApplication(this WebApplicationBuilder builder, Seri
.AddComsClientInstrumentation()
.AddFusionCacheInstrumentation()
.AddMassTransitInstrumentation()
.AddOracleDataApiInstrumentation();
.AddOracleDataApiInstrumentation()
.AddOrdsDataServiceInstrumentation();
});

builder.Services.AddFastEndpoints();


builder.Services.AddOrdsDataService(builder.Configuration);

var redisConnectionString = builder.AddRedis();
Expand Down
Loading

0 comments on commit d8496f6

Please sign in to comment.