Skip to content

Feature/userinfo - #273

Open
JasonRobertFrancis wants to merge 73 commits into
mainfrom
feature/userinfo
Open

JasonRobertFrancis wants to merge 73 commits into
mainfrom
feature/userinfo

Conversation

@JasonRobertFrancis

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-commenter

codecov-commenter commented Jul 28, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 1.07kB (0.05%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
viper-frontend-esm 2.2MB 1.07kB (0.05%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: viper-frontend-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/GenericError-*.css 606 bytes 211.21kB 0.29%
assets/RichTextEditor-*.js 451 bytes 33.91kB 1.35%
assets/SchoolSummary-*.js 14 bytes 3.97kB 0.35%

Files in assets/SchoolSummary-*.js:

  • ./src/Effort/pages/SchoolSummary.vue → Total Size: 230 bytes

@codecov-commenter

codecov-commenter commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 19.82422% with 3284 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.74%. Comparing base (e746ac9) to head (81472e4).
⚠️ Report is 6 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
web/Areas/Directory/Services/UserInfoService.cs 55.35% 518 Missing and 49 partials ⚠️
web/Areas/Directory/Views/UserInfo.cshtml 0.00% 433 Missing ⚠️
web/Models/PPS/JobDV.cs 0.00% 113 Missing ⚠️
web/Models/PPS/JpmJpItemDV.cs 0.00% 98 Missing ⚠️
web/Models/PPS/PositionDV.cs 0.00% 95 Missing ⚠️
web/Models/PPS/PsJpmJpItemsV.cs 0.00% 92 Missing ⚠️
web/Models/PPS/PayGroupDV.cs 0.00% 84 Missing ⚠️
web/Models/PPS/PsJobV.cs 0.00% 81 Missing ⚠️
web/Models/PPS/JobCodeDV.cs 0.00% 69 Missing ⚠️
.../Areas/Directory/Controllers/UserInfoController.cs 0.00% 57 Missing ⚠️
... and 153 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
- Coverage   45.36%   43.74%   -1.62%     
==========================================
  Files         948     1108     +160     
  Lines       49529    53560    +4031     
  Branches     6696     7043     +347     
==========================================
+ Hits        22467    23431     +964     
- Misses      26096    29086    +2990     
- Partials      966     1043      +77     
Flag Coverage Δ
backend 40.74% <19.82%> (-1.60%) ⬇️
frontend 64.68% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...eb/Areas/CMS/Controllers/CMSUserPhotoController.cs 100.00% <100.00%> (ø)
web/Areas/Directory/Models/InstinctResult.cs 100.00% <100.00%> (ø)
web/Areas/Directory/Models/UserInfoResult.cs 100.00% <100.00%> (ø)
web/Models/EquipmentLoan/Asset.cs 100.00% <100.00%> (ø)
web/Models/EquipmentLoan/Loan.cs 100.00% <100.00%> (ø)
web/Models/EquipmentLoan/LoanItem.cs 100.00% <100.00%> (ø)
web/Models/IDCards/DvtCardStatus.cs 100.00% <100.00%> (ø)
web/Models/IDCards/DvtReason.cs 100.00% <100.00%> (ø)
web/Models/IDCards/IdCard.cs 100.00% <100.00%> (ø)
web/Models/Keys/Key.cs 100.00% <100.00%> (ø)
... and 164 more

... and 7 files with indirect coverage changes

Comment thread test/Services/UserInfoServiceUnitTests.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Classes/Utilities/IamApi.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Views/UserInfo.cshtml Fixed

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Classes/Utilities/IamApi.cs Fixed
@rlorenzo

This comment was marked as resolved.

Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
Comment thread web/Areas/Directory/Services/UserInfoService.cs Fixed
@rlorenzo

This comment was marked as resolved.

Comment thread web/Areas/Directory/Services/UserInfoService.cs
Comment thread web/Areas/Directory/Services/UserInfoService.cs
@bsedwards

Copy link
Copy Markdown
Collaborator

@JasonRobertFrancis I was testing this on TEST: https://secure-test.vetmed.ucdavis.edu/2/UserInfo/02725606 and comparing against VIPER1: https://secure-test.vetmed.ucdavis.edu/default.cfm?page=userinfo&id=1000610632&mothraID=02725606

1. Why do 2 photos render?

2. The UC Path section is missing "Position: 000652 APPLICATIONS PROGR 4 — 072000 VM: DEANS OFFICE" that is on VIPER1. Also, this must be a data issue, but why is my hire date set to 2/28/2025?

3. For "System Permissions," VIPER has me with RAPS (52) and SVMSecure (356), but the VIPER2 version has me with RAPS (21), SVMSecure (291), and VIPERForms (1). Why the difference in numbers?

For the effective date, it looks like this is pulling the effective date of the last change to the position. It might make more sense to show the effdt on the job record (the effective date of the last change to the job) in the summary and history views.

Employees have an original hire date, but not a hire date to a specific job.

I would also suggest removing the reports to column from the uc path history. I removed this from the uc path view on the current directory because it can be ambiguous when looking at historical data (which is why it looks like Rex is reporting to Dan).

I checked Rex's permissions on test and the counts look good. The prod user info page is double counting some permissions.

Comment thread web/Classes/SQLContext/PPSContext.cs
Comment thread web/Areas/Directory/Services/UserInfoService.cs Outdated
Comment thread web/Areas/Directory/Services/UserInfoService.cs
Comment thread web/Views/Shared/_VIPERLayout.cshtml
Comment thread web/Areas/Directory/Services/UserInfoService.cs Outdated
Comment thread web/Areas/Directory/Controllers/DirectoryController.cs
@rlorenzo

rlorenzo commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

@JasonRobertFrancis, I've resolved all my open comment threads. Some minor issues:

  1. Do we want 2 profile images rendered? On https://secure-test.vetmed.ucdavis.edu/2/UserInfo/02725606 I see both "User Photo" and "Alternative Photo" but they are the same for me.
  2. I see this alert: "Some information may be unavailable. The following sections could not be loaded and may be showing incomplete data: Instinct." What is not loading?
  3. Do we want "launchBrowser" to be true here? https://github.com/ucdavis/VIPER/pull/273/changes#r3707682628

@rlorenzo rlorenzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonRobertFrancis c3de7d7 "Represses Instinct error if API is not available" is on Development only, not on feature/userinfo. It is the commit that actually suppresses the Instinct error on TEST (IsDevelopmentEnvironment to IsInstinctOptionalEnvironment, covering Test as well as Development). Since Development is never a base and never merges to main, that change disappears when this PR merges. Please cherry-pick it onto feature/userinfo and re-merge into Development.

Comment thread web/Areas/CMS/Controllers/CMSUserPhotoController.cs
Comment thread web/Areas/Directory/Views/Table.cshtml Outdated
Comment thread web/Areas/Directory/Views/Card.cshtml Outdated
Comment thread web/Properties/launchSettings.json Outdated
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
"launchBrowser": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still flipped false to true versus main, on the https profile. npm run dev opens the browser already, so this gives you two tabs. Unrelated to the feature.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonRobertFrancis, I've resolved all my other code review comments except this one.

Brandon and the Copilot/GitHub review bots still have some open code review comments.

Comment thread web/Areas/Directory/Views/UserInfo.cshtml Outdated
Comment thread test/CMS/CMSUserPhotoControllerTests.cs Dismissed
Resolves ReSharper S8969 warnings flagged by the PR-scoped gate: the compiler already narrows InstinctInfo.ErrorMessage to non-null after the preceding Assert.NotNull check, so the ! was redundant.
Comment thread test/Services/UserInfoServiceUnitTests.cs Fixed
Comment thread test/Services/UserInfoServiceUnitTests.cs Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants