Skip to content

Conversation

@DavidWiseman
Copy link
Collaborator

Designer needs to be updated for ColumnMetadata. The backward compatibility layer works for deserialization, but does not support adding items to dictionaries.

Designer needs to be updated for ColumnMetadata.  The backward compatibility layer works for deserialization, but does not support adding items to dictionaries.
Copilot AI review requested due to automatic review settings October 19, 2025 17:05
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

Purpose: Update the custom report designer to rely on ColumnMetadata for per-column settings (visibility, links, formatting, highlighting, etc.) and add support for hiding certain identifier columns.

  • Introduces use of ColumnMetadata for storing highlighting, link, format, timezone conversion, and description settings.
  • Adds explicit visibility settings for InstanceID and DatabaseID columns in relevant reports.
  • Refactors prior per-column dictionaries (e.g., CellHighlightingRules, LinkColumns, CellFormatString, DoNotConvertToLocalTimeZone) toward unified ColumnMetadata, though some legacy references remain.

Reviewed Changes

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

File Description
DBADashGUI/ExtensionMethods.cs Removes fallback that hid columns absent from saved layout.
DBADashGUI/CustomReports/NewDatabasesReport.cs Marks InstanceID column as not visible via ColumnMetadata.
DBADashGUI/CustomReports/DatabaseFinderReport.cs Adds hidden DatabaseID column metadata.
DBADashGUI/CustomReports/CustomReportView.cs Refactors multiple per-column operations (highlighting, links, formatting, timezone, description) to use ColumnMetadata; adds helper GetColumnMetadata.
Comments suppressed due to low confidence (1)

DBADashGUI/ExtensionMethods.cs:1

  • [nitpick] Removing this else block alters LoadColumnLayout behavior so columns without saved settings remain visible instead of being hidden. If the intent is strict restoration (show only saved columns), consider retaining logic or adding a comment clarifying the new expected behavior to avoid confusion.
using DBADashGUI.CustomReports;

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DavidWiseman DavidWiseman merged commit b5390bf into trimble-oss:main Oct 19, 2025
@DavidWiseman DavidWiseman deleted the ReportDesignerFixes branch October 19, 2025 17:37
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