-
Notifications
You must be signed in to change notification settings - Fork 29
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
Integrate remaining share experiment command with the extension (exp push) #3781
Conversation
b756673
to
d7c343a
Compare
67a34dd
to
213a1a9
Compare
d7c343a
to
7fa5da1
Compare
8a445fd
to
104e653
Compare
@@ -100,7 +100,6 @@ export enum RegisteredCommands { | |||
ADD_STUDIO_ACCESS_TOKEN = 'dvc.addStudioAccessToken', | |||
UPDATE_STUDIO_ACCESS_TOKEN = 'dvc.updateStudioAccessToken', | |||
REMOVE_STUDIO_ACCESS_TOKEN = 'dvc.removeStudioAccessToken', | |||
EXPERIMENT_VIEW_SHARE_TO_STUDIO = 'dvc.views.experiments.shareExperimentToStudio', |
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.
EXPERIMENT_VIEW_PUSH
was already set above 😕
studioAccessToken | ||
) | ||
) { | ||
void promptToAddStudioToken() |
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] This is non-blocking. User can push as many experiments as they like without setting the token.
@mattseddon, what do you think about making "View in Studio" to be a button like in the case of error? |
In order to use a button for that link I'd have to switch APIs and send another toast message after the progress notification completes/closes. In the case of an error, the progress notification closes unexpectedly and we fallback to some existing behaviour. |
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.
Great work!
Looks great @mattseddon! Agree with @skshetry that error handling is my one question here. When the cache fails, not showing what has been successful (pushing to GitHub, pinging Studio) feels confusing. Is there anything we can do to at least show the info about what parts of the push were successful like we do in CLI? |
LGTM!
Not blockers, some followup questions to discuss. |
Is this important? In order to rectify the error the user is still going to have to fix the problem and push again regardless of which parts are successful.
No plan right now, change is related to this comment:
|
Code Climate has analyzed commit 82ea04a and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 86.6% (85% is the threshold). This pull request will bring the total coverage in the repository to 94.6% (-0.1% change). View more on Code Climate. |
@dberenbaum, I was asking for an actionable button.
@mattseddon, see iterative/dvc#9342. The reasoning was that:
This will be in the next release though, I just merged the PR. |
What about "Push to share"? I thought "push" was more explicit and "share" alone may be an abstraction that doesn't tell users what's happening (and could be confused with "live sharing"), but not a blocker if you feel strongly about calling the action "share."
Auto pushing is only currently possible in very narrow scenarios. Neither auto pushing nor live sharing should affect the action. Is your question about seeing what has been shared? |
Yes. Connection between Studio and VS Code is still not clear to my mind.
why do you feel they need to know what is happening? Tbh I thought we should focus more on making it clear what is that they are getting as a result (vs an implementation details). |
1/3
main
<- this <- #3792 <- #3793Relates to #3574.
This PR integrates
exp push
with the extension. As per this I've renamed the action from "Share" to "Push".Demos
Share with clickable link
Screen.Recording.2023-05-01.at.10.31.31.am.mov
Error
Screen.Recording.2023-05-01.at.10.30.31.am.mov