Repository navigation
[bot] Merge 26.11 to develop - #1051
Merged
Merged
Conversation
New React page (src/client/BiocontainmentObservationReview/) - Added a review page, registered in entryPoints.js and linked from a new Biocontainment section on the EHR landing page (begin.html). - Observations Awaiting Review grid: shows Review Required rows, uses single selection, and pages at 100 rows. The new hidden Review.qview.xml view sorts it by location, date and animal. - Detail panel for the selected observation: - shows all 13 scored parameters next to the animal's prior observation at the same location, with a link to its history; - shows the clinical score and the prior score. - Edit Values mode: - lets the reviewer correct scored values and carry-overs; - requires a reason for each changed parameter; - lets the reviewer edit the comment (80-character limit, no reason needed). - Approve observation button: approves one record at a time and shows server rejections (for example, author approving their own record) on the page. - Footer link to observations approved in the last 7 days. - Supporting files: api/observation.ts (fetch, approve, correct, prior lookup), constants/fields.ts (scored fields and their allowed values from TXB 904-1), services/clinicalScore.ts, services/formatDate.ts, page styles. Trigger script (queries/study/BiocontainmentObservations.js, new) - New records start as Review Required, however they arrive. - Changing a scored value, a carry-over or the comment sends an approved record back to Review Required. - Manual corrections require a reason for each changed parameter. - An ETL re-merge with identical values keeps the existing approval. - Approving checks that the approver isn't the record's author. It then records: - reviewedBy; - reviewedByName, the printed name; - reviewedDate; - reviewMeaning. Java - SNPRC_EHRTriggerHelper.getPrintedName() returns the user's first and last name, or their display name if either is missing. It runs server-side, so approvers don't need permission to see user details. Dataset and query metadata - datasets_metadata.xml adds reviewedBy, reviewedByName, reviewedDate and reviewMeaning to the dataset. - BiocontainmentObservations.query.xml formats date, created and reviewedDate as MM/dd/yyyy HH:mm. ETL - etls/BiocontainmentObservations.xml adds a QCStateLabel constant. Without it, rows from CAMP default to Completed, and the trigger can't set Review Required. Styles - Moved the shared grid-panel styles out of sndLookupsManagement.scss into Shared/styles/components/_labkeyGridPanel.scss, so SND Lookups and the review page both use them. The rules themselves are unchanged. Tests (tests/) - 57 React Testing Library tests: the page, the detail panel, the API calls, the clinical score, the field definitions and date formatting. --------- Co-authored-by: Marty Pradere <martyp@labkey.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: RameshRaparthi <135648797+RameshRapa@users.noreply.github.com> Co-authored-by: RameshRaparthi <rraparthi@txbiomed.org>
cnathe
approved these changes
Nov 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Generated automatically.
Merging changes from: 460354a
Approve all matching PRs simultaneously.
Approval will trigger automatic merge.
Verify all PRs before approving: https://internal.labkey.com/Scrumtime/Backlog/harvest-gitOpenPullRequests.view?branch=fb_bot_merge_26.11