-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bugfix/atr 810 dev fix default navigation checks #533
Conversation
…PK, FK and UK declarations in DACs
…ork for DACs with default navigation
…roken 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
docs/diagnostics/PX1036.md
Outdated
@@ -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`. |
There was a problem hiding this comment.
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
Overview:
PXPrimaryGraphBaseAttribute