-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from DSD-DBS/staging
Staging
- Loading branch information
Showing
19 changed files
with
363 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright DB Netz AG and the capella-collab-manager contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import collections.abc as cabc | ||
import logging | ||
import subprocess | ||
|
||
from fastapi import HTTPException | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
def ls_remote(url: str, env: cabc.Mapping[str, str]) -> list[str]: | ||
try: | ||
proc = subprocess.run( | ||
["git", "ls-remote", url], capture_output=True, check=True, env=env | ||
) | ||
except subprocess.CalledProcessError as e: | ||
log.debug( | ||
{ | ||
"msg": "Exit code 128 during cloning of the repository " + url, | ||
"stdout": e.stdout, | ||
"stderr": e.stderr, | ||
"exitcode": e.returncode, | ||
} | ||
) | ||
if e.returncode == 128: | ||
raise HTTPException( | ||
status_code=500, | ||
detail={ | ||
"err_code": "no_git_model_credentials", | ||
"reason": "There was an error accessing the model. Please ask your project lead for more information. In most cases, the credentials need to be updated.", | ||
}, | ||
) | ||
else: | ||
raise e | ||
return proc.stdout.decode().strip().splitlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
Please follow these steps to request a session: | ||
|
||
1. Navigate to the `Workspaces` tab inside the webapplication. | ||
2. Please select your preferred worspace type. | ||
1. Navigate to the `Workspaces` tab inside the web application. | ||
1. Please select your preferred worspace type. | ||
|
||
!!! Question "Which type should I use?" | ||
Please have a look at [Session Types](types.md) | ||
|
||
3. Click the `Request session` button. | ||
4. You should see the state of your request. It can take up to 2 minutes, until we can assign the required resources. In most of the cases this takes under 30 seconds. | ||
5. You should now see a success message. Please click on `Connect to Session`. | ||
6. The session should appear in a new tab and Capella starts automatically. | ||
7. Please follow the instructions (depends on the workflow of your project) | ||
1. In case of read-only sessions, you have to select a project. Then, two more fields appear where you can choose the revision (i.e. branch or tag) and either the latest commit or complete commit history of the primary model of this project. Instead of choosing a single branch, it is possible to click the checkbox to mark that all branches should be downloaded. | ||
|
||
!!! note "" | ||
Choosing all revisions and only the latest commit clones only the latest commits for all branches. | ||
|
||
1. Click the `Request session` button. | ||
1. You should see the state of your request. It can take up to 2 minutes, until the required resources can be assigned. In most of the cases this takes under 30 seconds. | ||
1. You should now see a success message. Please click on `Connect to Session`. | ||
1. The session should appear in a new tab and Capella starts automatically. | ||
1. Please follow the instructions (depends on the workflow of your project) | ||
1. [Git](flows/git.md) | ||
2. [TeamForCapella](flows/t4c.md) | ||
1. [TeamForCapella](flows/t4c.md) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.