-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataProvider #779
Merged
Merged
DataProvider #779
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adrianmroz-allegro
force-pushed
the
feature/data-fetcher
branch
from
June 22, 2021 11:02
ec669ac
to
eb1dbef
Compare
5 tasks
src/client/visualizations/table/interactions/interaction-controller.tsx
Outdated
Show resolved
Hide resolved
@@ -103,7 +95,7 @@ export class BaseVisualization<S extends BaseVisualizationState> extends React.C | |||
} | |||
|
|||
protected getQuery(essence: Essence, timekeeper: Timekeeper): Expression { | |||
return makeQuery(essence, timekeeper); | |||
return essence.visualization.name === "grid" ? gridQuery(essence, timekeeper) : visualizationQuery(essence, timekeeper); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be resolved in #733 section 3
piter75
approved these changes
Jun 24, 2021
rathko
added a commit
to skimhub/turnilo
that referenced
this pull request
Jan 8, 2024
* Use POSIX locale identifier (allegro#749) * Release 1.32.0-beta.2 * add locale doscs (allegro#750) * Add OAuth docs (allegro#752) * Add OAuth docs * Typos and stuff * Return default locale if passed unrecognized locale identifier (allegro#753) * Return default locale if passed unrecognized locale identifier * Better messaging for locale fallback. * Promoted values in StringValuesList (allegro#754) * Show already selected values in StringFilterMenu at the top of the list. These values are also filtered with search text field. Remove unnecessary limit prop in StringValuesList. Parent already limits it's query. * Add `downlevelIteration` to mocha ts-node config so it can still compile code with target es5 * Release 1.32.0-beta.3 * Bump node-sass dependency (allegro#760) * Remove incorrect output type from 400 response on /plyql to prevent xss attack (allegro#759) * Release 1.32.0 * Sources refactor (allegro#764) * Refactor DataCube * Clear code a bit * Refactor Dimensions * Simplify DataCube types * Remove few TODOs * essene tests * Fix tests * Bunch of tests * Measures refactor * Add few datasets (allegro#769) * Fix typo (allegro#770) * Feature/custom limits (allegro#758) * Dimension has now limits property * Handle limits property in url decoders * Hardcode small limit in resolvers. To be fixed in allegro#756 * Use limits in Split menu * Name expression for brevity * Filter early faulty definitions in view definition converter * Custom TimeShift periods and Latest periods in Time Dimension Filter (allegro#765) * Custom TimeShift periods and Latest periods in Time Dimension Filter * Fix e2e tests * Test normalizeDurationName and solve few edge cases with regular expressions, sic! * Move scroll state to specific visualisations (allegro#775) * Remove old and unused code (allegro#776) * Extract highlight management into HighlightController and use it for all Vizualisations (allegro#777) * DataProvider (allegro#779) * Extract data fetching for visualisation into DataProvider component * Move Highlight class * Remove BaseVisualization * Extract ScrolledTable and Interaction controller for Table * Change class selectors in e2e tests * Rename callbacks for brevity * Unused import. File do not use jsx. * Partial Tiles (allegro#780) * Simpler factories for DragPosition * Better API for checking if we have filter on dimension * PartialTilesProvider for keeping state of partial tiles and providing accessors and setters. Bunch of renames follows. * getIndex helper for DragPosition * Fix typo - turnilo should check filters, not splits when adding new filter. * Drop Placeholder data type and use PartialSeries. * Refactor FilterTiles just like SeriesTiles. * FilterTilesRow is responsible for handling interactions (mostly drag'n' drop) and decorating callbacks from PartialTileProvider * FilterTiles just renders correct tiles. It handles overflow Tile and possible PartialFilter * FilterTile and PartialTilerTile are just visual components. They use WithRef to correctly render Menus below. * FilterMenus do not use clicker directly but accept saveClause callback. That also simplifies some logic in validation - no need to check whole filter, just current clause. Caveat: TimeFilterMenu still uses Clicker to change time shift. Something to improve in the future. * Use new FilterTilesRow * Due to correct calculation of maxItems, all tiles from spec fit into row, so we should not to look for overflow tile. * Bunch of small code review fixes. * Release 1.33.0-beta.0 * Fix check for `isPartialFilterInOverflow`. Previously code checked clauses and it is impossible to have partial clause. There are only partial items. (allegro#783) * Release 1.33.0-beta.1 * Feature/show extended description in info bubble (allegro#788) * Fix type: extendedDescription can be undefined * Concatenate description in InfoBubble and pass it from CubeHeaderBar * Add some spacing for paragraphs. * Release 1.33.0-beta.2 * First check if new NumberClause exist and then compare it to old one. (allegro#792) * Add title attribute to all Tiles (allegro#791) Small refactor for FilterTile. Label is defined as a component for brevity. * Fix old Barchart component (allegro#793) * Set height to enforce Scroller to render in available space. * Previously new data caused change of props in existing component. Now, barchart is recreated from scratch. So work done in lifecycle componentWillReceiveProps` can be done inside field initializer. Method rename for brevity. * Accept Splits as sources for drop on Filter Row and vice versa. (allegro#790) Implement canDrop's as total switches on dragging element type. * Add file names for exported files (allegro#794) * DateTime formatter for url-safe output * Helper for generating file name based on source name and dates from time filter * Set file names for exported files * Release 1.33.0-beta.3 * downloadable dataset context (allegro#795) * Context for keeping dataset for download. * Fix imports * Use DownloadableDatasetContext for setting dataset in data-provider and retrieving it in share menu. Remove old code. * Generate tabular options when downloading, not when saving dataset. * Remove unused interface * Unroll type expression to interface. * Grid requires series (allegro#797) * Splits and DataCube are required action variables for visualization dependent evaluator. It's impossible to have visualization without data cube, and we always create splits object, even if empty. * Check for any series in grid manifest, because we need one for sorting Grid can't use dimension sorts because it uses group-by query. * Release 1.33.0-beta.4 * Central panel (allegro#796) * Introduce CenterPanel component * CenterPanel refactors * Divide into components * CenterPanel handles creating stage based on DOM rectangle * Pass component for visualization * Some type machinery * Define CenterStage for all menus inside CenterPanel based on bounding rect of div rendered in CubeView. * CenterPanel does not have any responsibilities, so all Visualizations just call CenterTopBar and CenterMain explicitly. * Big bunch of renames * Quick fix for chart stage. More work expected in allegro#799 * Grid 1.0 (allegro#804) * Add VisualizationControls and use it in Grid component. * Parametrize DataProvider with query factory function (allegro#802) * Parametrize DataProvider with query factory function * SplitMenuBase * Split controls for Grid * Use real limits in grid queries * Fix key on React.Fragment for efficient array diff Rename commonSort prop to sort. * Remove "sort by each dimension" feature on table * Flatten props on split header components. * Add 10 000 limit for grid * Show sort indicator on split columns * mainSplit util for grid - it selects split where are defined sort and limit * Split grid into visual component and interaction controller. * Bump axios from 0.21.1 to 0.21.2 (allegro#798) Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2. --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * lift segment width (allegro#806) * Remove dragging state from ResizeHandle - it was unused. * Use actual styles for calculating chart stage * Use stage instead of reference to get dimensions of chart. * withProps Higher Order Component for injecting additional properties into component * Lift segmentWidth into Table/Grid Visualisation instead of Chart. This is done because Chart is often unmounted due to loading states of DataProvider and we need to persist segmentWidth state between data loads * Fix splits in resolvers (allegro#807) * Helpers for fixing split's limit and sort * Fix splits in all resolvers * Default limit for color split is the number of available colors. * Time split limits should preserve null. Also bunch of renames * Add tests and fix some typos. * Remove beta notice from grid ui (allegro#808) * Release 1.33.0-beta.5 * Total on grid (allegro#809) * Flatten query results for grid * Flattened splits now accepts splitLabel component. Collapsed Table passes FlattenedSplitColumns but Grid defines it's own component. Grid SplitLabels checks if row is a Total and returns one label "Total" * MeasureRows now accepts prop with predicate that based on row datum decides if row should show measure bar. * Use NESTING_NAME constant in isTotalDatum * Unify getScalesForColumns between table and grid. Internal filtering logic is taken outside - visualization just provide different datum arrays. * Release 1.33.0-beta.6 * Promote Grid Visualization (allegro#811) * It will be presented before Table in VizSelector * It will have precendence over Table in VizResolvers * Release 1.33.0-beta.7 * Release 1.33.0 * BarChart: Check if there is a series under cursor. (allegro#814) * Refactor time monitor (allegro#815) * Remove old code * Add helper for maxTime for data cube * Encapsulate logic inside time monitor and remove creating max time query from settings manager * Fix typo in Query Decorator example in docs (allegro#816) * Provide correct iterable for Promise.all allegro#817 (allegro#818) Co-authored-by: Wojciech Meler <wojciech.meler@grupawp.pl> * Time monitor failure handling (allegro#819) * Rename updated field to lastTimeChecked in TimeTag * Remove unused special field in TimeTag * Update time tag with old value in case of error, to reflect lastTimeCheck value * Add prefix for TimeMonitor logger * Don't use special field of TimeTag in Timekeeper * Bump marked from 0.7.0 to 4.0.10 (allegro#822) Bumps [marked](https://github.com/markedjs/marked) from 0.7.0 to 4.0.10. - [Release notes](https://github.com/markedjs/marked/releases) - [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json) - [Commits](markedjs/marked@v0.7.0...v4.0.10) --- updated-dependencies: - dependency-name: marked dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * For multiValue dimensions add filters also on split level. That would force plywood to insert having clause in group-by query instead of optimizing simple queries to plain topN (allegro#824) * Bug/timeattribute (allegro#823) * Add helpers for getting time dimension from DataCube. Now timeAttribute is a required property. * Use real time dimension and its reference instead of relying on the fact that name of time attribute is equal to name of time dimension. * TimeAttribute is required so we always print it. * More strict checks for Cluster object * Strict checks around timeAttribute * TimeAttribute is attribute name so use it to find dimension first and then use dimension reference in fresh default filter * Add better warnings for missing timeAttribute property * Release 1.33.1 * Bump ssri from 6.0.1 to 6.0.2 (allegro#825) Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/npm/ssri/releases) - [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md) - [Commits](npm/ssri@v6.0.1...v6.0.2) --- updated-dependencies: - dependency-name: ssri dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix height of heatmaps main container. (allegro#826) Container should have height of available stage. Because inside container there's a Scroller component, maxHeight is not enough to stretch container. * Use `isTruthy` helper instead of boolean cast (allegro#835) 0 is casted to false but is perfectly valid value. `isTruthy` handles `null` and `undefined` values, `isFinite` handles Infinity case. * Release 1.33.2 * Add new Split kind: boolean. (allegro#833) * Add new Split kind: boolean. Add new value for SplitType enum Handle boolean splits in url converters Handle transformation of boolean split into boolean filter in highlight operations Update fixtures and tests * Fix test case for getFilterForDatum helper * Release 1.33.3 * Deployment automation for branches (allegro#837) On every push on PR the application is deployed. When the PR is closed the app is undeployed. * Normalize branch name in github actions (allegro#840) * Normalize brach name WIP * Normalize when deploying too * Add on undeploy * Bump ua-parser-js from 0.7.19 to 0.7.31 (allegro#828) Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.19 to 0.7.31. - [Release notes](https://github.com/faisalman/ua-parser-js/releases) - [Commits](faisalman/ua-parser-js@0.7.19...0.7.31) --- updated-dependencies: - dependency-name: ua-parser-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcin Kuthan <marcin.kuthan@gmail.com> * Bump pathval from 1.1.0 to 1.1.1 (allegro#830) Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. - [Release notes](https://github.com/chaijs/pathval/releases) - [Changelog](https://github.com/chaijs/pathval/blob/master/CHANGELOG.md) - [Commits](chaijs/pathval@v1.1.0...v1.1.1) --- updated-dependencies: - dependency-name: pathval dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Introduce basic lighthouse-ci * Streamlined fonts * Extract CSS from JS bundle * rm style-loader * CSS extract plugin within common config * Move stylesheet link to the head * Async main script * Don't inline fonts into CSS * Better integration with Lighthouse CI * Simpler lhci workflow * Pack .lighthouseci as artifact * Comment on url-loader limit * Polyfills bundle * Feature / scatterplot (allegro#853) * Release 1.34.0 * Fix missing x axis label (allegro#856) * Release 1.34.1 * Babel build * rm visResolve field re-declaration * Simpler babel config * Type module for modern script * Upgrade d3 to v4 * Apply @babel/plugin-transform-runtime to re-use of Babel's injected helper code and save on codesize * Print link to LH report * Comment with lighthouse report URL * Bump react-syntax-highlighter to save on bundle size * Bundle analysis with Statoscope * Monitor bundle size with size-limit * Size limit action * Monitor bundle size but without compression * Save webpack stats for further analysis * Exclude locale from moment * Bundle polyfills just once * Missing rangeBand method (allegro#867) * Fix: Exclusion filter does not filter out 'null' (allegro#869) * Don't convert string values to String. Only lazly convert in filter operation. * Convert value from String Filter Clause to String to present on Tile label. * Release 1.35.0-beta.0 * New visualization contribution guidelines (allegro#857) * drag-and-drop polyfill chunk * Set size limit for scripts * Markdown parser lib change, snarkdown instead of marked. * babel/register instead of ts-node * Split utils (allegro#849) * Set limit for newly created Split based on last available limit on dimension * Utils for selecting values and formatting them based on defined Split * Replace raw property access with proper Split utils * Fix test * Split tests * Use split utils in Scatterplot * Dynamic import syntax highlighter from source to save on bundle size * Extract a common configuration to keep things DRY * Split visualizations into chunks * Limit number of chunks * Use simpler file-loader instead of url-loader * Upgrade React package (allegro#865) * TS for Cypress (allegro#878) * TS for Cypress * Format fixes Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl> * Fix Wepback's optimization configuration * Webperf docs (allegro#879) * Webperf docs * Apply suggestions from code review Co-authored-by: Kasia Zadurska <katarzyna.zadurska@allegro.pl> Co-authored-by: Kasia Zadurska <katarzyna.zadurska@allegro.pl> * Fix mocha configuration for watching chanages within test files (allegro#883) * Fix mocha configuration for watching chanages within test files * Fix flaky tests Restore wrapped stubs Remove Notifications tests. It is impossible to cleanup after renderIntoDocument. Because test was meaningless it is easier to remove it. Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl> * Drop base immutable (allegro#881) * Make functions private so typescript won't complain about exporting public methods that use private types from React * Reimplement TimeTag class without BaseImmutable helper because it causes problems with babel. Because BaseImmutable is a dynamic expression, it adds fields on subclass but typescript don't pick that information. If we add those fields by hand in TimeTag declaration, babel will override values from BaseImmutable with undefineds * Reimplement RetryOptions class without BaseImmutable helper. * Reimplement ServerSettings class without BaseImmutable helper. * Reimplement Cluster class without BaseImmutable helper. * optionalEnsureOneOf helper for class property validation * Fix unit tests * Revert adding valueOf to Cluster for compatibility with base-immutable * Apply suggestions from code review Co-authored-by: Kasia Zadurska <katarzyna.zadurska@allegro.pl> Co-authored-by: Kasia Zadurska <katarzyna.zadurska@allegro.pl> * Show NoData card on BarChart when no split datums came from Druid (allegro#885) * Release 1.35.0-beta.1 * Use POJsOs to model Cluster. Same pattern as DataCube type. (allegro#886) * Use POJsOs to model Cluster. Same pattern as DataCube type. * Cluster tests * Renames for brevity * Release 1.35.0-beta.2 * Typescript fixes in package.json (allegro#887) * Add cypress types globally for tsc * Bump @types/node * Add globalThis shim for cypress package. * Add es6 types and iterator option for more modern syntax in e2e tests * Fixed types * Real tests for TimeTag * Add .nvmrc * New package scripts. Move checking client types to lint stage. Add watch scripts for checking types in all sub-packages. * Update package.json Co-authored-by: Paweł Lesiecki <pawel.lesiecki@allegro.pl> * Fix lint:types arguments * Pin advised version of setup-gcloud action * remove local .nvmrc * Fix scripts in package.json Co-authored-by: Paweł Lesiecki <pawel.lesiecki@allegro.pl> * Memoize Viz Chunk so Suspense won't get new Promise every time. (allegro#889) * Release 1.35.0 * Break words in markdown nodes. (allegro#891) * Fine tune priority values for visualisation resolvers so Grid would be preffered over BarChart (allegro#893) * Release 1.35.1 * Bump moment from 2.20.1 to 2.29.2 (allegro#892) * Bump lodash from 4.17.15 to 4.17.21 (allegro#880) * Bump follow-redirects from 1.14.4 to 1.14.9 (allegro#842) * Add GH TOKEN explicitly for github-script to authenticate dependant bot builds (allegro#894) Co-authored-by: Marcin Kuthan <mkuthan@gmail.com> * Fix branch undeploy action (allegro#896) Co-authored-by: Marcin Kuthan <mkuthan@gmail.com> * Disable adding a Lighthouse PR comment (allegro#895) * Bump async from 2.6.1 to 2.6.4 (allegro#898) Bumps [async](https://github.com/caolan/async) from 2.6.1 to 2.6.4. - [Release notes](https://github.com/caolan/async/releases) - [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md) - [Commits](caolan/async@v2.6.1...v2.6.4) --- updated-dependencies: - dependency-name: async dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Define write permission for creating the issue by dependant bot (allegro#900) Co-authored-by: Marcin Kuthan <mkuthan@gmail.com> * Update from Node 14 to Node 16 (and deprecate Node 12) (allegro#901) * Release 1.36.0 * pin node version (allegro#914) * pin node version * Add pull-request write permission to actions with createComment script * re-run action * pin 14.x version * additional description in dockerfile Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> * fetch fulfills promises with 400/500 codes, we need to check ok property and throw our own error to reject promise (allegro#912) * fetch fulfills promises with 400/500 codes, we need to check ok property and throw our own error to reject promise * Because we already use axios in other place, let use it here to get consistent handling of HTTP errors * Release 1.36.1 * Documentation refactor (allegro#920) * vis sekeleton (allegro#917) * visualization controls layout component to encapsulate styles * skeleton component * center panel and all descendants use new classes from visualizatio ncontrols layout * remove module declaration from vis selector - this is something that parent should control * add wait cursor on disabled tile * Use skeleton in fallback in cube view * lint fix * Pass className to layout to differentiate between real and skeleton controls * fix e2e test classes * extract label utils for filter clause * style fix * custom messages (allegro#919) * add custom messages object to customization model * use custom message in datacube not found view * docs * extract title * message in example config * Fix CSS in Filter menus (allegro#922) * remove unused sass variable * refactor to real component * align text with line-height and tweak checkbox top edge * extract label height constant * Release 1.37.0 * ellipsis mixin adds overflow-x hidden and that changes default overflox-y from visible to auto and results in scrollbar along y axis (allegro#930) * Release 1.38.0 * sourceTimeBoundaryRefreshInterval setting for Cluster (allegro#926) * make some fields required in cluster - we set defaults during initialization * Add sourceTimeBoundaryRefreshInterval property * Each time tag has it's own check interval based on origin cluster setting * Docs for sourceTimeBoundaryRefreshInterval * fix some tests * more docs * Release 1.38.1 * fix deleteDataCube function (allegro#938) * Release 1.38.2-beta.0 * Release 1.38.2 * feature/cli (allegro#941) * Bump ts and fix some polymorphic code. and by fix I mean lie to compiler. (allegro#927) * http basic auth built in (allegro#921) * cluster auth settings in cluster configuration * compose request decorator with cluster auth headers * update docs * simplify auth headers merging * lift returned value to Promise to simplify * missing tests * move docs * simplify test construction * cli refactor (allegro#924) * main menu for cli * utils for commander * create server as a function with explicit dependencies * util for loading file, soon will talk to commander * explicit default value * explicit dependencie on timekeeper getter * we always post process loaded files so enforce that intypes * create express app in function with explicit dependencies * implement commands * be careful to what "this" is bound * use relative path because sources endpoint is placed on server-root directory not a file system root * add required option for time attribute for json files * columns from json files are loaded later so we can't check for time column at the start * add verbose option for config verification * refactor a little * handle version read failure * pass command to server so we can recover from errors * lint fixes * native data cubes dimensions are loaded after introspection so we can't check for dimension on cube creation * auth is optional * pass parsed cluster credentials to sources config * add "Basic" prefix to encoded credentials header * handle errors when loading config file * remove config.ts file * remove old comments * "generic" parse credentials * remove port from introspection * runTurnilo util * add few tests (allegro#931) * add few tests * match npm scripts with new commands to check CI * fix deploy workflows with new commands * more documentation (allegro#936) * more documentation * Update src/server/cli/options.ts Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> * Update src/server/cli.ts Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> * Update README.md Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> * Update README.md Co-authored-by: Piotr Szczepanik <piter75@gmail.com> * update more docs Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> Co-authored-by: Piotr Szczepanik <piter75@gmail.com> * remove legacy tests (allegro#937) * remove legacy tests * keep mocha setup file * log on stdout only new config and exit process after succesful introspection (allegro#939) Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> Co-authored-by: Piotr Szczepanik <piter75@gmail.com> * Release 1.39.0-beta.0 * fix program.error calls so they use thrown error messages (allegro#942) * Release 1.39.0-beta.1 * Disable deployments for branches from forks (allegro#944) * sass dependencies bump (allegro#946) * Delete package-lock.json * Update package.json * Add files via upload * Update README.md * Update tslint.json * GH actions refactored into single CI workflow (allegro#945) * Updated setup-node GH action to the latest version (allegro#949) * Deploy action bundled into CI workflow (allegro#950) * Build on the latest Node 14.x and 16.x (allegro#956) * Update GCloud GH actions to the latest versions (allegro#957) * Dedicated lighthouse GH action (allegro#959) * Dependabot and mergify configuration for Gh actions (allegro#965) * first attempt to fix build from the forks (allegro#967) * Reports enabled only for PRs * Fix build from forks * Update dependabot.yml * Update dependabot.yml * Update dependabot.yml * Update dependabot.yml * Disable mergify for node updates (temporarily) * Cypress updated to v9 (allegro#961) * tslint - rules cleanup (allegro#948) * Removed legacy create-react-class (allegro#962) * e2e tests - migrate to Cypress v11 (allegro#975) * tslint: enforce self closing of empty jsx elements (allegro#972) * Removed not used react-hot-loader (allegro#963) * removed warnings in npm install (allegro#966) * tslint: only-arrow-functions cleanup (allegro#973) * tslint: only-arrow-functions cleanup * tslint file formatting * name for HoC for DevTools Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl> * tslint: no-var-keyword, prefer-const rules cleanup (allegro#974) Co-authored-by: Adrian Mróź <78143552+adrianmroz-allegro@users.noreply.github.com> * Bump helmet to 6.0.0 (allegro#976) * sass-lint rules cleanup (allegro#980) * Bump nopt to v5 + eslint rules cleanup (allegro#979) * viz colors (allegro#955) * add context for customization settings * example how to use settings context * add visualizationColors to customization settings * use colors from customization settings instead of hardcoded series * attach appSettings object to Essence so it can be used during visualization resolving * lint stuff * pass app settings to mkurl endpoint * todos for last pieces * more explicit conversions for mkurl * change parameters order of fromViewDefinition for brevity * rename and export settings context type * functions for derivative main colors * use viz colors in vizualizations * update fromViewDefinition argument order in tests * formatHex does not exist on our version of d3. I dunno why types say that it should exist. * remove unused css variables * add docs * update docs * lint fix * bugfix/viz colors (allegro#981) * you need to put hex numbers in quotes in yaml * allow for split limits smaller than number of colours * Replace fs.promise with fs-extra (allegro#985) * resolve with new split, not old one (allegro#983) * resolve with new split, not old one * handle case with number + category split in wrong order * Dependabot automation (allegro#984) * Time series specific visualization controls (allegro#986) * visualization controls for timeseries - only granularity on continuous split and color specific limits on category split * use timeseries controls on linechart * move barchart code around so we have switch between two version at top level * simplify timeseries split tile * adjustColorSplit should use valid available split limits * empty commit for github workflow * all continuous splits have the same adjustments * handle number splits on new barchart * fix rename in tests * formatters for short segments * barchart utils should handle also number ranges * more robust number range formatter * code style * handle error in simulateQueryPlan for modal with Druid query * tests for visualization manifests (allegro#987) * tests for visualization manifests * refactor tests * Release 1.39.0-beta.2 * Bump unit tests packages (allegro#978) * Bump unit tests packages * nock * types chai * mz as fs is deprecated * start-server-and-test * post merge fix * npm audit * post merge * order * audit * Readme - slack badge added (allegro#991) * bugfix/use viz colors on heatmap (allegro#994) * create color scale with defined top color * grab main color from customization and pass to scale creator * Release 1.39.0-beta.3 * Bump cypress from 11.2.0 to 12.0.2 (allegro#995) Bumps [cypress](https://github.com/cypress-io/cypress) from 11.2.0 to 12.0.2. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v11.2.0...v12.0.2) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * loggers (allegro#996) * multiple loggers * simplify routes parameters * pass logger explicitly * use specific loggers in CLI functions * fix test compile error * validate logger format setting * override logger format from CLI parameter * use logger on server start * docs typo * log errors with correct level and in one event * change signature for readability * fix tests * reduce exports from logger.ts - logger should be passed directly, no global imports * logger that redirects everything to stderr * push loggers further * utils for now in iso format * cleaner Logger API and types * rename to @timestamp * add docs * let commander.js validate logger format values * util for logging js error objects * refactor for brevity * readiness error should be logged as warn * Release 1.39.0-beta.4 * Bump plywood to latest patch version (allegro#993) * Bump plywood to latest patch version * Bump cypress from 12.0.2 to 12.1.0 (allegro#999) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.0.2 to 12.1.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.0.2...v12.1.0) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript to 3.5.3 (allegro#992) * Bump typescript to 3.5.3 * lock * merge * 3.7.7 * 3.5.3 * post merge * Release 1.39.0 * omit undefined values from cli (allegro#1013) * feature/query endpoint backend (allegro#1022) * endpoint validation and helpers * timezone is optional and we need to support old parameter dataCubeName * pass whole settings and avoid functional-object pattern mismatch * tests for query endpoint * organize utils * split running query and obtaining query decorator (with some partial application shenaningans) * tests for mkurl for invalid inputs * viewDefinition2 fixtures for mkurl tests * timekeeper fixture for wiki data cube * normalize view definition mocks across wiki data cube and syntetic cube * use fixtures in query tests * better wording * tests for handle-request-errors * endpoints test only endpoint logic, controllers are tested e2e * Use /query endpoint in visualisation (allegro#1023) * ApiContext * expose ApiContext inside turnilo application * use new ApiContext in data visualization * feature/boolean filter query endpoint (allegro#1024) * nest query endpoints and prepare one for boolean * boolean filter query endpoint and usage * fix tests * extract api call creation * reuse type * fix spread of arguments * Query endpoint: Raw data modal (allegro#1025) * query method for raw data modal * string filter queries (allegro#1028) * string filter queries * remove viewDefinitionVersion test * remove old files * number filter query (allegro#1029) * number filter query * remove meaningles tests * fix typo * pinboard-query (allegro#1030) * pinboard-query * fix some tests * split query router (allegro#1031) * split query router * custom error for illegal context access * Bugfix/add ignore case option for string filters (allegro#1032) * Add ignoreCase option for string filter clause * pinboard and string filter menu search boxes should ignore case for better UX * change fixtures so they include default ignorCase value in results * Release 1.40.0-beta.0 * Bump cypress from 12.1.0 to 12.5.1 (allegro#1027) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.1.0 to 12.5.1. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.1.0...v12.5.1) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * vx replaced with visx (allegro#1010) * vx replaced with visx * Dead code removed (allegro#1016) * Dead code removed * tsc rollback * delete code further --------- Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl> * feature/rich query logger (allegro#1034) * add logger to query router context * log information for viz query * middleware request is not available in error handler * add data cube name to logged message * description method for essence * method for series that returns used measures * naming, switch from series to measures and description in log message * usedMeasures function * Release 1.40.0-beta.1 * Bump github-pages from 227 to 228 in /docs (allegro#1026) Bumps [github-pages](https://github.com/github/pages-gem) from 227 to 228. - [Release notes](https://github.com/github/pages-gem/releases) - [Commits](github/pages-gem@v227...v228) --- updated-dependencies: - dependency-name: github-pages dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> * bugfix/dont restrict mkurl (allegro#1039) * move fixtures around * first check if requested path is restricted, then check allowed data cubes * basic tests * Release 1.40.0-beta.2 * Bump typescript to 3.6.5 (allegro#1038) * match @types with ts3.6 (allegro#1009) * match @types with ts3.5 * done * jsdom * jsdom rollback * js-yaml rollback * safeLoad rollback - pr ready * js-yaml * merge * merge * 3.6 * fix * bump size limit for main bundle (allegro#1046) * cypress - adding explicit parameter types (allegro#1042) * more tests and better error messages (allegro#1035) * Fix audit critical issues (allegro#998) * Fix audit critical issues * done * merge * post merge * downgrade terser-webpack-plugin * merge * merge * Merge remote-tracking branch 'upstream/master' into audit-critical * audit * done * ready --------- Co-authored-by: Adrian Mróź <78143552+adrianmroz-allegro@users.noreply.github.com> * Add more variables to query logs (allegro#1049) * Add more variables to query logs * add custom logger for query viz * basic tests * Release 1.40.0-beta.3 * log iso strings (allegro#1053) * Release 1.40.0-beta.4 * Release 1.40.0-beta.5 * Bump visx to latest v1 (allegro#1037) * Bump visx to latest v1 * audit fix * merge * Bump cypress from 12.5.1 to 12.8.1 (allegro#1054) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.5.1 to 12.8.1. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.5.1...v12.8.1) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Release 1.40.0 * Add docs for limits configuration for dimension (allegro#1058) * Bump cypress from 12.8.1 to 12.9.0 (allegro#1059) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.8.1 to 12.9.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.8.1...v12.9.0) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * No retry option should disable retry policy (allegro#1064) * Release 1.40.1 * Bump cypress from 12.9.0 to 12.10.0 (allegro#1060) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.9.0 to 12.10.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.9.0...v12.10.0) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump cypress from 12.10.0 to 12.13.0 (allegro#1072) Bumps [cypress](https://github.com/cypress-io/cypress) from 12.10.0 to 12.13.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v12.10.0...v12.13.0) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Logger context (allegro#1073) * Basic implementation * more tests and docs * Release 1.40.2 * Changed naming from AVAILABLE_LIMITS to DEFAULT_LIMITS --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: adrianmroz <78143552+adrianmroz-allegro@users.noreply.github.com> Co-authored-by: adrianmroz-allegro <adrianmroz-allegro@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wmeler <wmeler@wp.pl> Co-authored-by: Wojciech Meler <wojciech.meler@grupawp.pl> Co-authored-by: Marcin Kuthan <marcin.kuthan@gmail.com> Co-authored-by: Kasia Zadurska <kzadurska@gmail.com> Co-authored-by: Paweł Lesiecki <pawel.lesiecki@allegro.pl> Co-authored-by: Kasia Zadurska <katarzyna.zadurska@allegro.pl> Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl> Co-authored-by: Marcin Kuthan <mkuthan@gmail.com> Co-authored-by: Marcin Kuthan <marcin.kuthan@allegro.pl> Co-authored-by: Piotr Szczepanik <piter75@gmail.com> Co-authored-by: Piotr Wysocki <86244209+piwysocki@users.noreply.github.com> Co-authored-by: radek.maciaszek <radek.maciaszek@RadekMaaszekMBP.Dlink>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.