mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 21:39:26 +00:00
label_minor -> labelMinor, closer to all camelCase api
This commit is contained in:
@@ -66,7 +66,7 @@ function renderIdCell(props) {
|
||||
<div style={iconStyle}><i className="fa fa-square" /></div>
|
||||
<div className="truncate">
|
||||
{props.label} {showSubLabel &&
|
||||
<span className="nodes-grid-label-minor">{props.label_minor}</span>}
|
||||
<span className="nodes-grid-label-minor">{props.labelMinor}</span>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -54,7 +54,7 @@ const deltaAdd = (
|
||||
node_count: nodeCount,
|
||||
id: name,
|
||||
label: name,
|
||||
label_minor: name,
|
||||
labelMinor: name,
|
||||
latest: {},
|
||||
origins: [],
|
||||
rank: name,
|
||||
|
||||
@@ -18,7 +18,7 @@ class NodeDetailsTableNodeLink extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { label, label_minor: labelMinor, linkable } = this.props;
|
||||
const { label, labelMinor, linkable } = this.props;
|
||||
const title = !labelMinor ? label : `${label} (${labelMinor})`;
|
||||
|
||||
if (linkable) {
|
||||
|
||||
@@ -30,7 +30,7 @@ describe('RootReducer', () => {
|
||||
adjacency: ['n1', 'n2'],
|
||||
pseudo: undefined,
|
||||
label: undefined,
|
||||
label_minor: undefined,
|
||||
labelMinor: undefined,
|
||||
filtered: false,
|
||||
metrics: undefined,
|
||||
node_count: undefined,
|
||||
@@ -43,7 +43,7 @@ describe('RootReducer', () => {
|
||||
adjacency: undefined,
|
||||
pseudo: undefined,
|
||||
label: undefined,
|
||||
label_minor: undefined,
|
||||
labelMinor: undefined,
|
||||
filtered: false,
|
||||
metrics: undefined,
|
||||
node_count: undefined,
|
||||
|
||||
@@ -84,7 +84,7 @@ export const dataNodesSelector = createSelector(
|
||||
id,
|
||||
label: node.get('label'),
|
||||
pseudo: node.get('pseudo'),
|
||||
subLabel: node.get('label_minor'),
|
||||
subLabel: node.get('labelMinor'),
|
||||
nodeCount: node.get('node_count'),
|
||||
metrics: node.get('metrics'),
|
||||
rank: node.get('rank'),
|
||||
|
||||
@@ -6,7 +6,7 @@ import { slugify } from './string-utils';
|
||||
// topolevel search fields
|
||||
const SEARCH_FIELDS = makeMap({
|
||||
label: 'label',
|
||||
sublabel: 'label_minor'
|
||||
sublabel: 'labelMinor'
|
||||
});
|
||||
|
||||
const COMPARISONS = makeMap({
|
||||
|
||||
@@ -46,7 +46,7 @@ type Connection struct {
|
||||
ID string `json:"id"` // ID of this element in the UI. Must be unique for a given ConnectionsSummary.
|
||||
NodeID string `json:"nodeId"` // ID of a node in the topology. Optional, must be set if linkable is true.
|
||||
Label string `json:"label"`
|
||||
LabelMinor string `json:"label_minor,omitempty"`
|
||||
LabelMinor string `json:"labelMinor,omitempty"`
|
||||
Linkable bool `json:"linkable"`
|
||||
Metadata []report.MetadataRow `json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ type Column struct {
|
||||
type NodeSummary struct {
|
||||
ID string `json:"id"`
|
||||
Label string `json:"label"`
|
||||
LabelMinor string `json:"label_minor"`
|
||||
LabelMinor string `json:"labelMinor"`
|
||||
Rank string `json:"rank"`
|
||||
Shape string `json:"shape,omitempty"`
|
||||
Stack bool `json:"stack,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user