Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/atr 810 dev fix default navigation checks #533

Merged
merged 5 commits into from
Jun 24, 2024

Conversation

SENya1990
Copy link
Contributor

@SENya1990 SENya1990 commented Jun 22, 2024

Overview:

  • added symbol for PXPrimaryGraphBaseAttribute
  • fixed check for default navigation for diagnostics checking PK, FK and UK declarations in DACs
  • updated unit tests to check that PX1033-PX1037 diagnostics work for DACs with default navigation
  • updated documentation for PX1033-PX1037 diagnostics, fixed broken references in the documentation

@@ -9,7 +9,7 @@ This document describes the PX1033 diagnostic.

## Diagnostic Description
You can define a primary key field in a DAC. The diagnostic suggests adding a primary key definition to a DAC.
Copy link
Contributor 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 change in the diagnostic documentation

@@ -8,7 +8,8 @@ This document describes the PX1034 diagnostic.
| PX1034 | The DAC does not have an explicit foreign key declaration | Warning (ISV Level 3: Informational) | Available |

## Diagnostic Description
You can define foreign keys in a DAC. The diagnostic suggests adding a foreign key definition to a DAC. The warning is shown only for DACs that have the `PXCacheName` or `PXPrimaryGraph` attribute.
You can define foreign keys in a DAC. The diagnostic suggests adding a foreign key definition to a DAC.
Copy link
Contributor 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 change in the diagnostic documentation

@@ -9,7 +9,7 @@ This document describes the PX1036 diagnostic.

## Diagnostic Description
The diagnostic checks the correct naming of primary, foreign, and unique key field declarations in DACs. For a primary key, the name should be `PK`. For a foreign key, the name can be arbitrary but the key should be declared in a public static class called `FK`. For a single unique key, the name should be `UK`. Multiple unique keys in the DAC can have arbitrary names but they must be declared in a public static class called `UK`.
The warning is shown only for DACs that have the `PXCacheName` or `PXPrimaryGraph` attribute.
The warning is shown only for DACs that have an attribute derived from the `PXCacheName` attribute, or an attribute derived from the `PXPrimaryGraphBase` attribute like `PXPrimaryGraphAttribute`.
Copy link
Contributor 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 change in the diagnostic documentation

@SENya1990 SENya1990 merged commit b991c6f into dev Jun 24, 2024
@SENya1990 SENya1990 deleted the bugfix/ATR-810-dev-fix-default-navigation-checks branch June 24, 2024 21:11
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