Skip to content

V9: Displaying descendants in use as part of item tracking#12039

Merged
bergmania merged 7 commits intov9/feature/item-trackingfrom
v9/feature/item-tracking-display-descenants
Feb 24, 2022
Merged

V9: Displaying descendants in use as part of item tracking#12039
bergmania merged 7 commits intov9/feature/item-trackingfrom
v9/feature/item-tracking-display-descenants

Conversation

@elit0451
Copy link
Contributor

@elit0451 elit0451 commented Feb 23, 2022

Details

  • With this PR we are able to show which Content or Media descendants are referenced in other places of Umbraco.
  • This improves the displayed information - before if click on a folder/parent item, it will only indicate that "One or more of this item's descendants is being used in a content item." in text.
  • You can select an item from the list of "Descendants in use" and navigate to its info tab to observe the specific references.

Test

  • Have the SK installed
    • Pick a parent that has descendants and navigate to its info tab;
    • Observe if any nodes are listed as "Descendants in use";
    • You can also try to delete/unpublish a parent and you will get the same table of "Descendants in use" + a warning message;
    • Make sure that the rest of the Item tracking functionality still works (listed in PR:Item tracking improvements #11919).

@nzdev
Copy link
Contributor

nzdev commented Feb 23, 2022

Would this scale if I have thousands of in use images in a folder?

@bergmania
Copy link
Member

Would this scale if I have thousands of in use images in a folder?

The query is paged in the database and my tests do not show any issues. But this will be very good feedback when we ship this as RC if there are any issues.

@bergmania bergmania merged commit 53fe129 into v9/feature/item-tracking Feb 24, 2022
@bergmania bergmania deleted the v9/feature/item-tracking-display-descenants branch February 24, 2022 14:11
bergmania added a commit that referenced this pull request Mar 7, 2022
* Adding TrackedReferencesController

* Adding/changing views

* Adding/Editing js files

* RelationService changes

* RelationRepository changes

* Adding missing translations

* Adding/Modifying tests

* Beginning of #9125 migration

* Introducing a new component + refactoring based on that

* Abstracting + refactoring

* Work on content unpublishing

* Work on media.delete

* Various small changes

* Beginning of #9119 migration

* Changes on content.delete

* Various fixes

* Adding new keys used in the listview bulk actions

* Adding methods to get the items used in relations from array of ids

* Adding the checkLinkedItems function to the trackedReferencesResource

* Passing the selected items from a listview to unpublish and delete

* Adding umb-tracked-references-listview

* Adding umb-tracked-references-listview-table with language column

* Fixes for tracked references

* Changes in listview unpublish dialog

* Changes in listview delete dialog

* Removing Variants logic as it is not currently supported

* Visual fixes

* Closing dialogs on click

* Fix wording

* Fix breaking changes

* Change to a single title "Items in use" instead of 2 different for Content and Media

* No need for obsoleting because we can change new controllers

* Return ActionResult from actions

* V9:  Prevent delete or unpublish of items that have references (#12047)

* Introducing config settings that prevent delete or unpublish of items referenced by other items

* Disable deletion of content items and show a new warning

* Disable deletion of media items and show a new warning

* Disable deletion of list view items

* Disable unpublish and bulk unpublish

* Add a new warning

* V9: Displaying descendants in use as part of item tracking (#12039)

* Replace HasReferencesInDescendants with GetPagedDescendantsInReferences

* Display descendants in use on parent's info tab

* Add getPagedDescendantsInReferences to trackedReferencesResource

* Add lang keys for Descendants in use

* Refactoring controller actions

* Don't call check descendants usage when it is a new item

* rename busfy to busy

* always show references

* rearrange for scrollbar to appear at the edge of the dialog

* use the word referenced instead of used

* change fallback texts

* Added "IsDependency" to relation types

* refactor of umb-tracked-references

* rename checkLinkedItems to getPagedReferencedItems

* rename check to load, to be consistent with the rest.

* Refactored backend . Needs frontend fixes

* Cleanup

* Use filters

* Front-end refactor to match refactored end-points

* Fixed bug + warning

* Fixed query (more then 2100 descensdants) and optimized it (using nested select instead of inner join).

* remove comment

* hideNoneDependencies including varying text for the configuration

* Hack for SqlCE :(

* some final adjustments for item tracking ui

* Unbreak change

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants