Repository navigation
Fix ten issues from a full code review - #4
Merged
Merged
Conversation
Reports and awards - Current & Pending names the grant's PD/PI (contact PI, else the PI/MPI on the team, else the Lab PI when "My role" is PI or MPI). It no longer lists whichever person the report is for, which put postdocs down as PD/PI. - The award form offers the reporting schedule to any active award that has none yet, so an ongoing grant entered as Awarded gets its RPPR and close-out reminders. Closed awards still aren't offered it. - A new award's notice date is its decision date when one is recorded, so an award entered late through the status dialog lands in the right year. - Funding awarded and Total awarded count only applications marked Awarded, matching the success rate, even if an award record lingers elsewhere. Crashes and validation - The dashboard no longer fails on Feb 29 (5-year window via relativedelta). - Tasks on Withdrawn or Not pursued applications stay editable; those applications are still not offered for new tasks. - CSV import reports, row by row, extra values beyond the header, numbers too large for their column, non-finite numbers, and probabilities outside 0-100, instead of failing the whole import with a server error. - Tags and critique themes longer than 60 characters are matched by their stored name, so reusing one no longer hits the unique constraint. - Claiming the Lab PI role only redirects to a same-site "next" URL. Each fix has tests that fail without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAPwFhRyU83ey74tK1cYbJ
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.
Fixes all ten findings from a full review of
main. Three of them came from #3: the reporting schedule, the notice date and the funding totals. No migrations, and no changes to stored records.Reports and awards
Crashes and validation
relativedelta.nextURL, viasafe_next.Testing
test_analytics,test_import(new),test_peopleandtest_views. 15 of them fail on the previous code, covering all ten findings; the other 4 guard behavior that must not change.check --deployandmakemigrations --checkare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01SAPwFhRyU83ey74tK1cYbJ
Generated by Claude Code