Skip to content

Commit

Permalink
Merge branch 'master' into span-table
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvprabhakar authored Jun 23, 2021
2 parents be45bd3 + 96b532c commit 2b7a386
Show file tree
Hide file tree
Showing 23 changed files with 519 additions and 203 deletions.
18 changes: 0 additions & 18 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/issue_template.md

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build
# reports
coverage
.nyc_output
junit.xml

# misc
.DS_Store
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

### Fixes

## v1.14.0 (June 4, 2021)

### Enhancements

- Make search panel more compact, button more visible ([@meenal06](https://github.com/meenal06) in [#724](https://github.com/jaegertracing/jaeger-ui/pull/724))

### Fixes

- Add null check for span.logs in search/filter-spans ([@achesin](https://github.com/achesin) in [#734](https://github.com/jaegertracing/jaeger-ui/pull/734))
- Several updates to dependencies.

## v1.13.0 (February 20, 2021)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"resolutions": {
"**/cheerio/parse5": "4.0.0",
"**/fstream": "1.0.12",
"**/handlebars": "4.1.2",
"**/handlebars": "4.7.7",
"**/js-yaml": "3.13.1",
"**/lodash": "4.17.21",
"**/node-gyp/tar": "2.2.2",
Expand Down
9 changes: 7 additions & 2 deletions packages/jaeger-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "jaeger-ui",
"version": "1.13.0",
"version": "1.14.0",
"main": "src/index.js",
"license": "Apache-2.0",
"homepage": ".",
Expand All @@ -25,6 +25,7 @@
"enzyme-adapter-react-16": "^1.2.0",
"enzyme-to-json": "^3.3.0",
"http-proxy-middleware": "^0.19.1",
"jest-junit": "^10.0.0",
"less": "3.9.0",
"less-loader": "4.1.0",
"less-vars-to-js": "^1.2.1",
Expand Down Expand Up @@ -86,7 +87,7 @@
"react-icons": "2.2.7",
"react-metrics": "^2.3.2",
"react-redux": "^5.0.6",
"react-router-dom": "^4.3.1",
"react-router-dom": "^5.2.0",
"react-router-redux": "5.0.0-alpha.6",
"react-virtualized-select": "^3.1.0",
"react-vis": "^1.7.2",
Expand Down Expand Up @@ -121,6 +122,10 @@
"!src/utils/test/**/*.js",
"!src/demo/**/*.js",
"!src/types/*"
],
"reporters": [
"default",
"jest-junit"
]
},
"browserslist": [
Expand Down
7 changes: 3 additions & 4 deletions packages/jaeger-ui/src/components/App/TopNav.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,16 @@ describe('<TopNav>', () => {

describe('renders the default menu options', () => {
it('renders the "JAEGER UI" link', () => {
const items = wrapper.find(Link).findWhere(link => /JAEGER UI/.test(link.text()));
const items = wrapper.find(Link).findWhere(link => link.prop('to') === '/');
expect(items.length).toBe(1);
});

it('renders the "Search" button', () => {
const items = wrapper.find(Link).findWhere(link => /Search/.test(link.text()));
const items = wrapper.find(Link).findWhere(link => link.prop('to') === '/search');
expect(items.length).toBe(1);
});

it('renders the "System Architecture" button', () => {
const items = wrapper.find(Link).findWhere(link => /System Architecture/.test(link.text()));
const items = wrapper.find(Link).findWhere(link => link.prop('to') === '/dependencies');
expect(items.length).toBe(1);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,16 @@ exports[`JaegerUIApp does not explode 1`] = `
<Redirect
exact={true}
path="/"
push={false}
to="/search"
/>
<Redirect
exact={true}
path=""
push={false}
to="/search"
/>
<Redirect
exact={true}
path="/"
push={false}
to="/search"
/>
<Route
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import * as reactRouterDom from 'react-router-dom';

import { ROUTE_PATH, matches, getUrl, getUrlState, sanitizeUrlState } from './url';

jest.mock('react-router-dom', () => ({
matchPath: jest.fn(),
}));

describe('DeepDependencyGraph/url', () => {
describe('matches', () => {
const path = 'path argument';
Expand Down
4 changes: 4 additions & 0 deletions packages/jaeger-ui/src/components/QualityMetrics/url.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import * as reactRouterDom from 'react-router-dom';

import { ROUTE_PATH, matches, getUrl, getUrlState } from './url';

jest.mock('react-router-dom', () => ({
matchPath: jest.fn(),
}));

describe('TraceDiff/url', () => {
const lookback = 42;
const service = 'test-service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ limitations under the License.
margin-top: 0.5em;
}

.SearchForm--submit {
background-color: #11939a;
color: white;
float: right;
}

.SearchForm--tagsHintInfo {
padding-left: 1.7em;
}
Expand Down
93 changes: 57 additions & 36 deletions packages/jaeger-ui/src/components/SearchTracePage/SearchForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

import * as React from 'react';
import { Form, Input, Button, Popover, Select } from 'antd';
import { Form, Input, Button, Popover, Select, Row, Col } from 'antd';
import _get from 'lodash/get';
import logfmtParser from 'logfmt/lib/logfmt_parser';
import { stringify as logfmtStringify } from 'logfmt/lib/stringify';
Expand Down Expand Up @@ -377,14 +377,21 @@ export class SearchFormImpl extends React.PureComponent {
</div>
}
>
<Field
name="startDate"
type="date"
component={AdaptedInput}
placeholder="Start Date"
props={{ disabled }}
/>
<Field name="startDateTime" type="time" component={AdaptedInput} props={{ disabled }} />
<Row gutter={16}>
<Col className="gutter-row" span={12}>
<Field
name="startDate"
type="date"
component={AdaptedInput}
placeholder="Start Date"
props={{ disabled }}
/>
</Col>

<Col className="gutter-row" span={12}>
<Field name="startDateTime" type="time" component={AdaptedInput} props={{ disabled }} />
</Col>
</Row>
</FormItem>,

<FormItem
Expand All @@ -406,36 +413,49 @@ export class SearchFormImpl extends React.PureComponent {
</div>
}
>
<Field
name="endDate"
type="date"
component={AdaptedInput}
placeholder="End Date"
props={{ disabled }}
/>
<Field name="endDateTime" type="time" component={AdaptedInput} props={{ disabled }} />
<Row gutter={16}>
<Col className="gutter-row" span={12}>
<Field
name="endDate"
type="date"
component={AdaptedInput}
placeholder="End Date"
props={{ disabled }}
/>
</Col>

<Col className="gutter-row" span={12}>
<Field name="endDateTime" type="time" component={AdaptedInput} props={{ disabled }} />
</Col>
</Row>
</FormItem>,
]}

<FormItem label="Min Duration">
<Field
name="minDuration"
component={ValidatedAdaptedInput}
placeholder={placeholderDurationFields}
props={{ disabled }}
validate={validateDurationFields}
/>
</FormItem>

<FormItem label="Max Duration">
<Field
name="maxDuration"
component={ValidatedAdaptedInput}
placeholder={placeholderDurationFields}
props={{ disabled }}
validate={validateDurationFields}
/>
</FormItem>
<Row gutter={16}>
<Col className="gutter-row" span={12}>
<FormItem label="Max Duration">
<Field
name="maxDuration"
component={ValidatedAdaptedInput}
placeholder={placeholderDurationFields}
props={{ disabled }}
validate={validateDurationFields}
/>
</FormItem>
</Col>

<Col className="gutter-row" span={12}>
<FormItem label="Min Duration">
<Field
name="minDuration"
component={ValidatedAdaptedInput}
placeholder={placeholderDurationFields}
props={{ disabled }}
validate={validateDurationFields}
/>
</FormItem>
</Col>
</Row>

<FormItem label="Limit Results">
<Field
Expand All @@ -449,6 +469,7 @@ export class SearchFormImpl extends React.PureComponent {

<Button
htmlType="submit"
className="SearchForm--submit"
disabled={disabled || noSelectedService || invalid}
data-test={markers.SUBMIT_BTN}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ exports[`DiffSelection renders multiple traces as expected 1`] = `
className="DiffSelection--message"
>
<Link
replace={false}
to="/trace/trace-id-0...trace-id-1?cohort=trace-id-0&cohort=trace-id-1"
>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ exports[`ResultItemTitle renders as expected 1`] = `
/>
<Link
className="ResultItemTitle--item ub-flex-auto"
replace={false}
to="linkToValue"
>
<span
Expand Down
4 changes: 4 additions & 0 deletions packages/jaeger-ui/src/components/SearchTracePage/url.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import * as reactRouterDom from 'react-router-dom';
import { MAX_LENGTH } from '../DeepDependencies/Graph/DdgNodeContent/constants';
import { ROUTE_PATH, getUrl, getUrlState, isSameQuery, matches } from './url';

jest.mock('react-router-dom', () => ({
matchPath: jest.fn(),
}));

describe('SearchTracePage/url', () => {
const span0 = 'span-0';
const span1 = 'span-1';
Expand Down
4 changes: 4 additions & 0 deletions packages/jaeger-ui/src/components/TraceDiff/url.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import * as reactRouterDom from 'react-router-dom';

import { ROUTE_PATH, matches, getUrl } from './url';

jest.mock('react-router-dom', () => ({
matchPath: jest.fn(),
}));

describe('TraceDiff/url', () => {
describe('matches', () => {
const path = 'path argument';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,24 @@ exports[`AltViewOptions renders correctly 1`] = `
</a>
</MenuItem>
<MenuItem>
<Link
<ForwardRef
onClick={[MockFunction]}
rel="noopener noreferrer"
replace={false}
target="_blank"
to="/api/traces/test trace ID?prettyPrint=true"
>
Trace JSON
</Link>
</ForwardRef>
</MenuItem>
<MenuItem>
<Link
<ForwardRef
onClick={[MockFunction]}
rel="noopener noreferrer"
replace={false}
target="_blank"
to="/api/traces/test trace ID?raw=true&prettyPrint=true"
>
Trace JSON (unadjusted)
</Link>
</ForwardRef>
</MenuItem>
</Menu>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jaeger-ui/src/constants/default-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default deepFreeze(
},
{
label: 'Online Chat',
url: 'https://gitter.im/jaegertracing/Lobby',
url: 'https://cloud-native.slack.com/archives/CGG7NFUJ3',
},
{
label: 'GitHub',
Expand Down
Loading

0 comments on commit 2b7a386

Please sign in to comment.