* WIP
* Use divs instead of background image URI
* Make cell resizer prettier
* Only show cell resizer on cell hover
* Make linter happy
* Redesign layout cell to adapt to single stat coloration and have spicy new aesthetic
* Guard against cellBackgroundColor getting set to null
* Add error boundary to cell header
* Polish
* Make custom time indicator more legible
* Update changelog
* Cleanup the code!
feat: refactor log viewer to progressively load and render logs
Logs are progressively tailed to a buffer every 5000ms
while live updating. This is easily customizable. After
30000ms, this tail buffer is flushed to the "backward"
logs. This buffer was introduced to avoid losing logs
newly written to the database. This could easily be
extended to be a rolling buffer to be even more robust.
Also adds an Upper and Lower timestamp in the UI to
indicate to the user what the current search space time
bounds are.
Also removes logs from local storage.
Also fixers awaiting retrieving namespaces in order to
perform subsequent ajax requests & dispatches.
Also renames various functions & vars for clarity,
corrects typos, and corrects capitalization according
to convention.
Also removes LIMIT on fetch older and newer.
Also replaces bounds stored in Redux with UTC time.
Additionally, all the following:
* Fix LogsTable scroll loading indicator
* Move constants out of logs page
* Update newer chunk to be 100
* Fix tailing when custom/relative set
* Update chunk sizes to 30sec
* Update to use shouldLiveUpdate getter
* Fix scrollToRow after fetchNewer
* Update to use clearTailInterval
* Update scrollTo middle of backward if no forward data
* Remove last/first query time logic from logsTable
* Removing the last/first query time logic fixed scrolling
not working after performing a search and then deleting
the filter.
* Replace undefined currentNewer w/ nextNewerLower
* Add missing source redirection
* Remove comment deleted Paused status
* Add await to notify when no results are found
* Update fetchNewer to avoid chunking far into the future
* Update nextNewerLowerBound onChooseRelative
* Update lower bound on custom selection
* Update no results loading status
* Add comments to clarify actions
* Update fetch until to check before fetch
* Fix linting errors
* Update CHANGELOG 1.7.0 fixes
* Update logs to go to Infinity
* use Date instead of moment for logs actions
* replace moment with Date where straightforward in LogsPage
* throw error from fetchEachAsync so consumers can handle it
* Fix infiniteTableData localStorage
* add minor todo for possible future tweak
* remove redundant error throw
* simplify a LogsPage use of Date
* move max tail buffer const next to tail chunk duration const for clarity
* clarify comments documenting logs actions and state
* run histogram & table query config requests in parallel
Co-authored-by: Delmer Reed <ofthedelmer@gmail.com>
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
* Refactor ExpandableMessage to use React Portals
* Display "Clear Filters" button when more than 3 filters are present
* Move logs truncation toggle from options overlay to filter bar
* Simplify styles and markup
Ensure that the ... truncation happens
Showing a "zoom in" cursor when log messages can be clicked
* Update changelog
* Remove rogue file
* Type props in constructor and remove unecessary condition
* Remove spaces
* Add isSaveable condition for flux query in CEO
* Save flux query to cell in CEO
* Use flux query in Dashboard cell
* Move script state to cellEditorOverlay reducer
* Update Changelog
* Remove feature flag for allowFlux
* Update Children components of DisplayOptions to use props instead of individually connecting to redux and CEO visualization actions updated in prep for DE Vis
* Update DataExplorer to have visualization options
* Update timeSeriesToDygraph to not treat data explorer differently from ceo
* Remove featureflag from vis options in DE
* Update failing tests and rename cellNote to Note
* Update columns for table graph if in ceo or de, but not in dashboard
* Update Changelog
* Remove unnecessary getters from DisplayOptions
* Clone cells as close as possible to source cell
* Remove comments
* Cleaner way to handle cell cloning
* WIP
* Increment clone number by 1 when cloning
* Update changelog
* Make linter happy
* Pass array of cell names into function instead of dashboard object
* Improve legibility of math expression
* Update Visualization to get props from parent and not redux
* Update DataExplorer to use TimeMachine component and function like CEO
* Change dataExplorer to use time range from under dataExplorer in redux
* Change order of template variables
* Move shared actions/thunks between CEO and DE into one shared actions file
* Update tests with new reducers
* Fix types for editQueryStatus
* Remove unused components
* Fix typo
* Add Flux script to dataExplorer
* Update dataexplorer to persist what type of source its using
* Fix failing tests
* Change DE to use autorefresh dropdown from TimeMachineControls
* Update ChangeLog
* Fix failing test
* Remove unnecessary comment
* Provide default data explorer state for flux features
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
* Add FluxQueryEditor to CEO and move funcs to utils
* Use util functions in FluxPage
* Rename links to fluxLinks in TimeMachine
* Update Changelog
* Replace props with fluxContext
* feat: add Note string field to dashboard cells
* wip feat: html escape cell note to help prevent XSS attack
Requires further input to make sure this is effective at its
purpose.
* Add ability to view a cell's note from the cell header
* Make styles less brittle
* Add "chat" icon for use in notes
* Position note using cell X & Y
Avoid overlap with associated cell whenever possible
* New notes are empty strings by default
* Overflow note when contents are large
* Add react-markdown package for displaying markdown
* Display markdown in cell note
* Add a cell note text editor into the CEO
* Improve cell note editor
* Use codemirror placeholder addon
* Add placeholder to note field & foundation of markdown theme
* Add Markdown Cell
* Add initial styles for markdown cell contents
* Add graphic for Note type cell
* feat: add NoteVisibility to DashboardCell
* Add basic markdown syntax highlighting in editor
* Remove comment
* Show note in cell when queries return no data
* Make exception for rule graph
* Update fixtures and resources to fix tests
* Update changelog
* feat: sanitize xss-vulnerable note html
* Polish appearance of code samples in notes and note cells
* Replace ascii with plaintext before passing to markdown renderers
* Move "display when no results toggle" above text field
Less likely to go undiscovered
Template variables used within regexes would not replace when the query
contained a '/' before the regex in the query (see test).
This commit rewrites the logic for replacing template variables within
regexes.