Relabel added->upserted, removed->deleted, removed total (#179755)

## Summary
closes https://github.com/elastic/connectors/issues/2315

This changes the displayed labels for a few connector metrics.

"Added" -> "Upserted". This is intended to make more clear that the
count doesn't necessarily mean "new documents" but is a union of new
docs and doc updates.

"Removed" -> "Deleted". This just aligns verbiage between our overview
page and our event log flyout.

"Total" -> "". This number was confusing to users because it wasn't
clear that it was a total _from a specific point in time_ and may not
still have any bearing on current state. It will remain in the backend
for troubleshooting, but has been removed from the event log view.

<img width="458" alt="Screenshot 2024-04-01 at 11 32 44 AM"
src="4c53957b-7bc4-4fa7-8e5e-a57b2f19e7bc">
<img width="639" alt="Screenshot 2024-04-01 at 11 33 03 AM"
src="2da18a63-af45-4953-ae3f-b173abbdfbd7">


### Checklist


- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
This commit is contained in:
Sean Story 2024-04-04 13:56:58 -05:00 committed by GitHub
parent aea8060ba6
commit bad32f90f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 5 additions and 20 deletions

View file

@ -9,15 +9,11 @@ exports[`DocumentsPanel renders 1`] = `
Array [
Object {
"field": "added",
"name": "Added",
"name": "Upserted",
},
Object {
"field": "removed",
"name": "Removed",
},
Object {
"field": "total",
"name": "Total",
"name": "Deleted",
},
Object {
"field": "volume",

View file

@ -17,7 +17,6 @@ import { FlyoutPanel } from './flyout_panel';
interface SyncJobDocumentsPanelProps {
added: number;
removed: number;
total: number;
volume: number;
}
@ -26,19 +25,13 @@ export const SyncJobDocumentsPanel: React.FC<SyncJobDocumentsPanelProps> = (sync
{
field: 'added',
name: i18n.translate('searchConnectors.index.syncJobs.documents.added', {
defaultMessage: 'Added',
defaultMessage: 'Upserted',
}),
},
{
field: 'removed',
name: i18n.translate('searchConnectors.index.syncJobs.documents.removed', {
defaultMessage: 'Removed',
}),
},
{
field: 'total',
name: i18n.translate('searchConnectors.index.syncJobs.documents.total', {
defaultMessage: 'Total',
defaultMessage: 'Deleted',
}),
},
{

View file

@ -76,7 +76,6 @@ export const SyncJobFlyout: React.FC<SyncJobFlyoutProps> = ({ onClose, syncJob }
<EuiFlexItem>
<SyncJobDocumentsPanel
added={syncJob.indexed_document_count}
total={syncJob.total_document_count ?? 0}
removed={syncJob.deleted_document_count}
volume={syncJob.indexed_document_volume ?? 0}
/>

View file

@ -63,7 +63,7 @@ export const SyncJobsTable: React.FC<SyncJobHistoryTableProps> = ({
{
field: 'indexed_document_count',
name: i18n.translate('searchConnectors.searchIndices.addedDocs.columnTitle', {
defaultMessage: 'Docs added',
defaultMessage: 'Docs upserted',
}),
sortable: true,
truncateText: true,

View file

@ -5581,7 +5581,6 @@
"searchConnectors.index.syncJobs.documents.added": "Ajouté",
"searchConnectors.index.syncJobs.documents.removed": "Retiré",
"searchConnectors.index.syncJobs.documents.title": "Documents",
"searchConnectors.index.syncJobs.documents.total": "Total",
"searchConnectors.index.syncJobs.documents.value": "Valeur",
"searchConnectors.index.syncJobs.documents.volume": "Volume",
"searchConnectors.index.syncJobs.documents.volume.lessThanOneMBLabel": "Inférieur à 1 Mo",

View file

@ -5574,7 +5574,6 @@
"searchConnectors.index.syncJobs.documents.added": "追加",
"searchConnectors.index.syncJobs.documents.removed": "削除しました",
"searchConnectors.index.syncJobs.documents.title": "ドキュメント",
"searchConnectors.index.syncJobs.documents.total": "合計",
"searchConnectors.index.syncJobs.documents.value": "値",
"searchConnectors.index.syncJobs.documents.volume": "量",
"searchConnectors.index.syncJobs.documents.volume.lessThanOneMBLabel": "1mb未満",

View file

@ -5585,7 +5585,6 @@
"searchConnectors.index.syncJobs.documents.added": "已添加",
"searchConnectors.index.syncJobs.documents.removed": "已移除",
"searchConnectors.index.syncJobs.documents.title": "文档",
"searchConnectors.index.syncJobs.documents.total": "合计",
"searchConnectors.index.syncJobs.documents.value": "值",
"searchConnectors.index.syncJobs.documents.volume": "卷",
"searchConnectors.index.syncJobs.documents.volume.lessThanOneMBLabel": "小于 1mb",