You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "Fine0830 (via GitHub)" <gi...@apache.org> on 2025/05/30 07:34:32 UTC

[PR] Fix: Add the prefix for http url [skywalking-booster-ui]

Fine0830 opened a new pull request, #471:
URL: https://github.com/apache/skywalking-booster-ui/pull/471

   According to the environment(development, production) to change the prefix of http url.
   
   Screenshot
   
   <img width="1333" alt="1" src="https://github.com/user-attachments/assets/236ef25e-b8d8-495b-978b-9d4dbf926220" />
   
   
   Signed-off-by: Qiuxia Fan <qi...@apache.org>
   wu


-- 
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] Fix: Add the prefix for http url [skywalking-booster-ui]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #471:
URL: https://github.com/apache/skywalking-booster-ui/pull/471#discussion_r2115316756


##########
src/views/settings/components/TTL.vue:
##########
@@ -31,7 +37,13 @@ limitations under the License. -->
       :row-style="{ backgroundColor: 'var(--layout-background)' }"
     >
       <el-table-column v-for="item in RecordsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
-        <template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
+        {{
+          settingsStore.configTTL?.records

Review Comment:
   The use of a nested ternary operator for the records block makes the code harder to maintain; refactor this into a dedicated function or computed property for clarity.



##########
src/views/settings/components/TTL.vue:
##########
@@ -21,7 +21,13 @@ limitations under the License. -->
       :row-style="{ backgroundColor: 'var(--layout-background)' }"
     >
       <el-table-column v-for="item in MetricsTTLRow" :prop="item.value" :label="item.label" :key="item.value">
-        <template #default="scope">{{ scope.row[item.value] < 0 ? "N/A" : scope.row[item.value] }}</template>
+        {{
+          settingsStore.configTTL?.metrics
+            ? settingsStore.configTTL.metrics[item.value] < 0
+              ? "N/A"
+              : (settingsStore.configTTL?.metrics ?? {})[item.value]
+            : "N/A"

Review Comment:
   The nested ternary operator used here reduces code readability; consider refactoring this logic into a computed property or helper function.
   ```suggestion
             getMetricsValue(item.value)
   ```



-- 
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] Fix: Add the prefix for http url [skywalking-booster-ui]

Posted by "Fine0830 (via GitHub)" <gi...@apache.org>.
Fine0830 merged PR #471:
URL: https://github.com/apache/skywalking-booster-ui/pull/471


-- 
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