-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-32243: Exposed repository object counts in database tab (#76)
Added "Repository" tab in "Admin -> System Info" providing current Repository metrics: - published content objects count, - users count, - drafts count, - content types count. * Exposed repository object counts in database tab * Marked contracts as internal, to be fine-tuned before exposing as API Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co> Co-authored-by: Andrew Longosz <alongosz@users.noreply.github.com>
- Loading branch information
1 parent
52d659f
commit aee6393
Showing
27 changed files
with
803 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/bundle/Resources/views/themes/admin/system_info/database.html.twig
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
src/bundle/Resources/views/themes/admin/system_info/repository.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{% trans_default_domain "systeminfo" %} | ||
|
||
<!-- Tab name: {{ 'tab.name.repository'|trans|desc('Repository') }} --> | ||
|
||
<section class="ez-fieldgroup"> | ||
<h2 class="ez-fieldgroup__name">{{ 'repository'|trans|desc('Repository') }}</h2> | ||
<div class="ez-fieldgroup__content"> | ||
<table class="table ez-table--list"> | ||
<tbody> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell"> | ||
{{ 'repository.published_content_objects_count'|trans|desc('Published content objects count') }} | ||
</td> | ||
<td class="ez-table__cell">{{ info.repositoryMetrics.publishedCount }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.users_count'|trans|desc('Users count') }}</td> | ||
<td class="ez-table__cell">{{ info.repositoryMetrics.usersCount }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.drafts_count'|trans|desc('Drafts count') }}</td> | ||
<td class="ez-table__cell">{{ info.repositoryMetrics.draftsCount }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.versions_count'|trans|desc('Versions count') }}</td> | ||
<td class="ez-table__cell">{{ info.repositoryMetrics.versionsCount }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.content_types_count'|trans|desc('Content Types count') }}</td> | ||
<td class="ez-table__cell">{{ info.repositoryMetrics.contentTypesCount }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</section> | ||
<section class="ez-fieldgroup"> | ||
<h2 class="ez-fieldgroup__name">{{ 'database'|trans|desc('Database') }}</h2> | ||
<div class="ez-fieldgroup__content"> | ||
<table class="table ez-table--list"> | ||
<tbody> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.type'|trans|desc('Type') }}</td> | ||
<td class="ez-table__cell">{{ info.type }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.name'|trans|desc('Name') }}</td> | ||
<td class="ez-table__cell">{{ info.name }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.host'|trans|desc('Host') }}</td> | ||
<td class="ez-table__cell">{{ info.host }}</td> | ||
</tr> | ||
<tr class="ez-table__row"> | ||
<td class="ez-table__cell">{{ 'repository.username'|trans|desc('Username') }}</td> | ||
<td class="ez-table__cell">{{ info.username }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
src/bundle/SystemInfo/Collector/DoctrineDatabaseSystemInfoCollector.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.