Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Define git workflow with some examples #15

Open
faizanvahevaria opened this issue Mar 9, 2020 · 3 comments
Open

Define git workflow with some examples #15

faizanvahevaria opened this issue Mar 9, 2020 · 3 comments
Assignees

Comments

@faizanvahevaria
Copy link
Contributor

All the basic Git Features like

  1. Init
  2. Clone
  3. Push
  4. Pull

are implemented using the StarUML extension

I need more details on how the user would expect the extension to work.

Will the user be creating i.e. initializing new repo?
or just clone from existing repo and use Model Interchange format to update their graphs.

If you can define some workflows, it would be helpful in improving the user experience.

@kshychko
Copy link
Contributor

@faizanvahevaria , as we discussed, I don't think we nee to minmise the number of actions available for user to avoid additional confiusion. If a user needs advanced git functionality, git CLI or some other tool can be used for that.

So let's start simple.
We expect the git repo to be already initialised and cloned. If not - sure error/warning message saying that the repo wasn't initialised, or it just can't be detected.

We need a "sync" button, which will create a commit from the current changes. Pull the changes from remote and rebase the created commit on them, push the local branch remotely. If there are any conflicts ask a user to resolve them using git cli or other tool and repeat the sync process.

Also we need "show me what was changed" to compare the local and the remote before sync. I'm not sure what is the best way to do - show a diff, or comparing a content of two files side by side. The aim is to make the information about the changes available to user.

I also have a feeling that our Git extension should probably work only with files in interchange format, and ignore the other files like StarUML projects, so users will not be racing updating the repo with their mdj files.

@faizanvahevaria
Copy link
Contributor Author

@kshychko
Where we can have this option in our extension ?

Also we need "show me what was changed" to compare the local and the remote before sync. I'm not sure what is the best way to do - show a diff, or comparing a content of two files side by side. The aim is to make the information about the changes available to user.

faizanvahevaria added a commit that referenced this issue Mar 27, 2020
Store project wise repository address,
Alert to save project before use model-interchange operation
faizanvahevaria added a commit that referenced this issue Apr 2, 2020
… model-interchange operation,

push Untill user enter Correct Credential
@faizanvahevaria
Copy link
Contributor Author

faizanvahevaria commented Apr 7, 2020

@kshychko
Please test this feature from latest code.
Also let me know your answer about this comment : #15 (comment)

Tools -> Git -> Init/Clone
1. Enter repository URL
2. Select local path where to clone your repository

Tools -> Git -> Sync
1. If any local changes ->
- Enter username, email, password
- Enter commit message
- Push
2. If no any local changes -> Pull and reset

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants