dotCMS / core

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

Metrics: Count aliases on all Sites #27055

Closed dsilvam closed 11 months ago

dsilvam commented 11 months ago

Parent Issue

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

Task

Add the count of non-system fields in the Host content type to the stats endpoint

Proposed Objective

Please Select

Proposed Priority

Please Select

Acceptance Criteria

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

dsilvam commented 11 months ago

PR Experience: https://github.com/dotCMS/com.dotcms.experience/pull/7

dsilvam commented 11 months ago

Note to QA:

  1. Install the Plugin. First the fragment and then the actual plugin
  2. Make sure you're getting a response when hitting http://localhost:8080/api/v1/dotexp/stats
  3. Include new aliases on existing active Sites.
  4. Create a new Site with aliases and activate it.
  5. Hit the endpoint again and make sure the count increased for the entry SITES_ALIASES
oidacra commented 11 months ago

IQA Passed using master_25f4e64: Add a new alias to the site. image

Before image

After image

bryanboza commented 11 months ago

I'm unable to upload this plugin, after run the "./gradlew jar" and try to upload to the plugin portlet, we are loading the plugin, showing the notification that a "new plugin has been installed" but we are not listing as a plugin, also when you hit the url http://localhost:8080/api/v1/dotexp/stats this does not exist.

Tested on master // Docker // FF

bryanboza commented 11 months ago

Fixed, tested on master // Docker // FF...

The previous error was caused by a configuration error with the transaction to maven. Maybe we need to create some doc about it.