Skip to content

Web console: refactor and improve the segment timeline (try 2)#17521

Merged
vogievetsky merged 6 commits intoapache:masterfrom
vogievetsky:segment_timeline2
Nov 28, 2024
Merged

Web console: refactor and improve the segment timeline (try 2)#17521
vogievetsky merged 6 commits intoapache:masterfrom
vogievetsky:segment_timeline2

Conversation

@vogievetsky
Copy link
Copy Markdown
Contributor

Reopening #17508 for review. The original PR was merged by mistake and was immediately reverted.

Make the segment timeline more interactive and not have it force bucketing the segments to day granularity.

After

image

Before

image

Also

  • Change from using @druid-toolkit/query to its renewed home of druid-query-toolkit
  • Remove depenancy on moment and moment-timezone, use @internationalized/date instead
  • Improve the timezone picker to always show the users timezone
  • Fix parsing and highlighting for expressions like + INTERVAL 5 MINUTES where the units are plural
  • Add UNNEST to auto complete suggetions
  • Add a convenient utility funtion of getApiArray and use it everywhere
  • Fix tooltips in table cells
  • Add less than (<) and greater than (>) filter modes for tables
  • Fix bug where: retention rule editor disapears every time the table refreshes
  • Add border to load rules in the load rule editor dialog to make it clearer
  • Made the recent task query panel only refresh when a task query is run (vs all queries)

Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤘

Comment thread web-console/src/components/segment-timeline/segment-bar-chart-render.tsx Outdated
export type RoundFn = (dt: Date, roundTo: number, tz: string) => Date;

export interface TimeShifterNoCeil {
canonicalLength: number;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should it be more obvious that this number is millis?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general in JS any number time related is assumed to be in ms unless stated otherwise

…render.tsx

Co-authored-by: Clint Wylie <cjwylie@gmail.com>
@vogievetsky vogievetsky merged commit ddbb985 into apache:master Nov 28, 2024
@vogievetsky vogievetsky deleted the segment_timeline2 branch November 28, 2024 03:30
@adarshsanjeev adarshsanjeev added this to the 32.0.0 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants