Skip to content

Bugfix/atr 936 dev remove noise alerts for px1065#658

Open
SENya1990 wants to merge 7 commits intodevfrom
bugfix/ATR-936-dev-remove-noise-alerts-for-PX1065
Open

Bugfix/atr 936 dev remove noise alerts for px1065#658
SENya1990 wants to merge 7 commits intodevfrom
bugfix/ATR-936-dev-remove-noise-alerts-for-PX1065

Conversation

@SENya1990
Copy link
Collaborator

@SENya1990 SENya1990 commented Jan 27, 2026

Changes Overview

  • removed reporting of PX1065 for DAC properties from base DACs
  • fixed code fix registration logic for PX1065
  • updated unit tests for PX1065 for scenarios when property without a BQL field is in base DACs
  • updated PX1065 and PX1080 docs

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 PR fixes the PX1065 analyzer to reduce noise alerts by modifying its behavior for DAC extensions and derived DACs. The analyzer now only reports missing BQL field errors when properties are overridden or redeclared, rather than reporting errors for all base properties without BQL fields.

Changes:

  • Modified PX1065 analyzer logic to skip reporting diagnostics for base type properties in DAC extensions
  • Updated test cases to reflect the new behavior with additional test scenarios
  • Enhanced documentation to clarify the new diagnostic behavior

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
NoBqlFieldForDacFieldPropertyAnalyzer.cs Updated analyzer logic to skip reporting PX1065 for base type properties and improved diagnostic property handling
NoBqlFieldForDacFieldAnalyzerFix.cs Modified code fix registration check to be more explicit
NoBqlFieldForDacFieldPropertyTests.cs Updated test expectations to match new diagnostic behavior
DacWithBqlFieldMissingInBaseDac.cs Added test case for Amount property and updated to nullable types
DacWithBqlFieldMissingInBaseDac_Expected.cs Added expected BQL field for Amount property
DacExtensionWithBqlFieldMissingInBaseDac.cs Added test case for Amount property in extension
DacExtensionWithBqlFieldMissingInBaseDac_Expected.cs Added expected BQL field for Amount property in extension
DacWithBqlFieldMissingInExternalBaseDac.cs Added test case for Amount property with external base DAC
DacExtensionWithBqlFieldMissingInExternalBaseDac.cs Added test case for Amount property in extension with external base DAC
BaseDacWithoutBqlField.cs Added Amount property without BQL field for testing
PX1065.md Updated documentation to clarify when PX1065 is reported for derived DACs and extensions

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

@SENya1990 SENya1990 self-assigned this Jan 27, 2026
@SENya1990 SENya1990 added enhancement New feature or request static analysis Items related to static code analysis labels Jan 27, 2026
## Diagnostic Description

Acumatica Framework requires that all DAC field properties have a corresponding BQL field (a public abstract class) in the DAC. A missing BQL field may cause runtime errors or unexpected behavior in numerous places in the application code of Acumatica ERP.
Acumatica Framework requires that all DAC field properties have a corresponding BQL field (a public abstract class) in the DAC. A missing BQL field may cause runtime errors or unexpected behavior
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@EAndrosova please review changes


## Diagnostic Description
Data view delegates should not start long-running operations. A data view delegate is designed to prepare a data set to display it in the UI. The result of the data view delegate is returned before the end of the long-running operation.
Data view delegates should not start long-running operations. A data view delegate is designed to prepare a data set to display it in the UI. If the results of the long-running operation are not awaited synchronously,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@EAndrosova please review the updates in PX1080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request static analysis Items related to static code analysis

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PX1065: The DAC field property "Attributes" has Acumatica attributes declared on it but does not have a corresponding BQL field

3 participants