-
Notifications
You must be signed in to change notification settings - Fork 38
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
Dependency calculations updates #6189 #1814
Draft
alhambrav
wants to merge
3
commits into
craftercms:master
Choose a base branch
from
alhambrav:dependency-calculations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
:is-up-to-date: True | ||
:last-updated: 4.0.0 | ||
:last-updated: 4.2.0 | ||
|
||
:orphan: | ||
|
||
|
@@ -10,7 +10,7 @@ Dependency Resolver Configuration | |
================================= | ||
Crafter Studio extracts and tracks dependencies between content items to assist authors with publishing, workflow and core content operations like copy and delete. This file configures what file paths Crafter considers a dependency and how they should be extracted. | ||
|
||
To modify the Dependency Resolver configuration, click on |projectTools| from the bottom of the Sidebar, then click on **Configuration** and select **Dependency Resolver** from the dropdown list. | ||
To modify the Dependency Resolver configuration, click on |projectTools| from the bottom of the Sidebar, then click on **Configuration** and select **Dependency Resolver** from the list. | ||
|
||
.. image:: /_static/images/site-admin/config-open-dependency-config.webp | ||
:alt: Configurations - Open Dependency Resolver Configuration | ||
|
@@ -39,3 +39,21 @@ Here's a sample Dependency Resolver Configuration file (click on the triangle on | |
| | ||
| | ||
|
||
------------------------------- | ||
Soft Dependencies Configuration | ||
------------------------------- | ||
.. version_tag:: | ||
:label: Since | ||
:version: 4.2.0 | ||
|
||
Soft dependencies are referenced items that are in a modified state and are not a hard dependency. When calculating soft | ||
dependencies, CrafterCMS follows transitive dependencies using recursive common table expressions (recursive CTE) in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CrafterCMS follows dependencies recursively. [remove the algorithm and DB reference] |
||
the database. To set the depth of soft dependencies calculated, configure the maximum recursion iterations property | ||
``studio.db.maxRecursiveIterations`` with a value between 0 and 20. The default value is 10. | ||
|
||
.. code-block:: yaml | ||
:caption: *bin/apache-tomcat/shared/classes/crafter/studio/extension/studio-config-override.yaml* | ||
|
||
# DB max_recursive_iterations value. This property should be set to a value between 0 and 20 (hard limit) | ||
studio.db.maxRecursiveIterations: 10 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we define hard dependencies anywhere?