You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "Sylvie-Wxr (via GitHub)" <gi...@apache.org> on 2024/03/05 07:25:10 UTC

[PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Sylvie-Wxr opened a new pull request, #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397

   ### <Feature description>
   - [ ] If this is non-trivial feature, paste the links/URLs to the design doc.
   - [ ] Update the documentation to include this new feature.
   - [ ] Tests(including UT, IT, E2E) are added to verify the new feature.
   - [x] If it's UI related, attach the screenshots below.
   - [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Fixes apache/skywalking#11973.
   - [ ] Update the [`CHANGES` log](https://github.com/apache/skywalking-banyandb/blob/main/CHANGES.md).
   
   ### Feature Description: 
   - When selecting a stream or measure, the time range with be auto set to last 15 minutes.  
   ![image](https://github.com/apache/skywalking-banyandb/assets/129717259/91954195-9644-4a41-8748-04027f184b13)
   
   - After the user click search, the time range will be reset to last 15 minutes, unless the user has manually selected other time intervals (last week, last month, last 3 months). 
   ![image](https://github.com/apache/skywalking-banyandb/assets/129717259/2a594c6b-1585-47a3-b021-0cf7b30ee988)
   
   ### Video Demo 
   
   https://github.com/apache/skywalking-banyandb/assets/129717259/5ee28566-e296-4f05-890b-be3fdb6a7057
   
   ### Implementation Explannation:
   1. Added ` :key="$route.path"` in `RouterView` to trigger an router-view reinitialization everytime an read editor is selected.  
   2. Fix code bug in `initCode` function where the startTime is set wrongly to -15 microseconds. 
   3. Remove redundant logic `isDatePicker`. This boolean flag is no longer necessary after the default 15 mins logic has been implemented correctly. 
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513851766


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {
-        let json = yamlToJson(data.code)
-        const begin = new Date()
-        const end = new Date()
-        const oldBeginDate = new Date(json.data.timeRange.begin)
-        const oldEndDate = new Date(json.data.timeRange.end)
-        const interval = oldEndDate.getTime() - oldBeginDate.getTime()
+    let json = yamlToJson(data.code)
+    const begin = new Date()
+    const end = new Date()
+    const oldBeginDate = new Date(json.data.timeRange.begin)
+    const oldEndDate = new Date(json.data.timeRange.end)
+    const interval = oldEndDate.getTime() - oldBeginDate.getTime()
         
-        if (interval === last15Minutes.value) {
-            begin.setTime(begin.getTime() - last15Minutes.value)
-        } else if (interval === lastWeek.value) {
-            begin.setTime(begin.getTime() - lastWeek.value)
-        } else if (interval === lastMonth.value) {
-            begin.setTime(begin.getTime() - lastMonth.value)
-        } else if (interval === last3Months.value) {
-            begin.setTime(begin.getTime() - last3Months.value)
-        }
-        json.data.timeRange.begin = begin.toISOString()
-        json.data.timeRange.end = end.toISOString()
-        data.code = jsonToYaml(json.data).data
+    if (interval === last15Minutes) {
+        begin.setTime(begin.getTime() - last15Minutes)
+    } else if (interval === lastWeek) {
+        begin.setTime(begin.getTime() - lastWeek)
+    } else if (interval === lastMonth) {
+        begin.setTime(begin.getTime() - lastMonth)
+    } else if (interval === last3Months) {
+        begin.setTime(begin.getTime() - last3Months)

Review Comment:
   There is a bug here
   
   The "last xx" dynamic time range type cannot be determined by the interval. If a user selects a fixed time range such as "last 15 minutes", the component will not update the time range upon clicking the search button.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [UI] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily merged PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513674714


##########
ui/src/components/Read/index.vue:
##########
@@ -197,11 +195,10 @@ function initCode() {
     } else {
         let timeRange = {
             timeRange: {
-                begin: new Date(new Date() - 15),
+                begin: new Date(new Date() - 15 * 60 * 1000),

Review Comment:
   The "ref" here means reactive reference. When the value of the ref changes, any Vue components that depend on this value will automatically re-render to reflect the new value. 
   
   I think we should not use "ref" here for these time variables (last15Minutes, lastMonth, ...).  
   We should just change to `const last15Minutes = 900 * 1000`, and reuse them. 



##########
ui/src/components/Read/index.vue:
##########
@@ -197,11 +195,10 @@ function initCode() {
     } else {
         let timeRange = {
             timeRange: {
-                begin: new Date(new Date() - 15),
+                begin: new Date(new Date() - 15 * 60 * 1000),

Review Comment:
   The "ref" here means reactive reference. When the value of the ref changes, any Vue components that depend on this value will automatically re-render to reflect the new value. 
   
   I think we should not use "ref" here for these time variables (last15Minutes, lastMonth, ...).  
   We should just change to `const last15Minutes = 900 * 1000`, and reuse it. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513682084


##########
ui/src/components/Read/index.vue:
##########
@@ -197,11 +195,10 @@ function initCode() {
     } else {
         let timeRange = {
             timeRange: {
-                begin: new Date(new Date() - 15),
+                begin: new Date(new Date() - 15 * 60 * 1000),

Review Comment:
   Changed accordingly. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513662402


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   Based on these 4 cases, I am unsure why do we need a boolean flag, autoRefreshTimeRange() is only called after the user click "🔍".  
   Before my changes, “isDatePicker” is set to true only after the user manually selects a time range. 
   
   So, after my changes, the logic is like this: 
   
   ### the use did not select anything, or "last 15 minutes" is selected.
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates have been updated to last 15 minutes of current time. 
   If user click "↻", the dates remain unchanged.
   
   ### A fixed time range is selected (last week, last month, last 3 months) 
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates have been updated to the last selected time range of current time. 
   If user click "↻", the dates remain unchanged.
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513662402


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   Based on these 4 cases, I am unsure why do we need a boolean flag, autoRefreshTimeRange() is only called after the user click "🔍".  
   “isDatePicker” is set to true only after the user manually selects a time range. 
   “isDatePicker” is set to false after the user clicks on the code. 
   
   So, after my changes, the logic is like this: 
   ### the use did not select anything, or "last 15 minutes" is selected.
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates will be updated to last 15 minutes of current time. 
   If user click "↻", the dates remain unchanged.
   
   ### A fixed time range is selected (last week, last month, last 3 months) 
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates will be updated to the last selected time range of current time. 
   If user click "↻", the dates remain unchanged.
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#issuecomment-1978173340

   ## [Codecov](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/397?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 48.28%. Comparing base [(`2ded410`)](https://app.codecov.io/gh/apache/skywalking-banyandb/commit/2ded410158c95e809d95f34db09f4b82f81fbcf3?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`45a9353`)](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/397?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             main     #397      +/-   ##
   ==========================================
   - Coverage   48.30%   48.28%   -0.03%     
   ==========================================
     Files         173      173              
     Lines       21573    21573              
   ==========================================
   - Hits        10421    10416       -5     
   - Misses      10278    10281       +3     
   - Partials      874      876       +2     
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/397?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513940477


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   Changed accordingly and upated the description. Please verify the new video demo. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513940806


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {
-        let json = yamlToJson(data.code)
-        const begin = new Date()
-        const end = new Date()
-        const oldBeginDate = new Date(json.data.timeRange.begin)
-        const oldEndDate = new Date(json.data.timeRange.end)
-        const interval = oldEndDate.getTime() - oldBeginDate.getTime()
+    let json = yamlToJson(data.code)
+    const begin = new Date()
+    const end = new Date()
+    const oldBeginDate = new Date(json.data.timeRange.begin)
+    const oldEndDate = new Date(json.data.timeRange.end)
+    const interval = oldEndDate.getTime() - oldBeginDate.getTime()
         
-        if (interval === last15Minutes.value) {
-            begin.setTime(begin.getTime() - last15Minutes.value)
-        } else if (interval === lastWeek.value) {
-            begin.setTime(begin.getTime() - lastWeek.value)
-        } else if (interval === lastMonth.value) {
-            begin.setTime(begin.getTime() - lastMonth.value)
-        } else if (interval === last3Months.value) {
-            begin.setTime(begin.getTime() - last3Months.value)
-        }
-        json.data.timeRange.begin = begin.toISOString()
-        json.data.timeRange.end = end.toISOString()
-        data.code = jsonToYaml(json.data).data
+    if (interval === last15Minutes) {
+        begin.setTime(begin.getTime() - last15Minutes)
+    } else if (interval === lastWeek) {
+        begin.setTime(begin.getTime() - lastWeek)
+    } else if (interval === lastMonth) {
+        begin.setTime(begin.getTime() - lastMonth)
+    } else if (interval === last3Months) {
+        begin.setTime(begin.getTime() - last3Months)

Review Comment:
   Removed these code. Please verify the new video demo. Thanks a lot. 



##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   Changed accordingly and upated the description. Please verify the new video demo. Thanks a lot. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513940806


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {
-        let json = yamlToJson(data.code)
-        const begin = new Date()
-        const end = new Date()
-        const oldBeginDate = new Date(json.data.timeRange.begin)
-        const oldEndDate = new Date(json.data.timeRange.end)
-        const interval = oldEndDate.getTime() - oldBeginDate.getTime()
+    let json = yamlToJson(data.code)
+    const begin = new Date()
+    const end = new Date()
+    const oldBeginDate = new Date(json.data.timeRange.begin)
+    const oldEndDate = new Date(json.data.timeRange.end)
+    const interval = oldEndDate.getTime() - oldBeginDate.getTime()
         
-        if (interval === last15Minutes.value) {
-            begin.setTime(begin.getTime() - last15Minutes.value)
-        } else if (interval === lastWeek.value) {
-            begin.setTime(begin.getTime() - lastWeek.value)
-        } else if (interval === lastMonth.value) {
-            begin.setTime(begin.getTime() - lastMonth.value)
-        } else if (interval === last3Months.value) {
-            begin.setTime(begin.getTime() - last3Months.value)
-        }
-        json.data.timeRange.begin = begin.toISOString()
-        json.data.timeRange.end = end.toISOString()
-        data.code = jsonToYaml(json.data).data
+    if (interval === last15Minutes) {
+        begin.setTime(begin.getTime() - last15Minutes)
+    } else if (interval === lastWeek) {
+        begin.setTime(begin.getTime() - lastWeek)
+    } else if (interval === lastMonth) {
+        begin.setTime(begin.getTime() - lastMonth)
+    } else if (interval === last3Months) {
+        begin.setTime(begin.getTime() - last3Months)

Review Comment:
   Removed these code. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513646894


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   This variable is still useful, but the original version still has some flaws. Let me clarify the logic.
   
   ### "last 15 minutes" is selected. 
   1. If user click "🔍" , both the start and end dates have been updated to reflect the current time.
   2. If user click "↻", the dates remain unchanged.
   
   ### A fixed time range is selected 
   1. If user click "🔍" , the dates remain unchanged.
   2. If user click "↻", the dates remain unchanged.
   
   Based on the four cases mentioned above, it appears that "autoRefreshTimeRange" feature has limited functionality and works only in one scenario.
   



##########
ui/src/components/Read/index.vue:
##########
@@ -197,11 +195,10 @@ function initCode() {
     } else {
         let timeRange = {
             timeRange: {
-                begin: new Date(new Date() - 15),
+                begin: new Date(new Date() - 15 * 60 * 1000),

Review Comment:
   This is a good find.
   
   Since we have a constant variable named 'last15Minutes' defined at line 35, would it be possible to reuse it instead of generating it repeatedly? I understand that this constant is a "ref", but it would be better to use a numeric constant instead and refer to it in the two places it is used.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513662402


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   Based on these 4 cases, I am unsure why do we need a boolean flag, autoRefreshTimeRange() is only called after the user click "🔍".  
   “isDatePicker” is set to true only after the user manually selects a time range. 
   “isDatePicker” is set to false after the user clicks on the code. 
   
   So, after my changes, the logic is like this: 
   ### the use did not select anything, or "last 15 minutes" is selected.
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates have been updated to last 15 minutes of current time. 
   If user click "↻", the dates remain unchanged.
   
   ### A fixed time range is selected (last week, last month, last 3 months) 
   If user click "🔍" , autoRefreshTimeRange() is triggered, both the start and end dates have been updated to the last selected time range of current time. 
   If user click "↻", the dates remain unchanged.
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "Sylvie-Wxr (via GitHub)" <gi...@apache.org>.
Sylvie-Wxr commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513674714


##########
ui/src/components/Read/index.vue:
##########
@@ -197,11 +195,10 @@ function initCode() {
     } else {
         let timeRange = {
             timeRange: {
-                begin: new Date(new Date() - 15),
+                begin: new Date(new Date() - 15 * 60 * 1000),

Review Comment:
   The "ref" here means reactive reference. When the value of the ref changes, any Vue components that depend on this value will automatically re-render to reflect the new value. 
   
   I think we should not use "ref" here for these time variables (last15Minutes, lastMonth, ...).  
   We should just change to `const last15Minutes = 900 * 1000`. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Default Time Range for Querying Data to Last 15 Minutes. [skywalking-banyandb]

Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily commented on code in PR #397:
URL: https://github.com/apache/skywalking-banyandb/pull/397#discussion_r1513849135


##########
ui/src/components/Read/index.vue:
##########
@@ -347,27 +344,25 @@ function handleCodeData() {
     getTableData()
 }
 function autoRefreshTimeRange() {
-    if (isDatePicker.value) {

Review Comment:
   If a fixed time range is selected, the start and end should remain unchanged whenever you click "🔍" or "↻". That's why you have to use a variable to mark this status.
   
   The fixed time range allows users to select specific data within a certain time range without having to change the time when clicking searching or refreshing buttons.
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org