-
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
Simplify Studio onboarding screen and workflow #3864
Comments
The first item is covered by the last item in #3574.
The Studio issue for frontend redirects is https://github.com/iterative/studio/issues/5715. We can remove the original action item from #3574 if you like. |
@mattseddon thanks, yep. Dropped it in that ticket (making it closer to close that one). |
👍
Should we first focus on the part about creating a project? If it's about onboarding, I think first priority needs to be to create the project and token only matters after that. |
From #3898:
|
@shcheklein do you mean you can set an environment variable when starting codespaces which will log metrics to Studio if any experiments are run through the extension? |
Yes, exactly. |
This seems like a strange/advanced use case now that the token is managed via a user's DVC config(s). I think the smartest thing to do would be to block it off and remove |
Yes, agreed.
Hmm, sounds like too magical and a bit too intrusive to me. How about we show a message if it's detected (in the Setup screen) or as a notification? |
There is only a passing reference in the docs to using the token in the way that we are discussing:
I feel like it is more magical that it actually works and that we don't need to come up with a workaround to cater for this edge case. |
It's still a valid setup (otherwise we would have deprecated it). I agree though that it's a minor / advanced and we can deprioritize it. (I would not ignore / remove the env variable though, let's user do what they want). |
Studio has implemented a way to get a token with Device Authentication (see https://github.com/iterative/studio/issues/5158#issuecomment-1772610546). I'll start looking into using the method in VSCode. |
Researched how other extensions handled authentication like this and posted findings in Studio (https://github.com/iterative/studio/issues/5158#issuecomment-1783088262). TLDR is that with the current flow, two issues I noticed were that we need to repeatedly poll a studio endpoint for a token and the user doesn't get redirected back to vscode after authentication. I also created a quick demo of how things would work with the current Studio flow (#4931 Screen.Recording.2023-10-30.at.6.30.02.PM.movWe could either keep working on this and push a first iteration with the current Studio flow, or hold off until we have another iteration on Studio's auth flow. Personally, I think the current flow is good enough to release, but what does everyone else think? cc @shcheklein Either way, I'll keep working on the pr, since a good chunk of the logic should stay the same. |
With #4931 merged, we now use studio's auth flow in VSCode! What's left:
|
Going to close this since all tasks have been done, minus this:
As discussed synchronously, it is extremely difficult for the extension not detect ENV variables. |
Two things that I found recently trying it:
Related #3434
The text was updated successfully, but these errors were encountered: