hanahmily closed pull request #172: Fixing Issue 
1231[https://github.com/apache/incubator-skywalking/issu…
URL: https://github.com/apache/incubator-skywalking-ui/pull/172
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/models/trace.js b/src/models/trace.js
index 131ff01..1ae7d0c 100644
--- a/src/models/trace.js
+++ b/src/models/trace.js
@@ -104,6 +104,8 @@ export default generateModal({
           return moment();
         },
       }),
+      traceState: 'ALL',
+      queryOrder: 'BY_START_TIME',
     },
   },
   optionsQuery,
diff --git a/src/routes/Trace/TraceSearch.js b/src/routes/Trace/TraceSearch.js
index 20e8c9a..17ac1d5 100644
--- a/src/routes/Trace/TraceSearch.js
+++ b/src/routes/Trace/TraceSearch.js
@@ -236,6 +236,23 @@ export default class Trace extends PureComponent {
             </Select>
           )}
         </FormItem>
+        <FormItem label="Trace State">
+          {getFieldDecorator('traceState')(
+            <Select placeholder="All" style={{ width: '100%' }}>
+              <Option key="success" value="SUCCESS">Success</Option>
+              <Option key="error" value="ERROR">Error</Option>
+              <Option key="all" value="ALL">All</Option>
+            </Select>
+          )}
+        </FormItem>
+        <FormItem label="Order By">
+          {getFieldDecorator('queryOrder')(
+            <Select placeholder="Start Time" style={{ width: '100%' }}>
+              <Option key="BY_START_TIME" value="BY_START_TIME">Start 
Time</Option>
+              <Option key="BY_DURATION" value="BY_DURATION">Duration</Option>
+            </Select>
+          )}
+        </FormItem>
         <FormItem label="OperationName">
           {getFieldDecorator('operationName')(
             <Input placeholder="eg Kafka/Trace-topic-1/Consumer" />


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to