Skip to content
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

refactor: remove dependency cycles to fix eslint errors #50

Merged
merged 23 commits into from
May 15, 2023

Conversation

thinkh
Copy link
Member

@thinkh thinkh commented Oct 20, 2022

Closes Caleydo/cohort#693

Developer Checklist (Definition of Done)

Issue

  • All acceptance criteria from the issue are met
  • Tested in latest Chrome/Firefox

UI/UX/Vis

  • Requires UI/UX/Vis review
    • Reviewer(s) are notified (tag assignees)
    • Review has occurred (link to notes)
    • Feedback is included in this PR
    • Reviewer(s) approve of concept and design

Code

  • Branch is up-to-date with the branch to be merged with, i.e., develop
  • Code is cleaned up and formatted
  • Unit tests are written (frontend/backend if applicable)
  • Integration tests are written (if applicable)

PR

  • Descriptive title for this pull request is provided (will be used for release notes later)
  • Reviewer and assignees are defined
  • Add type label (e.g., bug, feature) to this pull request
  • Add release label (e.g., release: minor) to this PR following semver
  • The PR is connected to the corresponding issue (via Closes #...)
  • Summary of changes is written

Summary of changes

  • Remove || true to show eslint errors
  • Prefer interface typings over object instance typings (e.g., use ICohort instead of Cohort)
  • for detailed changes, see the commit messages below

Screenshots

Additional notes for the reviewer(s)


Thanks for creating this pull request 🤗

thinkh added 19 commits October 15, 2022 14:19
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
@thinkh thinkh added release: major PR merge results in a new major version type: refactor Refactor the current implementation labels Oct 20, 2022
oltionchampari and others added 2 commits March 6, 2023 12:39
* 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 <Klaus.Eckelt@jku.at>

* 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 <Klaus.Eckelt@jku.at>

* 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 <Klaus.Eckelt@jku.at>
Co-authored-by: anita-steiner <>
Co-authored-by: Holger Stitz <holger.stitz@datavisyn.io>
Co-authored-by: Patrick <42137747+PatrickAdelberger@users.noreply.github.com>
Co-authored-by: Michael Pühringer <51900829+puehringer@users.noreply.github.com>

* prepare next dev version

* Migration to visyn_core (#55)

* Migration to visyn_core

* Linting

* Upgrade deps

---------

Co-authored-by: Michael Puehringer <michael.puehringer@datavisyn.io>

* 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 <51900829+puehringer@users.noreply.github.com>
Co-authored-by: Vanessa Stoiber <52395160+dvvanessastoiber@users.noreply.github.com>
Co-authored-by: Klaus Eckelt <Klaus.Eckelt@jku.at>
Co-authored-by: Holger Stitz <holger.stitz@datavisyn.io>
Co-authored-by: Patrick <42137747+PatrickAdelberger@users.noreply.github.com>
Co-authored-by: dvvanessastoiber <vanessa.stoiber@datavisyn.io>
Co-authored-by: Michael Puehringer <michael.puehringer@datavisyn.io>
@oltionchampari oltionchampari marked this pull request as ready for review March 13, 2023 09:21
@oltionchampari oltionchampari requested a review from keckelt as a code owner March 13, 2023 09:21
@thinkh thinkh changed the title Fix eslint errors and refactor code refactor: remove dependency cycles to fix eslint errors Mar 14, 2023
.on('click', (event, d: IDataSubtypeConfig) => {
const badgeName = this._composeGeneDataTypeName(data.optionText, d.name);
.html((v: IDataSubtypeConfig) => v.name)
.on('click', (event, v: IDataSubtypeConfig) => {
Copy link
Contributor

@oltionchampari oltionchampari Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v.name is not available, so access it from the d.name from the above context.
This needed an after fix as the eslint suggestion caused a bug.

@oltionchampari oltionchampari self-requested a review May 15, 2023 13:38
@thinkh thinkh merged commit c65c9cb into develop May 15, 2023
@thinkh thinkh deleted the thinkh/693_refactor-and-fix-eslint branch May 15, 2023 19:40
@thinkh thinkh mentioned this pull request Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: major PR merge results in a new major version type: refactor Refactor the current implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants