archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
151 stars 52 forks source link

Unable to import remote model – empty model created instead #210

Closed Qhilm closed 1 year ago

Qhilm commented 1 year ago

Software versions

Expected Behaviour

I paste URL "https://gitlab.domain.com/myUser/coarchi.git" and it imports the model.

Actual Behaviour

"new model" is created, empty. No visible error message.

Steps to Reproduce the Behaviour

  1. Collaboration > Import Remote Model to Workspace
  2. Paste URL "https://gitlab.domain.com/myUser/coarchi.git" (I also tried without .git at the end)
  3. Enter username and password

troubleshooting done:

  1. Starting point: working coarchi, could commit and publish. Team member could not import.
  2. navigated to https://gitlab.domain.com/myUser/coarchi/ and checked I could see my latest commit.
  3. "Main" is a stale branch, my commit went to "master" branch.
  4. Then I uninstalled archi and all config files on my machine to troubleshoot.
  5. Reinstalled archi 5.0.2
  6. Reinstalled coArchi 0.8.7
  7. Tried to import, but same as my team member, I end up with an empty "new model".

There is no error log attached because "view error log" button is greyed out.

Am I typing the URL wrong somehow? Is that a problem that my model is under the "master" branch instead of the "main" one?

Phillipus commented 1 year ago

Hi, yes, please ensure that the default branch on the git server is "master".

Qhilm commented 1 year ago

thanks, I changed the default branch for this repository only to "master".

Now nothing happens at all when I attempt to import https://gitlab.domain.com/myUser/coarchi/

I also tried

https://gitlab.domain.com/myUser/coarchi/model/ https://gitlab.domain.com/myUser/coarchi.git

same result, nothing happens, no model is created or added, no error message, and the "view error log" button is greyed out.

Phillipus commented 1 year ago

When you import from the git server, the model should appear in the Collaboration Workspace. Then you have to double-click it to open the model.

Qhilm commented 1 year ago

🤦 how did I miss that...

ok, all good again, thanks a lot, you saved me!!