Skip to content

update DataOperationFailure query to reflect table changes - #944

Merged
clackner-gpa merged 4 commits into
masterfrom
sentTimelineFix
Sep 4, 2026
Merged

update DataOperationFailure query to reflect table changes#944
clackner-gpa merged 4 commits into
masterfrom
sentTimelineFix

Conversation

@nbeatty-gpa

Copy link
Copy Markdown
Contributor

Fix SentTimeline errors by updating DataOperationFailure

@elwills

elwills commented Sep 3, 2026

Copy link
Copy Markdown
Member

I don't think this is going to work correctly. Are we bringing in the FileGroupAnalysisJobID? Isn't this just going to cross those up?

Copilot AI 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.

🟡 Changes recommended

The new FileGroupAnalysisJob lookup is used without null-safety, which can cause NullReferenceException and break the timeline endpoint when no analysis job exists yet.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR aims to fix SentEmail timeline errors by updating the backend timeline-building logic to align with updated database relationships (moving DataOperationFailure linkage from FileGroupID to FileGroupAnalysisJobID). It also includes a small navigation URL fix in the notification UI.

Changes:

  • Update SentEmail timeline processing window to read ProcessingStartTime/EndTime from the latest FileGroupAnalysisJob.
  • Update DataOperationFailure lookup to query by FileGroupAnalysisJobID instead of FileGroupID.
  • Fix category delete redirect URL composition in the Email Category page.
File summaries
File Description
Source/Applications/SystemCenterNotification/Scripts/TSX/EmailCategory/EmailCategoryPage.tsx Adjusts post-delete navigation URL composition for Categories.
Source/Applications/SystemCenterNotification/Controllers/EmailTypeController.cs Updates SentEmail timeline queries to use FileGroupAnalysisJob and the new DataOperationFailure foreign key.
Review details

Suppressed comments (1)

Source/Applications/SystemCenterNotification/Controllers/EmailTypeController.cs:525

  • This query assumes fileGroupAnalysisJobRecord is non-null; if there is no analysis job yet, fileGroupAnalysisJobRecord.ID will throw. Consider returning an empty failure set when the analysis job record is missing.
                DataOperationFailure[] dataOperationFailureRecords = new TableOperations<DataOperationFailure>(connection).QueryRecordsWhere("FileGroupAnalysisJobID = {0}", fileGroupAnalysisJobRecord.ID).ToArray();
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@clackner-gpa
clackner-gpa merged commit 88b01e4 into master Sep 4, 2026
4 checks passed
@clackner-gpa
clackner-gpa deleted the sentTimelineFix branch September 4, 2026 15:16
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.

4 participants