Commit b29f7340 authored by Zack Cuddy's avatar Zack Cuddy

Geo Package Files - Sync Counts

This MR adds the sync count objects
to the Geo Nodes UI.

The API had the data updated and this
change just adds them to the store.
parent f5df1117
...@@ -77,6 +77,11 @@ export default { ...@@ -77,6 +77,11 @@ export default {
itemValueType: VALUE_TYPE.GRAPH, itemValueType: VALUE_TYPE.GRAPH,
detailsPath: `${this.node.url}admin/geo/designs`, detailsPath: `${this.node.url}admin/geo/designs`,
}, },
{
itemTitle: s__('GeoNodes|Package files'),
itemValue: this.nodeDetails.packageFiles,
itemValueType: VALUE_TYPE.GRAPH,
},
{ {
itemTitle: s__('GeoNodes|Data replication lag'), itemTitle: s__('GeoNodes|Data replication lag'),
itemValue: this.dbReplicationLag(), itemValue: this.dbReplicationLag(),
......
...@@ -137,6 +137,11 @@ export default class GeoNodesStore { ...@@ -137,6 +137,11 @@ export default class GeoNodesStore {
successCount: rawNodeDetails.design_repositories_synced_count || 0, successCount: rawNodeDetails.design_repositories_synced_count || 0,
failureCount: rawNodeDetails.design_repositories_failed_count || 0, failureCount: rawNodeDetails.design_repositories_failed_count || 0,
}, },
packageFiles: {
totalCount: rawNodeDetails.package_files_count || 0,
successCount: rawNodeDetails.package_files_synced_count || 0,
failureCount: rawNodeDetails.package_files_failed_count || 0,
},
attachments: { attachments: {
enabled: rawNodeDetails.attachments_replication_enabled, enabled: rawNodeDetails.attachments_replication_enabled,
totalCount: rawNodeDetails.attachments_count || 0, totalCount: rawNodeDetails.attachments_count || 0,
......
---
title: Geo Package Files - Sync Counts
merge_request: 34205
author:
type: added
...@@ -93,6 +93,10 @@ export const rawMockNodeDetails = { ...@@ -93,6 +93,10 @@ export const rawMockNodeDetails = {
design_repositories_synced_count: 0, design_repositories_synced_count: 0,
design_repositories_failed_count: 0, design_repositories_failed_count: 0,
design_repositories_synced_in_percentage: '0.00%', design_repositories_synced_in_percentage: '0.00%',
package_files_count: 25,
package_files_synced_count: 25,
package_files_failed_count: 0,
package_files_synced_in_percentage: '100.00%',
repositories_failed_count: 0, repositories_failed_count: 0,
repositories_synced_count: 12, repositories_synced_count: 12,
repositories_synced_in_percentage: '100.00%', repositories_synced_in_percentage: '100.00%',
...@@ -208,6 +212,11 @@ export const mockNodeDetails = { ...@@ -208,6 +212,11 @@ export const mockNodeDetails = {
successCount: 0, successCount: 0,
failureCount: 0, failureCount: 0,
}, },
packageFiles: {
totalCount: 25,
successCount: 25,
failureCount: 0,
},
attachments: { attachments: {
totalCount: 0, totalCount: 0,
successCount: 0, successCount: 0,
......
...@@ -10187,6 +10187,9 @@ msgstr "" ...@@ -10187,6 +10187,9 @@ msgstr ""
msgid "GeoNodes|Not checksummed" msgid "GeoNodes|Not checksummed"
msgstr "" msgstr ""
msgid "GeoNodes|Package files"
msgstr ""
msgid "GeoNodes|Pausing replication stops the sync process. Are you sure?" msgid "GeoNodes|Pausing replication stops the sync process. Are you sure?"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment