This is an automated email from the ASF dual-hosted git repository.

vogievetsky pushed a commit to branch segment_timeline2
in repository https://gitbox.apache.org/repos/asf/druid.git

commit 6278d3d2ff3dcddd94e0c393dff09616547014e2
Author: Vadim Ogievetsky <[email protected]>
AuthorDate: Fri Nov 8 13:09:20 2024 -0800

    fix
---
 .../src/components/segment-timeline/segment-bar-chart-render.scss  | 3 ++-
 .../src/components/segment-timeline/segment-bar-chart-render.tsx   | 7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/web-console/src/components/segment-timeline/segment-bar-chart-render.scss 
b/web-console/src/components/segment-timeline/segment-bar-chart-render.scss
index 75da5e4e666..de13ad4c123 100644
--- a/web-console/src/components/segment-timeline/segment-bar-chart-render.scss
+++ b/web-console/src/components/segment-timeline/segment-bar-chart-render.scss
@@ -105,8 +105,9 @@
     .load-rule {
       position: absolute;
       overflow: hidden;
-      border-radius: 3px;
       padding-left: 2px;
+      border-left: 1px solid $dark-gray2;
+      border-right: 1px solid $dark-gray2;
       top: 0;
       height: 100%;
       text-overflow: ellipsis;
diff --git 
a/web-console/src/components/segment-timeline/segment-bar-chart-render.tsx 
b/web-console/src/components/segment-timeline/segment-bar-chart-render.tsx
index 7ba310048c0..a397c619101 100644
--- a/web-console/src/components/segment-timeline/segment-bar-chart-render.tsx
+++ b/web-console/src/components/segment-timeline/segment-bar-chart-render.tsx
@@ -103,13 +103,18 @@ function loadRuleToDateRange(loadRule: Rule): 
NonNullDateRange {
 
     case 'loadByPeriod':
     case 'dropByPeriod':
-    case 'dropBeforeByPeriod':
     case 'broadcastByPeriod':
       return [
         new Duration(loadRule.period || 'P1D').shift(new Date(), TZ_UTC, -1),
         loadRule.includeFuture ? POSITIVE_INFINITY_DATE : new Date(),
       ];
 
+    case 'dropBeforeByPeriod':
+      return [
+        NEGATIVE_INFINITY_DATE,
+        new Duration(loadRule.period || 'P1D').shift(new Date(), TZ_UTC, -1),
+      ];
+
     default:
       return [NEGATIVE_INFINITY_DATE, POSITIVE_INFINITY_DATE];
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to