core icon indicating copy to clipboard operation
core copied to clipboard

#28896 Create Factory method to find categories in all levels

Open freddyDOTCMS opened this issue 1 year ago • 1 comments

This is the first PR for https://github.com/dotCMS/core/issues/28896

Later I am going to use this Factory to create a API Method

Proposed Changes

  • Create Method to find categories in all levels and apply a filter

https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R844

  • Update the Cache with the result

https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R863

We already have a method to find the ALL the categories and it update the cache after execute the query, so I created a Util method to share the code.

https://github.com/dotCMS/core/pull/29021/files#diff-bf828c747c99cefe73af7cec527db7f7e64bd4a66ba54a55eb1170f6a2996333R168

Checklist

  • [ ] Tests
  • [ ] Translations
  • [ ] Security Implications Contemplated (add notes if applicable)

Additional Info

** any additional useful context or info **

Screenshots

Original Updated
** original screenshot ** ** updated screenshot **

freddyDOTCMS avatar Jun 26 '24 18:06 freddyDOTCMS