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

ATR-759: Add release notes for 3.1.2, update 1007 diagnostic description #496

Merged
merged 10 commits into from
Jun 6, 2023

Conversation

EAndrosova
Copy link
Collaborator

No description provided.

@EAndrosova EAndrosova requested a review from SENya1990 May 23, 2023 14:43
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
Copy link
Contributor

@SENya1990 SENya1990 left a comment

Choose a reason for hiding this comment

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

The release notes and diagnostic documentation need more work

@EAndrosova EAndrosova requested a review from SENya1990 June 5, 2023 16:25
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/ReleaseNotes.md Outdated Show resolved Hide resolved
docs/Summary.md Outdated Show resolved Hide resolved
- Adds the `summary` XML tags, in which you type the description of the code item
- Adds the `exclude` XML tag, which excludes the item from the API and DAC References
- Adds the `inheritdoc` tag to a mapped DAC property of a projection DAC.
To apply the code fix and add the `inheritdoc` tag to multiple DACs, you can use the **Fix All** button in the code fix menu of Visual Studio. Clicking this button will automatically generate correct documentation for most of the projection DAC properties.
This code fix also deletes incorrect documentation tags like `summary` or other incorrectly declared `inheritdoc` tags that should not be placed on the mapped property of a projection DAC.

The new diagnostic is available only if the value of **Tools > Options > Acuminator > Code Analysis > Enable PX1007 diagnostic** is _True_. By default, the value of this option is _False_.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should extend the guide to enable the diagnostic with info from this article but I'm not insisting:
https://wiki.acumatica.com/display/TND/Enabling+PX1007+in+Visual+Studio

@@ -28,14 +36,13 @@ The diagnostic is currently displayed for the following public entities:
- DAC property fields

The diagnostic is not displayed for the following items:
- Entities with the `PXHidden`, `PXInternalUseOnly`, or `Obsolete` attribute.
- Entities with the `PXInternalUseOnly` or `Obsolete` attribute.
** Note: ** The `PXHidden` attribute does not suppress the diagnostic.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not correct. PXHidden attribute suppresses the XP1007 diagnostic but only for DACs. This attribute is applied only to DACs in general. It shouldn't be used on DAC extensions or DAC properties. The changes in this release ensured that the declaration of PXHidden on something other than DAC will have no effect.

@@ -28,14 +36,13 @@ The diagnostic is currently displayed for the following public entities:
- DAC property fields

The diagnostic is not displayed for the following items:
- Entities with the `PXHidden`, `PXInternalUseOnly`, or `Obsolete` attribute.
- Entities with the `PXInternalUseOnly` or `Obsolete` attribute.
** Note: ** The `PXHidden` attribute does not suppress the diagnostic.
- Members of public entities (except nested public types and DAC property fields).
- All members of a public entity if the entity has the `exclude` XML tag or is marked with the `PXHidden`, `PXInternalUseOnly`, or `Obsolete` attribute.
Copy link
Contributor

@SENya1990 SENya1990 Jun 5, 2023

Choose a reason for hiding this comment

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

The part with attributes is not precise and became outdated. It should be updated with something like this:

 - All members of a public entity if the entity has the `exclude` XML tag or is marked with the `PXInternalUseOnly`, or `Obsolete` attribute. You can also exclude DACs from the documentation by marking them with `PXHidden` attribute.

Copy link
Contributor

@SENya1990 SENya1990 left a comment

Choose a reason for hiding this comment

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

Need to fix the remarks

EAndrosova and others added 6 commits June 6, 2023 16:15
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
Co-authored-by: Sergey Nikomarov <snikomarov@acumatica.com>
@dropsonic dropsonic merged commit 3a40eec into dev Jun 6, 2023
@dropsonic dropsonic deleted the feature/ATR-759-dev-RN_for_3_1_2 branch June 6, 2023 14:12
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