unfoldingWord / tc-create-app

translationCore Create
https://create.translationcore.com/
MIT License
0 stars 5 forks source link

New Repo created on DCS when user selects Language -Resource for which the Repo does not exist. #1430

Open elsylambert opened 1 year ago

elsylambert commented 1 year ago
  1. Open TCC>Select Org
  2. Select Resource and Language (Make sure you do not have a Repo made for this combination eg. es-419_tq)
  3. Upon selecting the file in stepper, TCC shows warning that the Repository does not exist for the selected Language and resource. This is the expected behaviour.
  4. Now go to qa.door43.org and See your user Dashboard. Note that you ll see the Repository in step 3 added under your username.Screenshot 2022-11-09 at 11.19.56 AM.png
klappy commented 1 year ago

We will have to verify in the codebase but if my memory is correct there was a function called “ensureRepo” that will create the repo of it doesn’t exist. Not sure if that’s how it is implemented.

elsylambert commented 1 year ago

As far as Remember, when Repo doesn’t exist, we manually had to create a Repo for the language-resource combination(which can be now done by gateway-Admin).

Screenshot 2022-11-10 at 11 54 28 AM

Repo now gets created under git_username/lang_resource.