Skip to content
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

Add ability to use QA server in tCore #7449

Open
PhotoNomad0 opened this issue Nov 10, 2022 · 11 comments
Open

Add ability to use QA server in tCore #7449

PhotoNomad0 opened this issue Nov 10, 2022 · 11 comments
Assignees
Labels

Comments

@PhotoNomad0
Copy link
Contributor

Story Explanation

User Story

As a [type of user], I want [some goal] so that [some reason].

Features / Specifications

  • [ ]
  • [ ]
  • [ ]

Definition of Done

  • [ ]
  • [ ]
  • [ ]

Additional Context

Mockups

@PhotoNomad0
Copy link
Contributor Author

PhotoNomad0 commented Nov 10, 2022

Notes:

In GWE here are the paths:

export const BASE_URL = 'https://git.door43.org'
export const QA_BASE_URL = 'https://qa.door43.org'

@PhotoNomad0
Copy link
Contributor Author

PhotoNomad0 commented Nov 11, 2022

Notes:

  • a toggle for QA server in tCore is a bit involved - each tool is independent, and tc-source-content-downloader is independent.
  • qa server needs to work for:
    • login
    • resource downloads
    • catalog next queries
    • project uploads/downloads

@PhotoNomad0
Copy link
Contributor Author

@birchamp @elsylambert - We will need an easy way for user to remove downloaded QA content so that it does not impact operation of the regular tCore. Have a few options:

  1. use a different resource folder for QA (e.g. resource-QA). Will consume more disk space, but no chance of contamination of the resources in the regular app. Also add another button to bottom of resource download dialog to "Delete All QA resources" to free up disk space once they are done testing.
  2. add way of resetting resources to just the bundled resources
  3. flag qa downloaded resources in manifest so they can be removed easily. Also add another button to bottom of resource download dialog to "Delete All QA resources"

It seems that option one is the safest.

@birchamp
Copy link
Contributor

@PhotoNomad0 it also seems like option 1 is the simplest to develop. Since this isn't intended for every user, I think the disk space issue is a good compromise.

Also I think it should be obvious in the titlebar or a UI color or something that the user is on the QA server.

@elsylambert
Copy link

elsylambert commented Nov 11, 2022

@PhotoNomad0 Yes Option 1, it looks similar to the way we have pre-released Resources deleted. And downloads in a separate folder like we have for USFM URLs
Screenshot 2022-11-11 at 8 55 40 AM

Since we are adding a way to toggle between QA and Prod servers, Would it make sense to add the option to toggle on the user login page.
Screenshot 2022-11-11 at 8 52 07 AM
Screenshot 2022-11-11 at 8 50 42 AM

@PhotoNomad0
Copy link
Contributor Author

PhotoNomad0 commented Nov 14, 2022

Notes:

  • when in QA mode - tC will store data in ~/translationCore-QA

  • the safest way to enable QA mode is at startup. Trying this to enable QA mode before startup:

    • on Mac to enable QA mode before startup, in terminal window do echo "https://qa.door43.org" > ~/translationCore/QA_MODE to disable rm ~/translationCore/QA_MODE
    • on Windows to enable QA mode before startup, in command Prompt do echo https://qa.door43.org > %HOMEDRIVE%%HOMEPATH%\translationCore\QA_MODE to disable del %HOMEDRIVE%%HOMEPATH%\translationCore\QA_MODE
  • each time you switch in and out of QA mode, you will have to log out and log in again. <= Changed to save user credentials by server in QA mode. So the first time you switch servers, you will have to log in again.

@PhotoNomad0 PhotoNomad0 self-assigned this Nov 15, 2022
@PhotoNomad0
Copy link
Contributor Author

This is how we are showing we are in QA mode:

Screenshot 2022-11-15 at 6 59 19 AM

@PhotoNomad0
Copy link
Contributor Author

@elsylambert - Have a test build for you to look at: translationCore 3.4.0-QA (da05ef4)

See Notes above on how to enable QA mode.

@PhotoNomad0
Copy link
Contributor Author

USFM import not preserving alignments - looks like folder naming problem.

@PhotoNomad0 PhotoNomad0 changed the title SPIKE: What is the effort to point tCore to QA server? What is the effort to point tCore to QA server? Dec 5, 2022
@PhotoNomad0 PhotoNomad0 changed the title What is the effort to point tCore to QA server? Add ability to use QA server in tCore Dec 8, 2022
@PhotoNomad0
Copy link
Contributor Author

@elsylambert This is in translationCore 3.4.0-QA (d482d09).

@elsylambert
Copy link

Looks good in translationCore 3.4.0-QA (d482d09).

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

No branches or pull requests

3 participants