...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents
Goals:
- Improve operability in the Hydrator Studio (Improvements to logs, metrics, debuggability)
- Improve usability in the Hydrator Studio (Redesign of bottom panel, etc)
Checklist
- User stories documented (Bhooshan)
- User stories reviewed (Nitin/Jon)
- Design documented (Bhooshan/Brady)
- Design reviewed (Nitin/Jon)
- Implementation review (Bhooshan)
Use Cases:
Use Case 1: Improve Log Viewer
Problems with current Log Viewer:
...
- Timeline:
- Starts at the program/service start time. Ends at the program/service end time (past) or current.
- Time range indicated by two sliders on each side. Time range can be selected by sliding these sliders.
- Updating slider position causes a refresh of the log viewer to show logs in the selected range with the selected filters
- If program/service is still running, the right/bottom end of the slider indicates current time, and if the slider is at this position, logs are updated live. The timeline keeps updating to reflect that.
- Sliders must not cross each other
- Label on the selected time range indicates the selected time range
- The timeline is marked with time range with granularity that depends on the duration of the log (which is the duration of the program run).
- In the selected (or default time range), there should be symbols on the time line for the errors and warnings, as well as for events that match the filter in the search box. Clicking on such a symbol should navigate you to the corresponding event in the table. The graph may look like so:
- Filters:
- Filter by lowest log level:
- If ERROR is selected, then we show only ERROR
- If WARN is selected, then we show ERROR and WARN
- If INFO is selected, then we show ERROR, WARN and INFO
- If DEBUG is selected, then we show ERROR, WARN, INFO and DEBUG
- If TRACE is selected, then we show ERROR, WARN, INFO, DEBUG and TRACE
- Filter by search keywords:
- Search box that filters logs by the search text.
- This is a simple filter that applies on the message column
- Filter by lowest log level:
- Log viewer Table:
- Columns:
- Timestamp
- Lowest Log Level
- Source - Only in CDAP - This column should not be shown in Hydrator
- Message (also contains stack trace).
- Default view shows single line messages, with / buttons to expand individual messages if they have more content
- Ability to suppress/show stack trace with a similar / buttons.
- Ability to expand all messages
- Ability to only view the message column
- Columns:
- Top Bar:
- Shows information/summary of the log
- Indicates program/service name
- Summary of total messages with number of warnings and errors
- Download button to download entire log
- Search box for filtering.
Required Backend support:
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
Use Case 2: Bottom Panel
Problems with bottom panel:
...
- Make DAG the hero
- Not have widgets that occupy real-estate but only show messages like "No XXX for this XXX"
- Not occupy real-estate statically with capabilities that are add-ons but not requirements for creating pipelines
- Support incremental pipeline development:
- Basics first: Configure nodes and get the pipeline working
- Add-ons later: Adding a schedule, adding post-run actions, etc
- Clearly demarcate Studio/Detail page into two sections:
- Canvas: Has the DAG, and capabilities to modify/view/update/reference node level information
- Pipeline section: Configure/update/view pipeline level information
- Canvas occupies majority real-estate by default. If you want to view/modify pipeline details, that reduces canvas size
- For pipeline section, there are two views for most capabilities:
- Compact view: Shows the selected pipeline capability (logs, metrics, pipeline configuration) in a smaller drawer, but also shows the canvas (and the DAG).
- Full-screen view: Hides the canvas, and only contains the header, footer and the selected capability.
- Switching between these two views is supported
- Reduce the disparity between the pipeline details view and the studio
- This will help to add the capability to edit a pipeline after publishing
Use Case 3: Debuggability/Testing/Preview
User Stories:
- As a Hydrator user, I want to preview my pipeline with a specified set of input records fetched directly from the source for validating my pipeline configuration and behavior before I publish the pipeline.
- (Advanced) As a Hydrator user, I want to be able to save snapshots of data previously fetched during preview, and use them later, so I don't have to connect to the source every time I want to preview my pipeline.
- As a Hydrator user, I want to test individual plugins in my pipeline by sending in sample input records and viewing the resultant output.
- (Advanced) As a Hydrator user, I want to be able to smoke test my pipeline from the UI
- Provided with a golden set of input and output, the pipeline should be able to validate itself
- (Advanced) As a Hydrator user, I want to be able to smoke test a single plugin from the UI
- Provided with a golden set of input and output, the plugin should be able to validate itself
- (Advanced) As a Hydrator user, I want to be able to store smoke test data for later use
- As a Hydrator user, I want to be able to validate my pipeline more effectively
- If clicking on a 'Validate' button returns successful, then publishing the pipeline should not fail.
Design:
Use Case 4: Complex schema management
User Stories:
- As a Hydrator user, I want to be able to set complex schemas for my pipeline
- I would like to have fields with enum, array, map, record and union types and would like an efficient method to create/manage them from the UI
- As a Hydrator user, I would like to be able to view complex schemas for my pipeline
...
- Use tabs with customized expansions for complex fields.
- Simple types string, int, long, float, double, boolean, bytes can be defined as today
- Enum: When an enum is selected, the field name becomes clickable. Expansion allows you to enter enum values.
- Array: When an array is selected, the field name becomes clickable. Expansion accepts a data type (which in turn could be a complex type as well, in which case the same flow rules defined here would apply).
- Map: When a map is selected, the field name becomes clickable. Expansion accepts a key type and a value type.
- Record: When a record is selected, the field name becomes clickable. Expansion allows you to specify a nested record
- Union: When a union is selected, the field name becomes clickable. On clicking, you can add schemas. Each schema is of type record.
- For viewing, main screen only shows first level (string, int, long, float, double, boolean, bytes, enum, array, map, record and union) data types. For complex types, field names are clickable, and expand to read-only views of the expansions described above.
Scratch Pad:
Work Streams:
Tech Debt
- Simplify Config Store
- Simplify DAG component ~ Ajai's hack
...