Skip to content

Comments from #49: Document changes#67

Open
lisajulia wants to merge 2 commits into
mainfrom
final-review-doc-changes
Open

Comments from #49: Document changes#67
lisajulia wants to merge 2 commits into
mainfrom
final-review-doc-changes

Conversation

@lisajulia

Copy link
Copy Markdown
Contributor

Start to work on comments from #49, will collect all document changes in this PR:

@lisajulia lisajulia requested a review from a team as a code owner June 10, 2026 09:35
@hyperspace-insights

Copy link
Copy Markdown

Summary

The following content is AI-generated and provides a summary of the pull request:


Document How to Add SAP_Recommendations Navigation Property Manually

Documentation

📝 Updated the cds-feature-recommendations README to clarify the two options for adding the SAP_Recommendations navigation property and added a new manual configuration guide.

Changes

  • cds-feature-recommendations/README.md:
    • Updated the prerequisites section to clarify that SAP_Recommendations can be added either via the @cap-js/ai CDS plugin (automatically) or manually, and noted that without it predictions are computed but not serialized in OData responses.
    • Demoted ### CDS Plugin to #### CDS Plugin to fit it within a new subsection structure.
    • Removed the redundant warning sentence from the CDS plugin description (now covered in prerequisites).
    • Added a new #### Adding the SAP_Recommendations navigation property manually section with step-by-step instructions, CDS code examples showing how to define RecommendationItem_* types and extend entities with the SAP_Recommendations composition, and a link to the SAP Fiori Elements Recommendations documentation.

Images and Links (ONLY add this section if the links are explicitly provided in the original content)

SAP Fiori Elements – Recommendations documentation


  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.22.5

@hyperspace-insights hyperspace-insights Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The PR is a focused documentation update that adds a useful manual-setup path for the SAP_Recommendations navigation property. The content itself is accurate and helpful, but there are a few formatting and structural issues — a missing space typo, a missing blank line before a heading, an improperly indented note that will render incorrectly in most Markdown engines, and a heading-level inconsistency that breaks the document hierarchy (### downgraded to #### without a parent ### to belong to).

PR Bot Information

Version: 1.22.5

  • Event Trigger: pull_request.opened
  • File Content Strategy: Full file content
  • LLM: anthropic--claude-4.6-sonnet
  • Correlation ID: 709cce1d-eb8b-4eb0-9d7c-251e27c1dbad

- The `@cap-js/ai` CDS plugin must be installed (provides the model enhancement that adds `SAP_Recommendations` as a navigation property)
- The `SAP_Recommendations` navigation property must be added to the entities that should receive recommendations by
- either installing the `@cap-js/ai` CDS plugin (automatically provides the model enhancement that adds `SAP_Recommendations` as a navigation property)
- or adding the `SAP_Recommendations`property manually.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typo: Missing space before property in the bullet point

SAP_Recommendationspropertyis missing a space between the backtick and the wordproperty`. This makes the sentence read awkwardly and the missing space may confuse readers skimming the text.

Consider adding the missing space.

Suggested change
- or adding the `SAP_Recommendations`property manually.
- or adding the `SAP_Recommendations` property manually.

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

}
}
```
#### Adding the SAP_Recommendations navigation property manually

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Formatting: Missing blank line before the new #### heading

The new #### Adding the SAP_Recommendations navigation property manually heading (line 74) immediately follows the closing fence of the JSON code block (line 73) with no blank line in between. In standard Markdown, headings should be preceded by a blank line to be reliably parsed as headings by all renderers and to improve readability.

Suggested change
#### Adding the SAP_Recommendations navigation property manually
#### Adding the SAP_Recommendations navigation property manually

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

- The `SAP_Recommendations` navigation property must be added to the entities that should receive recommendations by
- either installing the `@cap-js/ai` CDS plugin (automatically provides the model enhancement that adds `SAP_Recommendations` as a navigation property)
- or adding the `SAP_Recommendations`property manually.
Without the `SAP_Recommendations` navigation property, the predictions will be computed but not serialized in OData responses.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Clarity / Logic: The "Without the SAP_Recommendations navigation property" sentence is separated from the bullet list it belongs to

The indentation on line 46 ( Without the…) is not aligned with the - or adding… sub-bullet (which is indented with two spaces), so it reads as a new paragraph in most renderers rather than a continuation of the list. Additionally, the sentence is important context that should be clearly visible — consider either aligning it as a proper continuation line or moving it outside the bullet list entirely as a standalone note.

Suggested change
Without the `SAP_Recommendations` navigation property, the predictions will be computed but not serialized in OData responses.
- or adding the `SAP_Recommendations` property manually.
> **Note**: Without the `SAP_Recommendations` navigation property, the predictions will be computed but not serialized in OData responses.

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

Without the `SAP_Recommendations` navigation property, the predictions will be computed but not serialized in OData responses.

### CDS Plugin
#### CDS Plugin

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Inconsistency: The "CDS Plugin" and "Adding the SAP_Recommendations…" sections are headed with #### (h4), but they appear directly under a ### Prerequisites section — they should be #### subsections of ### Prerequisites, not peers of it. However, looking at the broader document structure, the "CDS Plugin" section was previously a ### (h3) heading and was downgraded to #### in this PR. The new manual-property section also uses ####. This is correct only if both sub-sections belong under ### Prerequisites; however the content (installation instructions) goes well beyond listing prerequisites and really belongs under ## Setup as ### siblings. This structural mismatch may confuse readers navigating the README.

Consider restoring "CDS Plugin" and "Adding the SAP_Recommendations navigation property manually" as ###-level headings directly under ## Setup, alongside ### Maven and ### Prerequisites.

Suggested change
#### CDS Plugin
### CDS Plugin

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

}
}
```
#### Adding the SAP_Recommendations navigation property manually

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Inconsistency: The heading level for the new manual section should match the restored ### level of "CDS Plugin" (see comment on line 48). If both are kept as ####, they are structural siblings of each other, which is fine, but the heading change at line 48 from ### to #### without a matching parent ### heading makes the document hierarchy incorrect.

Suggested change
#### Adding the SAP_Recommendations navigation property manually
### Adding the SAP_Recommendations navigation property manually

Double-check suggestion before committing. Edit this comment for amendments.


Please provide feedback on the review comment by checking the appropriate box:

  • 🌟 Awesome comment, a human might have missed that.
  • ✅ Helpful comment
  • 🤷 Neutral
  • ❌ This comment is not helpful

@lisajulia lisajulia mentioned this pull request Jun 10, 2026
@Schmarvinius Schmarvinius linked an issue Jun 10, 2026 that may be closed by this pull request
@lisajulia lisajulia force-pushed the final-review-doc-changes branch from 6c6660b to b7ca166 Compare June 10, 2026 12:09
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.

docs/test: model annotations, opt-in enhancements, READMEs

1 participant