Skip to content

Commit

Permalink
Presentation: Common rule docs (#3186)
Browse files Browse the repository at this point in the history
* Add `chai-string` dependency to presentation-full-stack-tests

* Doc enhancements for `RelatedInstanceSpecification`

* Doc enhancements for `RelationshipPathSpecification`

* Add docs for `RepeatableRelationshipPathSpecification`

* Move `MultiSchemaClasses` learning snippet test into `CommonRules.test.ts`. Add a result image for it.

* Move common rule docs into presentation docs root to avoid having to provide an index for them

* Update docs/presentation/RelatedInstanceSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Update docs/presentation/RelatedInstanceSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Remove unused `chai-string` dependency

* Update full-stack-tests/presentation/src/learning-snippets/CommonRules.test.ts

Co-authored-by: Robert Lukasonok <[email protected]>

* Extend the recursive relationship step step example

* Attempt to clarify `count: "*"`

* Restore unintentional changes

* Restore unintentional changes

* Update docs/presentation/RepeatableRelationshipPathSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Update docs/presentation/RepeatableRelationshipPathSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Update docs/presentation/RepeatableRelationshipPathSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Update docs/presentation/RepeatableRelationshipPathSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

* Update docs/presentation/RepeatableRelationshipPathSpecification.md

Co-authored-by: Robert Lukasonok <[email protected]>

Co-authored-by: Robert Lukasonok <[email protected]>
  • Loading branch information
grigasp and roluk authored Mar 3, 2022
1 parent 6cf0a26 commit 7890b9d
Show file tree
Hide file tree
Showing 45 changed files with 892 additions and 323 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/presentation-common",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/presentation-common"
}
2 changes: 1 addition & 1 deletion docs/changehistory/2.11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ A property value renderer for instance key values has been added, which allows u

### Breaking changes to `ContentRelatedInstances`

Behavior of `ContentRelatedInstances` specification used in content rules was changed. It used to include input instances into the result if all paths in `relationshipPaths` property had `count: "*"` and target class matched input instance class. The behavior was changed to match cases where steps `relationshipPaths` have `count` set to specific number - the result only includes instances resulting from step outputs. See [RelationshipPathSpecification documentation]($docs/presentation/Common-Rules/RelationshipPathSpecification.md) for more details and examples.
Behavior of `ContentRelatedInstances` specification used in content rules was changed. It used to include input instances into the result if all paths in `relationshipPaths` property had `count: "*"` and target class matched input instance class. The behavior was changed to match cases where steps `relationshipPaths` have `count` set to specific number - the result only includes instances resulting from step outputs. See [RelationshipPathSpecification documentation]($docs/presentation/RelationshipPathSpecification.md) for more details and examples.

Example:

Expand Down
32 changes: 0 additions & 32 deletions docs/presentation/Common-Rules/RelatedInstanceSpecification.md

This file was deleted.

108 changes: 0 additions & 108 deletions docs/presentation/Common-Rules/RelationshipPathSpecification.md

This file was deleted.

Loading

0 comments on commit 7890b9d

Please sign in to comment.