-
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
SCM doesn't reflect remote status. #1769
Comments
Based on support duty frequency, this workflow pitfall is commonly encountered by (usually new) dvc users, without the extension. My worry is that the extension doesn't prevent it, but rather contributes. If |
Related to #922. Unfortunately, we cannot current access the native button because it is only in the proposed API. I will look again and see if anything has changed since the last time I checked. |
I'll also check in with a few people in the VS Code community to see if there is anything that can be done to get the action button into the stable API. |
I don't think it makes sense to check the remote constantly, but doing it once after each git commit could make sense. |
@mattseddon is it possible to put a comment in the section? :) may be we can just explain this for now? |
How about adding a refresh button that'll run |
Discussed this with the team. One idea to consider initially is to have a single notification / button / status from which people can understand that some files are missing in the remote storage. Initially it can be even outside the SCM panel. Can be in the status bar? |
I don't use the sync button, but some indicator that the DVC remote is not in sync with the local status would be helpful. |
Could we use For the initial implementation, we could let users trigger the remote refresh on demand but ideally, the information would be "auto-updated" whenever the CLI interacted with the remote. E.g. on Is this something that we should start looking at @dberenbaum? We can talk about it tomorrow if that works for you. |
@efiop is the above behaviour expected for |
@mattseddon Not quite sure I get how scm is related here, a bit confused about the whole issue. |
@efiop Sorry, I asked @mattseddon to ping you. The question is here:
Can that command (with |
@dberenbaum Thanks for clarifying! Totally, if |
This is the behaviour that I'm seeing with
Only running |
@mattseddon Yeah, that's expected. Remote index is currently only automatically updated by push/pull/fetch for cloud versioning. We are ready to do that for regular clouds in |
For the record, for this issue, we're trying to solve a targeted use case where a user has just run some experiment which has generated some new artefacts. These will initially show up at "not in remote" but after |
The SCM section contains action for
dvc push
but it doesn't reflect the remote status, only workspace status.I believe showing the remote status is relevant and the lack of it might cause confusion and incorrect workflows for users unfamiliar with DVC.
VSCode could use
dvc status -c
to query for remote statusExample workflow:
1. Start from nothing changed
2. I run an experiment.
I see changes to dvc-tracked files and git-tracked files.
3. Used to my regular workflow, I stage and commit the git-tracked files.
I get a clear signal by Git SCM that my workspace and remote are out of sync:
However, the DVC SCM is empty. As I am familiar with Git SCM, I interpret this as there is nothing else to do with dvc.
4. I click on the big sync changes button.
At this point, if someone clones the repo, it will receive a broken state (regarding DVC tracked files).
The text was updated successfully, but these errors were encountered: