-
Notifications
You must be signed in to change notification settings - Fork 1
Updates from master #515
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
Merged
Merged
Updates from master #515
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
79b2554
feat: nutrient updates
JTraill bb68c27
Use JASPER's favicon (#480)
ronaldo-macapobre f16b700
refactor: make the groupings more generic
JTraill 53e093a
tests: fix nutrient tests
JTraill 421af97
JASPER-548: Case Details: Civil: Document Filtering by Category (#482)
ronaldo-macapobre 5656bf8
refactor: remove commented code
JTraill 1f450b3
refactor: var to const
JTraill 4f5cdda
fix: wrong doc reference
JTraill 0e7c3ba
Merge pull request #483 from bcgov/nutrient-updates
JTraill ab18022
JASPER-581: Configure JASPER to use AWS MongoDb (#484)
ronaldo-macapobre c8468f2
Merge pull request #457 from bcgov/jasper-121
devinleighsmith 0ba89a8
correct request access screen's logo display.
devinleighsmith ed8db17
Bump GdPicture.API from 14.3.13 to 14.3.14
dependabot[bot] 1d2375b
build(deps): bump uuid from 11.1.0 to 12.0.0 in /web
dependabot[bot] 9ff3a65
JASPER-548: Additional updates to Document Categories (#492)
ronaldo-macapobre d31026a
Merge pull request #486 from bcgov/dependabot/nuget/api/GdPicture.API…
JTraill 5aa72b6
build(deps): bump aws-actions/configure-aws-credentials (#485)
dependabot[bot] e3ee9b3
Merge pull request #489 from bcgov/dependabot/npm_and_yarn/web/uuid-1…
JTraill 062ef40
build(deps-dev): bump vite from 7.0.4 to 7.1.5 in /web
dependabot[bot] 88d0750
feat: add viewability to court-list documents
JTraill 362ceca
Merge pull request #493 from bcgov/viewable-coourt-list-docs
JTraill 6129199
Merge pull request #487 from bcgov/dependabot/npm_and_yarn/web/vite-7…
JTraill 21276ff
feat: rename document tab title on load
JTraill 0662912
refactor: function naming
JTraill 4391004
Merge pull request #496 from bcgov/rename-file-tab
JTraill e9573cf
build(deps): bump vite from 6.3.4 to 6.3.6 in /aws (#494)
dependabot[bot] 8a28a27
feat: port over bulde viewing changes
JTraill e9ab344
fix: wrongly mapped field
JTraill fb80d70
refactor: remove no longer used file
JTraill c4d0f5c
fix: rename fileid=>physicalfileid
JTraill 06a77eb
test: rename fileid
JTraill a719d38
test: rename fileid to physicalfileid
JTraill 5ce1977
fix: sonar issues
JTraill 1723cfc
JASPER-583/578: Court List Document Bundle (#495)
ronaldo-macapobre c250063
Merge branch 'master' of https://github.com/bcgov/jasper into fe-bund…
JTraill 135c780
refactor: types into own files and rename them
JTraill a2c393f
refactor: remove courtlist service from table
JTraill 3a37ef5
refactor: remove inject from courtlisttable
JTraill b218fe1
Merge pull request #509 from bcgov/fe-bundle-view
JTraill 3d89fb0
build(deps): bump axios from 1.8.2 to 1.12.0 in /aws (#497)
dependabot[bot] aad19b2
build(deps): bump axios from 1.11.0 to 1.12.0 in /web (#498)
dependabot[bot] 0ca3b95
Bump Microsoft.AspNetCore.Authentication.OpenIdConnect from 9.0.8 to …
dependabot[bot] 6bec8b2
update working directory for api gha (#511)
ronaldo-macapobre 4d5eddd
- Default All Documents dropdown to Scheduled if available. Otherwise…
ronaldo-macapobre dcb1e7b
refactor: force new tab each time file is viewed
JTraill b19f628
- Add setting to delete pods after 3 days (#512)
ronaldo-macapobre eec6979
Bump Microsoft.AspNetCore.Authentication.JwtBearer from 9.0.8 to 9.0.…
dependabot[bot] 049928c
Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 9.0.8 to 9.0.9 (#505)
dependabot[bot] 897d58f
Merge branch 'master' of https://github.com/bcgov/jasper into file-vi…
JTraill 7e53906
Merge pull request #513 from bcgov/file-view-new-tab
JTraill 12c68b2
Update working directory to use . (#514)
ronaldo-macapobre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Threading.Tasks; | ||
| using JCCommon.Clients.FileServices; | ||
| using MapsterMapper; | ||
| using Scv.Api.Models.Criminal.Detail; | ||
| using Scv.Api.Services; | ||
|
|
||
| namespace Scv.Api.Documents; | ||
|
|
||
| public class DocumentConverter(IMapper mapper, LookupService lookupService) : IDocumentConverter | ||
| { | ||
| private readonly IMapper _mapper = mapper; | ||
| private readonly LookupService _lookupService = lookupService; | ||
|
|
||
| public async Task<ICollection<CriminalDocument>> GetCriminalDocuments(CfcAccusedFile ac) | ||
| { | ||
| var criminalDocuments = _mapper.Map<List<CriminalDocument>>(ac.Document); | ||
|
|
||
| //Create ROPs. | ||
| if (ac.Appearance != null && ac.Appearance.Count != 0) | ||
| { | ||
| criminalDocuments.Insert(0, new CriminalDocument | ||
| { | ||
| DocumentTypeDescription = "Record of Proceedings", | ||
| DocmFormDsc = "Record of Proceedings", | ||
| ImageId = ac.PartId, | ||
| Category = "rop", | ||
| PartId = ac.PartId, | ||
| HasFutureAppearance = ac.Appearance?.Any(a => | ||
| a?.AppearanceDate != null && DateTime.Parse(a.AppearanceDate) >= DateTime.Today) | ||
| }); | ||
| } | ||
|
|
||
| //Populate extra fields. | ||
| foreach (var document in criminalDocuments) | ||
| { | ||
| document.Category = string.IsNullOrEmpty(document.Category) | ||
| ? await _lookupService.GetDocumentCategory(document.DocmFormId, document.DocmClassification) | ||
| : document.Category; | ||
| document.DocumentTypeDescription = document.DocmFormDsc; | ||
| document.PartId = string.IsNullOrEmpty(ac.PartId) ? null : ac.PartId; | ||
| document.DocmId = string.IsNullOrEmpty(document.DocmId) ? null : document.DocmId; | ||
| document.ImageId = string.IsNullOrEmpty(document.ImageId) ? null : document.ImageId; | ||
| document.HasFutureAppearance = ac.Appearance?.Any(a => | ||
| a?.AppearanceDate != null && DateTime.Parse(a.AppearanceDate) >= DateTime.Today); | ||
| } | ||
| return criminalDocuments; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| using System.Collections.Generic; | ||
| using System.Threading.Tasks; | ||
| using JCCommon.Clients.FileServices; | ||
| using Scv.Api.Models.Criminal.Detail; | ||
|
|
||
| namespace Scv.Api.Documents; | ||
|
|
||
| public interface IDocumentConverter | ||
| { | ||
| Task<ICollection<CriminalDocument>> GetCriminalDocuments(CfcAccusedFile ac); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / SonarCloud
Use model binding instead of reading raw request data