-
Notifications
You must be signed in to change notification settings - Fork 1
Jasper-564(DARS) #610
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
base: master
Are you sure you want to change the base?
Jasper-564(DARS) #610
Conversation
Bumps [eslint](https://github.com/eslint/eslint) from 9.37.0 to 9.38.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.37.0...v9.38.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.38.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
|
| } | ||
|
|
||
| public static IServiceCollection AddHttpClientsAndScvServices(this IServiceCollection services, IConfiguration configuration) | ||
| public static IServiceCollection AddHttpClientsAndScvServices(this IServiceCollection services, IConfiguration configuration, IWebHostEnvironment env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the new env param really needed? i don't seem to see it being used.
| [ProducesResponseType(400)] | ||
| [ProducesResponseType(404)] | ||
| [ProducesResponseType(500)] | ||
| public async Task<IActionResult> Search(DateTime date, int locationId, string courtRoomCd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need validation for date and courtRoomCd?
|
|
||
| namespace Scv.Api.Services | ||
| { | ||
| public class DarsService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May want to consider adding an interface so unit testing is easier particularly on new classes.
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove the warnings when this code is added.
| #pragma warning disable 8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. |
|
|
||
| public string LocationNm { get; set; } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| #pragma warning restore 8618 | |
| } |
| using System.Text; | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace DARSCommon.Models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: There is a an internal agreement that file-scope namespace is preferred.



Pull Request for JIRA Ticket: ----put ticket number here----
Issue ticket number and link
Include the JIRA ticket # and link here
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
-Test Dars search, as well as headphone link in appearances, court calendar and my calendar (expanded).
-Validate that outgoing DARS url to logsheets matches PCSS.
Checklist:
Documentation References
Put any doc references here