dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
860 stars 467 forks source link

Metrics: Count of Number of files in themes #27151

Closed freddyDOTCMS closed 4 months ago

freddyDOTCMS commented 9 months ago

Parent Issue

https://github.com/dotCMS/core/issues/27137

User Story

Being able to retrieve the Count of Number of files in themes and include it as part as the /dotexp/stats Endpoint response

Acceptance Criteria

Include a new attribute on the /dotexp/stats Endpoint with the Count of Number of files in themes

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

dsilvam commented 4 months ago

PR: https://github.com/dotCMS/com.dotcms.telemetry/pull/62

freddyDOTCMS commented 4 months ago

Note to QA: Steps to test:

To check what is the right value for this Metric:

oidacra commented 4 months ago

IQA Failed: Original values: 218

Screenshot 2024-06-05 at 1 03 33 PM Screenshot 2024-06-05 at 1 03 15 PM

After creating the new subfolder and copying the template expected TOTAL_FILES_IN_THEMES 219 expected TOTAL_LIVE_FILES_IN_THEMES 219

Screenshot 2024-06-05 at 1 12 26 PM Screenshot 2024-06-05 at 1 07 45 PM

Has 220 each.

freddyDOTCMS commented 4 months ago

IQA Failed: Original values: 218 Screenshot 2024-06-05 at 1 03 33 PM Screenshot 2024-06-05 at 1 03 15 PM

After creating the new subfolder and copying the template expected TOTAL_FILES_IN_THEMES 219 expected TOTAL_LIVE_FILES_IN_THEMES 219

Screenshot 2024-06-05 at 1 12 26 PM Screenshot 2024-06-05 at 1 07 45 PM Has 220 each.

It is working as expected but I found another bug. To create a Theme is need to: Create a SubFolder in the 'application/themes' and also create a template.vtl file inside this SubFolder. Right now if we create a SubFolder in 'application/themes' and create a File inside it but not the 'template.vtl' file then this file is count even when this SubFolder is not really a Theme

dsilvam commented 4 months ago

PR: Count of all templates used in LIVE pages

oidacra commented 4 months ago

IQA Passed:

Screenshot 2024-06-06 at 12 54 13 PM Screenshot 2024-06-06 at 12 53 29 PM
oidacra commented 4 months ago

@freddyDOTCMS is it ok if we count the pages?