Skip to content

Conversation

@AndreGAot
Copy link
Contributor

@AndreGAot AndreGAot commented Dec 11, 2025

Key changes:

Converted SubmissionsDynamicViewGeneratorHandler from an ILocalEventHandler to an AsyncBackgroundJob
Renamed SubmissionsDynamicViewGenerationEto to SubmissionsDynamicViewGenerationArgs to reflect the change from event-driven to background job pattern
Updated ReportingFieldsGeneratorService to use IBackgroundJobManager.EnqueueAsync() instead of ILocalEventBus.PublishAsync()

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors the form view generation process from a synchronous local event handler to an asynchronous background job, improving system responsiveness by offloading the database view generation to a background process.

Key changes:

  • Converted SubmissionsDynamicViewGeneratorHandler from an ILocalEventHandler to an AsyncBackgroundJob
  • Renamed SubmissionsDynamicViewGenerationEto to SubmissionsDynamicViewGenerationArgs to reflect the change from event-driven to background job pattern
  • Updated ReportingFieldsGeneratorService to use IBackgroundJobManager.EnqueueAsync() instead of ILocalEventBus.PublishAsync()

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
SubmissionsDynamicViewGeneratorHandler.cs Refactored from event handler to background job; changed base class to AsyncBackgroundJob<T>, renamed method from HandleEventAsync to ExecuteAsync, and extracted SQL execution into a separate method
SubmissionsDynamicViewGenerationArgs.cs Renamed class from SubmissionsDynamicViewGenerationEto to SubmissionsDynamicViewGenerationArgs to align with background job naming conventions
ReportingFieldsGeneratorService.cs Updated to use IBackgroundJobManager instead of ILocalEventBus, replaced PublishAsync with EnqueueAsync and added job priority and delay parameters
ApplicationFormVersionAppService.cs Fixed typo in comment: changed "wit" to "with"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 267
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@JamesPasta JamesPasta merged commit a893044 into dev Dec 11, 2025
45 of 46 checks passed
@JamesPasta JamesPasta deleted the bugfix/AB#31186-reporting-form-views branch December 11, 2025 18:58
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.

3 participants