-
Notifications
You must be signed in to change notification settings - Fork 4
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
Eslint and typescript errors #56
Merged
puehringer
merged 12 commits into
thinkh/693_refactor-and-fix-eslint
from
och/693-eslint-errors
Mar 6, 2023
Merged
Eslint and typescript errors #56
puehringer
merged 12 commits into
thinkh/693_refactor-and-fix-eslint
from
och/693-eslint-errors
Mar 6, 2023
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
* Upgrade python deps * Switch back to #develop
* prepare next dev version * Fix colors assignment in plots (#41) * Prepare github changes * Remove circleci * prepare next dev version * Use `Font Awesome 6 Free` in `font-family` (#39) * Use `Font Awesome 6 Free` in `font-family` Requires datavisyn/tdp_core#732 * Update Lineup to 4.6.2 Co-authored-by: Klaus Eckelt <[email protected]> * Update fontawesome * Merge visyn_scripts * prepare next dev version * Merged `d3_changes` into `develop` (#45) * use d3v7 and d3v3 imports remove depenencies to d3 add dependency to tdp_core * remove console log * Dev d3 merge fix (#47) * move RouterScrollToTop to coral_public * fix TS errors * move canvas-confetti to coral_public * update git dependencies Co-authored-by: Klaus Eckelt <[email protected]> * Automatically select root cohort if onboarding was already done (#48) * Autoselect rootcohort if onboarding was done #579 * format code * Remove grid lines from visualizations (#49) remove gridlines #400 * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * prepare release 4.1.0 --------- Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: anita-steiner <> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Michael Pühringer <[email protected]>
* Migration to visyn_core * Linting * Upgrade deps --------- Co-authored-by: Michael Puehringer <[email protected]>
oltionchampari
added
type: refactor
Refactor the current implementation
release: minor
PR merge results in a new minor version
labels
Mar 3, 2023
oltionchampari
commented
Mar 3, 2023
@@ -220,6 +223,8 @@ export class Compare extends ATask { | |||
|
|||
for (const [rowIndex, rowCht] of cohorts.entries()) { | |||
// Get the data of 'attr' for the rows inside 'rowCht' | |||
// TODO: fix me | |||
// eslint-disable-next-line no-await-in-loop | |||
const rowData = (await attr.getData(rowCht.dbId)).map((item) => item[attr.dataKey]); |
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 construct here should maybe be refactored as the linter complains about using await inside a loop which does not look intentional. The code works though.
thinkh
added a commit
that referenced
this pull request
May 15, 2023
* Remove `|| true` to show eslint errors #693 * Run `lint:fix` to automatically fix formatting #693 * Add missing component `RouterScrollToTop` * Refactor src/app.ts into separate files src/app/* Caleydo/cohort#693 * Rename app/Cohort to app/Coral * Move colors to config/colors Caleydo/cohort#693 * Move rest to base/rest Caleydo/cohort#693 * Move ScrollLinker from util file to utils/ScrollLinker Caleydo/cohort#693 * Remove unused color schemes Caleydo/cohort#693 * Extract CohortColorSchema from util to separate file Caleydo/cohort#693 * Merge CohortColorSchema with config/colors Caleydo/cohort#693 * Move utilCustomEvents to base/events Caleydo/cohort#693 * Move utilIdTypes to config/entities Caleydo/cohort#693 * Move utilLabels to utils/labels Caleydo/cohort#693 * Merge Tooltip into AColumn and remove export Caleydo/cohort#693 * Rename event to event2 for nested event Caleydo/cohort#693 * Merge CohortInterfaces into app/interfaces Caleydo/cohort#693 * Use `ICohort` instead `Cohort` Caleydo/cohort#693 - Replace `Cohort` with `ICohort` were possible - Add interfaces `IInputCohort` and `IOutputCohort` - Move classes `InputCohort` and `OutputCohort` to Cohort.ts - Move public functions and properties from `Cohort` to interface `ICohort` - Move interfaces and enums from `Cohort` to app/interfacoes - Replace `Array<...>` with `...[]` syntax * Reorder functions in utlis/labels Caleydo/cohort#693 * Eslint and typescript errors (#56) * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * Release 4.1.0 (#54) * prepare next dev version * Fix colors assignment in plots (#41) * Prepare github changes * Remove circleci * prepare next dev version * Use `Font Awesome 6 Free` in `font-family` (#39) * Use `Font Awesome 6 Free` in `font-family` Requires datavisyn/tdp_core#732 * Update Lineup to 4.6.2 Co-authored-by: Klaus Eckelt <[email protected]> * Update fontawesome * Merge visyn_scripts * prepare next dev version * Merged `d3_changes` into `develop` (#45) * use d3v7 and d3v3 imports remove depenencies to d3 add dependency to tdp_core * remove console log * Dev d3 merge fix (#47) * move RouterScrollToTop to coral_public * fix TS errors * move canvas-confetti to coral_public * update git dependencies Co-authored-by: Klaus Eckelt <[email protected]> * Automatically select root cohort if onboarding was already done (#48) * Autoselect rootcohort if onboarding was done #579 * format code * Remove grid lines from visualizations (#49) remove gridlines #400 * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * prepare release 4.1.0 --------- Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: anita-steiner <> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> * prepare next dev version * Migration to visyn_core (#55) * Migration to visyn_core * Linting * Upgrade deps --------- Co-authored-by: Michael Puehringer <[email protected]> * Fix cohort * Fix circular dependencies * Further cleanup * Fix async in loop * Import * Add todos for async inside loop errors --------- Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> * bug: merge data subtype object * Fix client config typings --------- Co-authored-by: Champari Oltion <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> Co-authored-by: oltionchampari <[email protected]>
oltionchampari
added a commit
that referenced
this pull request
May 16, 2023
* Remove `|| true` to show eslint errors #693 * Run `lint:fix` to automatically fix formatting #693 * Add missing component `RouterScrollToTop` * Refactor src/app.ts into separate files src/app/* Caleydo/cohort#693 * Rename app/Cohort to app/Coral * Move colors to config/colors Caleydo/cohort#693 * Move rest to base/rest Caleydo/cohort#693 * Move ScrollLinker from util file to utils/ScrollLinker Caleydo/cohort#693 * Remove unused color schemes Caleydo/cohort#693 * Extract CohortColorSchema from util to separate file Caleydo/cohort#693 * Merge CohortColorSchema with config/colors Caleydo/cohort#693 * Move utilCustomEvents to base/events Caleydo/cohort#693 * Move utilIdTypes to config/entities Caleydo/cohort#693 * Move utilLabels to utils/labels Caleydo/cohort#693 * Merge Tooltip into AColumn and remove export Caleydo/cohort#693 * Rename event to event2 for nested event Caleydo/cohort#693 * Merge CohortInterfaces into app/interfaces Caleydo/cohort#693 * Use `ICohort` instead `Cohort` Caleydo/cohort#693 - Replace `Cohort` with `ICohort` were possible - Add interfaces `IInputCohort` and `IOutputCohort` - Move classes `InputCohort` and `OutputCohort` to Cohort.ts - Move public functions and properties from `Cohort` to interface `ICohort` - Move interfaces and enums from `Cohort` to app/interfacoes - Replace `Array<...>` with `...[]` syntax * Reorder functions in utlis/labels Caleydo/cohort#693 * Eslint and typescript errors (#56) * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * Release 4.1.0 (#54) * prepare next dev version * Fix colors assignment in plots (#41) * Prepare github changes * Remove circleci * prepare next dev version * Use `Font Awesome 6 Free` in `font-family` (#39) * Use `Font Awesome 6 Free` in `font-family` Requires datavisyn/tdp_core#732 * Update Lineup to 4.6.2 Co-authored-by: Klaus Eckelt <[email protected]> * Update fontawesome * Merge visyn_scripts * prepare next dev version * Merged `d3_changes` into `develop` (#45) * use d3v7 and d3v3 imports remove depenencies to d3 add dependency to tdp_core * remove console log * Dev d3 merge fix (#47) * move RouterScrollToTop to coral_public * fix TS errors * move canvas-confetti to coral_public * update git dependencies Co-authored-by: Klaus Eckelt <[email protected]> * Automatically select root cohort if onboarding was already done (#48) * Autoselect rootcohort if onboarding was done #579 * format code * Remove grid lines from visualizations (#49) remove gridlines #400 * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * prepare release 4.1.0 --------- Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: anita-steiner <> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> * prepare next dev version * Migration to visyn_core (#55) * Migration to visyn_core * Linting * Upgrade deps --------- Co-authored-by: Michael Puehringer <[email protected]> * Fix cohort * Fix circular dependencies * Further cleanup * Fix async in loop * Import * Add todos for async inside loop errors --------- Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> * bug: merge data subtype object * React 18 Migration * Fix typings * Fix client config typings * Pin ordino, tourdino * Add initial value to cohorts array * Cleanup * tsconfig * Update package.json --------- Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Champari Oltion <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> Co-authored-by: oltionchampari <[email protected]> Co-authored-by: Moritz Heckmann <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
release: minor
PR merge results in a new minor version
type: refactor
Refactor the current implementation
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.
Closes list issues numbers here
Developer Checklist (Definition of Done)
Issue
UI/UX/Vis
Code
PR
release: minor
) to this PR following semverCloses #...
)Summary of changes
import type {IDummy}
imports to avoid circular imports.In some cases, had to move some util functions that were defined in the wrong places.
Unexpected 'await' inside a loop.
, i added aeslint-disable
flag. Some are intentionally being run in a loop in order for the promises to finish sequentially, in which case the rule should be disabled.I added TODOs in any case to evaluate if they need to be refactored, as the amount of effort has to be considered. Refactoring would bring the benefit of the promises running in parallel instead of sequentially, where not done intentially.
Screenshots
Additional notes for the reviewer(s)
Thanks for creating this pull request 🤗