Skip to content

Conversation

@AndreGAot
Copy link
Contributor

@AndreGAot AndreGAot commented Nov 18, 2025

Pull Request Overview

This pull request introduces a comprehensive Reporting Configuration Feature that enables administrators to configure column names for report views and explicitly generate database views for form submissions, worksheets, and scoresheets with role-based access control.

Key Changes:

  • Added reporting configuration infrastructure with database schema for column mappings and view management
  • Implemented PostgreSQL stored procedures and functions for dynamic view generation from JSON data
  • Created a form metadata service to analyze and extract component information from form schemas
  • Added UI components for reporting configuration with status tracking and preview capabilities

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 introduces a comprehensive Reporting Configuration Feature that enables administrators to configure column names for report views and explicitly generate database views for form submissions, worksheets, and scoresheets with role-based access control.

Key Changes:

  • Added reporting configuration infrastructure with database schema for column mappings and view management
  • Implemented PostgreSQL stored procedures and functions for dynamic view generation from JSON data
  • Created a form metadata service to analyze and extract component information from form schemas
  • Added UI components for reporting configuration with status tracking and preview capabilities

Reviewed Changes

Copilot reviewed 149 out of 159 changed files in this pull request and generated 23 comments.

Show a summary per file
File Description
FormMetadataServiceTests.cs Comprehensive test suite for form metadata extraction and component analysis
Mapping.cshtml Added reporting configuration tab to application forms mapping page
PolicyRegistrant.cs Registered reporting configuration authorization policies
Unity.GrantManager.EntityFrameworkCore.csproj Embedded SQL scripts as resources for database migrations
get_worksheet_data.sql PostgreSQL function for extracting worksheet data into structured views
get_scoresheet_data.sql PostgreSQL function for extracting scoresheet assessment data
get_formversion_data.sql PostgreSQL function for extracting form submission data
generate_*_view.sql PostgreSQL stored procedures for creating reporting views
calculate_scoresheet_total_score.sql Function for calculating scoresheet total scores
README.md Documentation for database scripts and migration dependencies
Multiple migrations Database schema changes for reporting configuration tables
FormMetadataService.cs Service implementation for analyzing form schemas and extracting metadata
FormsApiService.cs Removed unused import statement
ReportingConfigurationViewStatus components UI components for displaying view generation status with preview

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

@AndreGAot AndreGAot requested a review from JamesPasta November 18, 2025 22:23
@AndreGAot AndreGAot marked this pull request as ready for review November 18, 2025 22:25
@JamesPasta JamesPasta merged commit 6126320 into dev Nov 18, 2025
5 checks passed
@JamesPasta JamesPasta deleted the feature/AB#29055-reporting-configuration branch November 18, 2025 23:30
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