-
Notifications
You must be signed in to change notification settings - Fork 30
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
Group files around concepts #694
Conversation
import { quickPickValue } from '../../vscode/quickPick' | ||
import { ParamOrMetric } from '../webview/contract' | ||
|
||
export const pickFromParamsAndMetrics = ( |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
@@ -504,17 +504,17 @@ | |||
"view/title": [ | |||
{ | |||
"command": "dvc.runExperiment", | |||
"when": "view == dvc.views.experimentsRunsTree", | |||
"when": "view == dvc.views.experimentsTree", |
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.
[F] With the new placement this name actually makes sense now
@@ -0,0 +1,189 @@ | |||
import { join } from 'path' |
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.
[F] These tests are just lifted from the original quickPick test file
…rams-and-metrics-model
…vscode-dvc into split-experiments-model
…-dvc into rename-legacy-variables
…-dvc into group-files-around-concepts
…iles-around-concepts
Code Climate has analyzed commit 4118eda and detected 6 issues on this pull request. Here's the issue category breakdown:
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.1% (0.0% change). View more on Code Climate. |
6/6
master
<- #689 <- #690 <- #691 <- #692 <- #693 <- thisThis PR groups files around concepts instead of function.
We now have the following folder structure:
In order to get here I've split the existing
extension/src/experiments/quickPick.ts
into its component parts and moved the respective tree views. I have also renamed theRuns
tree to simplyExperiments
as per the existing design.I realise that this is a big change and it would be pretty difficult to integrate with #687. I'm happy to hold off merging until after that PR has gone in. Also happy to head in a different direction if you have any other ideas. LMK what you think.