Skip to content

Commit 450a025

Browse files
dyuliusergiu-ojoc
andauthored
Cleanup backend (#613)
* add stock data preprocessing * Period view sidebar design alignements * Adding events count for active datarun * Event details design updates * Couple adjustements on event Details * Event history design updates * search_similars return segments will not overlap with the existing ones; fix prediction data index order issue * Similar shapes updates * signal distance and tsne * Added filter shapes by percentage * Small updates * signal overview layout * Switching between chart styles * Solved 478 * Squares instead of roundness - filter by similarity * Original shape should have the color of the event tag * Showing shape results based on predefined percentage * stock data processing * fix error flow gradient issue * holding the past values for the missing values in period graph * search signalruns running in the same signal but different intervals * Aggregation level first draft * change interval labels * return default interval for signalrun * Contextual info ready * Adjustements * create event will add signal field as well * Restored brush * Fine tune interface and fix many small issues * event summary fix * user profile avartar * similar segment: height issue, y-scale issue. annotation view: font weight * fix create event issues and y axis scale on detailed-view-mode * fix bug: when creating or editing events, click cancel the brusher still remain * Brush issue * Merging with stockData branch * Adjusting height when filter by similarity is open/closed * Replaced custom dropdown with Select component * Removed untagged option from dropdown menu * Small fixes on sidebar event selections * Multiple issues solved * Solved SVG chart issue * Solved filtering when there is one active event * Disable aggregation levels when adding new event * Changing the height of the brush when toggling show predictions * Solved brushing overview when there is an active event selected * Removed Delete button when adding new event * Added chart y-axis grid lines * Solved zoom bug * Start by fixing failing unit tests * More unit tests fixes * Header unit tests fixes * New Unit Tests * Unit tests for aggregation levels * Fixing similar shapes info when selecting different signal * Removed old functionality for Event Details (unit test, css, utils) * Aggregation level unit test for selectors * Couple unit tests for datarun selector * Project unit tests * Dropdown unit tests * Loader unit tests * Typescripting Dropdown component * Typescript props for google login button * Header typescript * Addressed CR comments * Solved shapes state when selecting different signal * Showing top n similar segments based on min percentage from the top 5 segments * Better typescript format for dropdown component * Typescript for Landing/Experiments.tsx * Similar shapes updates, wrong approach was used * unsaved file * Matrix component typescript * Projects typescript transform * Login component typescript * Pipelines typescript transform * Logout component typescript * Register component typescript * Reset password typescript * AddEvent component typescript * Show errors component typescript * Focuschart component typescript * FocusChartUtils typescript * Small updates within show anomalies * Zoom controls Typescript * Renaming extension * Focus chart controls typescript * Drawchart typescript * Extention change * Event Details Typescript * typescript extension * Event summary typescript * Typescript extension * Periodical view typescript * Proper extension * Comment control Typescript * Event comments tsx extension * Event Comments typescript * tsx extension * Singnal annotation typescript ready * Small adjustements within the event comments * txs extension * Filtering shapes typescript ready * Removed index - not being used * Proper extension * Similar shapes typescript * Proper tsx esxtention * Sidebar header typescript conversion ready * TSX extension * Sidebar typescript conversion ready * Tsx extension * Droppable typescript component * Upload events component typescript convert * Multiple changes within action/selector/reducers of Aggregation level Component * Sidebar tsx extension * Separate datarun actions/selectors/reducers from the event ones (refactor) * Datarun Selector/action/reducer - ready * Event typescript actions ready * Event reducer ready * Event Details Selectors Typescript ready * Experiment Typescript conversion ready * Sidebar typescript ready * Similar shapes typescript transform ready * Addressing the zooming on event when is aggretation active * Chart graphics based on aggregation levels ready * Wrapping context info - done * Updates on the aggregation levels. Multiple issues addressed * Drawings inside event wrapper * No drawings for events within the wrapper * Checking if aggregationCoords is not null * Better drawings for selected event wrapper * Solved zoom issues + added event rect area within the anomalies chart * Linting * Postponed the zoom functions on anomalies * Restoring original overview events colors * Avoid zoom changes when selecting different aggregation time interval * remove backend * remove server test from github workflow Co-authored-by: sergiu-ojoc <[email protected]> Co-authored-by: sergiu-ojoc <[email protected]>
1 parent 766b2fa commit 450a025

File tree

293 files changed

+12468
-10636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+12468
-10636
lines changed

.github/ISSUE_TEMPLATE.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- MTV version:
2+
- Node version:
3+
- Operating System:
4+
5+
### Description
6+
7+
Describe what you were trying to get done.
8+
Tell us what happened, what went wrong, and what you expected to happen.
9+
10+
### What I Did
11+
12+
```
13+
Paste the command(s) you ran and the output.
14+
If there was a crash, please include the traceback here.
15+
```

.github/workflows/client.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Client CI
5+
6+
on:
7+
push:
8+
branches: [master, master-dev]
9+
pull_request:
10+
branches: [master, master-dev]
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest]
18+
node-version: [10.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install Package
27+
run: |
28+
npm install
29+
- name: Built
30+
run: |
31+
npm run build --if-present
32+
- name: Style check
33+
run: |
34+
npm run lint
35+
# - name: Test react
36+
# run: |
37+
# make test-server

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ tempCodeRunnerFile.ts
44
tempCodeRunnerFile.py
55
mtv.tar*
66
.vscode/
7+
orion-stock/
8+
stock-data/
79

810

911
# Byte-compiled / optimized / DLL files

client/.prettierrc.js .prettierrc.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,35 @@ module.exports = {
33
trailingComma: 'all',
44
singleQuote: true,
55
printWidth: 120,
6-
tabWidth: 2,
6+
tabWidth: 4,
77
overrides: [
8+
// js
9+
{
10+
files: ['*.js', '*.ts', '*.jsx', '*.tsx'],
11+
options: {
12+
tabWidth: 2,
13+
},
14+
},
15+
// css
816
{
917
files: ['*.scss', '*.css'],
1018
options: {
1119
tabWidth: 4,
1220
},
1321
},
22+
// html
1423
{
1524
files: '*.html',
1625
options: {
1726
tabWidth: 2,
1827
singleQuote: false,
1928
},
2029
},
30+
{
31+
files: ['*.yml'],
32+
options: {
33+
tabWidth: 2,
34+
},
35+
},
2136
],
2237
};

.travis.yml

-52
This file was deleted.

.vscode/launch.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@
2626
"type": "node",
2727
"request": "launch",
2828
"runtimeExecutable": "${workspaceRoot}/client/node_modules/.bin/react-scripts",
29-
"args": [
30-
"test",
31-
"${fileBasenameNoExtension}",
32-
"--runInBand",
33-
"--no-cache",
34-
"--watchAll=false"
35-
],
29+
"args": ["test", "${fileBasenameNoExtension}", "--runInBand", "--no-cache", "--watchAll=false"],
3630
"cwd": "${workspaceRoot}/client",
3731
"protocol": "inspector",
3832
"console": "integratedTerminal",

.vscode/settings.json

+28-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,25 @@
1212
"explorer.confirmDragAndDrop": false,
1313
"editor.suggestSelection": "first",
1414
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
15-
"editor.tabSize": 2,
15+
"editor.tabSize": 4,
16+
"[typescriptreact]": {
17+
"editor.tabSize": 2,
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
19+
},
20+
"[javascriptreact]": {
21+
"editor.tabSize": 2,
22+
"editor.defaultFormatter": "esbenp.prettier-vscode"
23+
},
24+
"[typescript]": {
25+
"editor.tabSize": 2,
26+
"editor.defaultFormatter": "esbenp.prettier-vscode"
27+
},
1628
"[javascript]": {
29+
"editor.tabSize": 2,
30+
"editor.defaultFormatter": "esbenp.prettier-vscode"
31+
},
32+
"[yaml]": {
33+
"editor.tabSize": 2,
1734
"editor.defaultFormatter": "esbenp.prettier-vscode"
1835
},
1936
"[css]": {
@@ -28,12 +45,11 @@
2845
"editor.tabSize": 4,
2946
"editor.defaultFormatter": "esbenp.prettier-vscode"
3047
},
31-
"eslint.validate": [
32-
"javascript",
33-
"javascriptreact",
34-
"typescript",
35-
"typescriptreact"
36-
],
48+
"[py]": {
49+
"editor.tabSize": 4,
50+
"editor.defaultFormatter": "esbenp.prettier-vscode"
51+
},
52+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
3753
"editor.codeActionsOnSave": {
3854
"source.fixAll.eslint": true,
3955
"source.fixAll.stylelint": true
@@ -42,5 +58,9 @@
4258
"python.pythonPath": "/Users/dyu/anaconda3/envs/mtv/bin/python",
4359
"code-runner.executorMap": {
4460
"python": "$pythonPath -u $fullFileName"
45-
}
61+
},
62+
"python.linting.pylintEnabled": false,
63+
"python.linting.flake8Enabled": true,
64+
"python.linting.enabled": true,
65+
"python.linting.flake8Args": ["--max-line-length=100", "--ignore=W503"]
4666
}

AUTHORS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Development Lead
1010
Contributors
1111
------------
1212

13-
None yet. Why not be the first?
13+
* Sergiu Ojoc

0 commit comments

Comments
 (0)