MM-53228: Adding schema version to cluster info (#24209)
With the schema version available, a job can query for the cluster info to confirm whether or not all nodes in a cluster are upgraded to the same version or not. This will help it in determining whether to start the job or not. https://mattermost.atlassian.net/browse/MM-53228 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ace88288f0
Коммит
45a14e23a9
@@ -15,6 +15,7 @@ type Props = {
|
||||
config_hash: string;
|
||||
hostname: string;
|
||||
ipaddress: string;
|
||||
schema_version: string;
|
||||
}>;
|
||||
reload: (e: MouseEvent<HTMLButtonElement>) => void;
|
||||
}
|
||||
@@ -130,6 +131,7 @@ export default class ClusterTable extends PureComponent<Props> {
|
||||
<td style={style.clusterCell}>{versionMismatch} {clusterInfo.version}</td>
|
||||
<td style={style.clusterCell}><div className='config-hash'>{configMismatch} {clusterInfo.config_hash}</div></td>
|
||||
<td style={style.clusterCell}>{clusterInfo.ipaddress}</td>
|
||||
<td style={style.clusterCell}>{clusterInfo.schema_version}</td>
|
||||
</tr>
|
||||
);
|
||||
});
|
||||
@@ -185,6 +187,12 @@ export default class ClusterTable extends PureComponent<Props> {
|
||||
defaultMessage='Gossip Address'
|
||||
/>
|
||||
</th>
|
||||
<th>
|
||||
<FormattedMessage
|
||||
id='admin.cluster.status_table.schema_version'
|
||||
defaultMessage='DB Schema Version'
|
||||
/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -550,6 +550,7 @@
|
||||
"admin.cluster.status_table.config_hash": "Config File MD5",
|
||||
"admin.cluster.status_table.hostname": "Hostname",
|
||||
"admin.cluster.status_table.reload": " Reload Cluster Status",
|
||||
"admin.cluster.status_table.schema_version": "DB Schema Version",
|
||||
"admin.cluster.status_table.status": "Status",
|
||||
"admin.cluster.status_table.url": "Gossip Address",
|
||||
"admin.cluster.status_table.version": "Version",
|
||||
|
||||
@@ -70,6 +70,7 @@ export type ClusterInfo = {
|
||||
config_hash: string;
|
||||
ipaddress: string;
|
||||
hostname: string;
|
||||
schema_version: string;
|
||||
};
|
||||
|
||||
export type AnalyticsRow = {
|
||||
|
||||
Ссылка в новой задаче
Block a user