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

Data type usage reporting and deletion warning #6625

Merged
merged 44 commits into from Oct 21, 2019

Conversation

Shazwazza
Copy link
Contributor

@Shazwazza Shazwazza commented Oct 9, 2019

Displays a report when viewing a data type to show where it is used: Document types, media types, member types and optionally for which property editors. This feature also adds a new deletion prompt when deleting a data type to let you know exactly where it is used before you agree to delete it.

image

image

Changes

  • data type ui updated to support content app layout - this means moving some stuff around since each view is now responsible for the parts of the data type layout
  • data type angular updated to use more modern apis (controller as, etc...)
  • report data is only requested when the releations tab is active
  • new IDataTypeService.GetReferences
  • new DataTypeController.GetReferences endpoint for angular
  • Fixes navigating in angular when navigating via an html local url (there was a bug in this)
  • updated delete dialog/controller to show where the data type is used, this now uses more modern apis (controller as, etc...)

Testing

  • Ensure unit tests all pass
  • Review code
  • Ensure data type creation & editing all works as expected
  • Ensure the relations report is working and is accurate when clicking the relations tab
  • Ensure you can click through to the related content type items
  • Ensure the relations delete report is working and is accurate when trying to delete a data type and make sure you can still delete the data type

@Shazwazza Shazwazza marked this pull request as ready for review October 9, 2019 05:08
@Shazwazza Shazwazza changed the title DataType tracking DataType tracking with report Oct 9, 2019
@Shazwazza Shazwazza changed the title DataType tracking with report Data type usage reporting Oct 9, 2019
@Shazwazza Shazwazza changed the title Data type usage reporting Data type usage reporting and deletion warning Oct 10, 2019
@bergmania
Copy link
Member

bergmania commented Oct 11, 2019

@nielslyngsoe
I couldn't find the unit tests of the umbCmsJoinArray filter? You probably forgot to add the file to the commit

I added some tests myself and think some of the behavior was a bit funny.
If I used null as seperator, then the output uses 'null' as sperator. I expected ''. So I changed this

Hopefully you can figure out how to merge my tests with the one you forgot to push.
You can see my tests here: https://github.com/umbraco/Umbraco-CMS/blob/261dc2af9881b8bba754368d0cd335e9e81ad311/src/Umbraco.Web.UI.Client/test/unit/common/filters/umbCmsJoinArray.filter.spec.js

Copy link
Member

@bergmania bergmania left a comment

Choose a reason for hiding this comment

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

Added some small comments

@bergmania
Copy link
Member

Seems to work as expected :)

Do you agree on my change to the filter, and comments?

@bergmania bergmania merged commit ed6fee4 into v8/dev Oct 21, 2019
@bergmania bergmania deleted the v8/feature/AB2913-DataTypeTracking branch October 21, 2019 08:10
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.

None yet

7 participants