Skip to content

Address review comments on #138 - #142

Merged
rmartinsen-ucd merged 1 commit into
rpm/job-sfn-and-job-code-classificationfrom
rpm/job-sfn-review-fixes
Nov 19, 2026
Merged

rmartinsen-ucd merged 1 commit into
rpm/job-sfn-and-job-code-classificationfrom
rpm/job-sfn-review-fixes

Conversation

@rmartinsen-ucd

Copy link
Copy Markdown
Contributor

Summary

Fixes for the six review comments on #138. This targets the #138 branch so the fixes can be read on their own.

  • FTE lost when account splits a row (P1). The build now drops a summary row only when it has neither dollars nor FTE. FTE stays even when its dollars net to zero. The job code gate uses the same rule, so a job code blocks when a row reports FTE or has 13U02 dollars.
  • Job codes stale after a segment save (P2). Every segment save, ERN included, reloads job codes and stays pending until they arrive, so Continue stays disabled meanwhile. A read still running is cancelled first.
  • Report read reused after a rebuild (P3). Running report reads are cancelled before the reload. A query with no data yet does not restart on invalidation alone.
  • Continue during a rebuild (P3). Continue is disabled until the rebuild and report reload finish, and Rebuild is disabled while completion is pending. The rebuild state is read by mutation key so it survives leaving and reopening the stage.
  • Out of order saves on one dropdown (P3). A job code dropdown is locked while its save runs. Other rows stay usable.
  • Filter cache (performance). Assigning a job code no longer clears the Expense Review filter cache or reloads Expense Review on the client. A job SFN is not part of the inclusion rule.

Also here: job code and auto-association reads forward the abort signal, so a cancelled read stops on the server.

Notes for review

  • The FTE rule goes further than the comment asked. It keeps FTE on any row with no net dollars, not only where another account in the same group has dollars. ExpenseSummary can now hold rows with 0 dollars and FTE, and they show in the report tables.
  • This changes one expectation from Add job SFN and account to reports, and move job code classification to Data Classification #138: job code 4453 in the integration test (FTE on a row whose dollars net to zero) is now kept by the build and blocks until assigned.
  • The dropdown lock lasts through the job code reload, not only the save, and a disabled select loses keyboard focus.
  • The keep rule is written in both BuildAutoAssociations.sql and JobCodeClassificationService.cs. One integration test checks they agree.

Test plan

  • Server tests, including the SQL integration tests (633 pass)
  • Client tests (260 pass), lint and type check
  • No test covers leaving and reopening Auto-Associations during a rebuild
  • Rebuild on ad419-test and check FTE totals against the previous build

🤖 Generated with Claude Code

Keep FTE on expense summary rows whose dollars net to zero. The build
drops a row only when it has neither dollars nor FTE, and the job code
gate follows the same rule.

Reload job codes after every segment save, cancelling a read that is
still running so it cannot stand in for the reload.

Cancel running report reads before reloading after a rebuild.

Disable Continue during a rebuild and Rebuild during completion. The
rebuild state is read by mutation key so it survives leaving the stage.

Lock a job code dropdown while its save is running.

Stop clearing the Expense Review filter cache when a job code is
assigned. A job SFN is not part of the inclusion rule.

Forward the abort signal on job code and auto-association reads.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 605b9b0c-40e1-4424-82bf-b04353a9edaa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@rmartinsen-ucd
rmartinsen-ucd merged commit c618f8e into rpm/job-sfn-and-job-code-classification Nov 19, 2026
5 checks passed
@rmartinsen-ucd
rmartinsen-ucd deleted the rpm/job-sfn-review-fixes branch November 19, 2026 15:00
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.

1 participant