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

Add createTreeView wrapper #703

Merged
merged 8 commits into from
Aug 3, 2021
Merged

Add createTreeView wrapper #703

merged 8 commits into from
Aug 3, 2021

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 3, 2021

2/2 master <- #700 <- this

This PR cleans up some duplication between the trees. As I move the remaining trees onto the new data structure I will introduce the use of the wrapper.

@mattseddon mattseddon self-assigned this Aug 3, 2021
@mattseddon mattseddon changed the base branch from master to update-params-and-metrics-tree August 3, 2021 05:54
@mattseddon mattseddon marked this pull request as ready for review August 3, 2021 05:55
@mattseddon mattseddon requested a review from rogermparent August 3, 2021 05:56
Base automatically changed from update-params-and-metrics-tree to master August 3, 2021 17:16
@rogermparent rogermparent enabled auto-merge (squash) August 3, 2021 17:23
@codeclimate
Copy link

codeclimate bot commented Aug 3, 2021

Code Climate has analyzed commit 38ae4e4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 94.3% (0.0% change).

View more on Code Climate.

@rogermparent rogermparent merged commit 08cc3b3 into master Aug 3, 2021
@rogermparent rogermparent deleted the add-tree-view-wrapper branch August 3, 2021 17:26
rogermparent added a commit that referenced this pull request Aug 3, 2021
* move params and metrics tree to mixed type

* remove get param or metric methods where possible

* rework tree data type

* improve test

* improve test variable names

* add create tree view wrapper

Co-authored-by: rogermparent <rogermparent@gmail.com>
mattseddon added a commit that referenced this pull request Aug 11, 2021
* Get sortBy tree to the point where it displays sorts

* Adapt to renamed field

* Big refactor

- Split getChildren branches into methods
- Await experiments for root
- Turn getSort into getSorts (multi sorts not actually implemented)

* Sort sortByTree roots like paramsAndMetricsTree roots

* Add contextValue to TreeItems

* Remove accidentally merged file

* Revert file accidentally changed by merge

* Add commands to tree title and add tests

* Build mocked TreeItem that uses contructor

* Remove double mocks

* Remove unused mocks

* Prefix TreeItem contextValues with dvc

* Rename clearSort to clearSorts

* Add multi-sort capability to sort function

* More multi-sort support with test for sort function

* Add another test

* Add multi-sort functionality

* Fix integration test

* add windows hide option for windows users (#701)

* Switch `ExperimentsParamsAndMetricsTree` to string | ParamsAndMetricsItem tree type (#700)

* move params and metrics tree to mixed type

* remove get param or metric methods where possible

* rework tree data type

* improve test

* improve test variable names

* Add createTreeView wrapper (#703)

* move params and metrics tree to mixed type

* remove get param or metric methods where possible

* rework tree data type

* improve test

* improve test variable names

* add create tree view wrapper

Co-authored-by: rogermparent <rogermparent@gmail.com>

* add notes on disabling cli analytics to help performance (#699)

Co-authored-by: Roger <rogermparent@gmail.com>

* Add basic integration test and make sortBy non-mutating

* Add multi-sort to sorts integration test

* Add single sort removal to integration test

* Use removeAllSorts for final clear

* Add repo-level addSort and rework data piping so await works for it

* Add "all items are equal" test for multi-sort

* Add sort modification to integration test

* Return this.notifyChanged again to simplify diff

* clearExperimentsTableSort -> removeExperimentsTableSorts

* Rename a few commands and combine removeSorts commands

* Display empty array when there are are projects but no sorts

* Use createTreeView utility

* Change pluckTestParams inline helper to be a no-arg function

* Trim back sort integration test data to only params

* Rename command strings and remove unused ones

* Combine add and remove sort commands

* Swap removeSort params and use getRepository

* import { join } from 'path'

* interface SortDefinitionWithParent => type SortItem

* build => pick and simplify buildExperimentSortFunction

* Inline pickSort into experiments repository class, can => should

* Remove getOrPickRepo and change removeSorts behavior to be like filters

* Add another entry to integration test data

Co-authored-by: mattseddon <37993418+mattseddon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants