-
Notifications
You must be signed in to change notification settings - Fork 12
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
Reimport Existing Project with Updated Text From USFM #3559
Comments
|
|
@benjore Is the "import" icon ok for this? The add file to folder icon is a bit misleading, plus doesn't exist in Bootstrap's icons. Here's an actual screenshot using bootstrap: |
@richmahn I don't like that. Are there any other options? |
@benjore Easiest is to use the Bootstrap3 Glyphicons, but we could try to make another svg icon like we did for invalidate. https://getbootstrap.com/docs/3.3/components/ |
@benjore I think the glyphicon-level-up is kind of similar to what you have, and has a nice "re"import feel to it (search for that icon name in the page) |
@richmahn What I used was font awesome. I still like that one best. |
@benjore What I finally realize I need are how various prompts and warnings should look, from size of window, to buttons, to verbiage, and when in the process one can cancel the re-import due to them realizing things aren't quite right. Off the top of my head, realizing how much more "noisy" the reimport process is:
|
@benjore Never mind about the first one, I already run the USFM validator which throws the proper message. |
@richmahn I apologize for this, but I'm gonna change things slightly. It think it will improve the reimport process and hopefully will lessen your work. When a user clicks "Reimport", the process should be the same as a regular import (e.g. don't automatically fill in (c) info, project info, etc.). The user should fill in the "Stepper" info as if it were a regular Import. Currently, the user is only informed that the project is a duplicate after the whole "Stepper" is completed. This needs to change. When the user clicks "Continue" on the "Project Information" step of the "Stepper", tC should check to see if it is a reimport. That is when the reimport warning should be thrown. If I was trying to reimport an |
I didn't even know we could delete projects. How does one go about doing that? |
Ah, you meaning manually from the File browser? Interesting... |
Going to fail this while doing further investigation. |
@cckozie - this may not make a difference, but are you doing "move to trash" or "delete immediately"? |
@PhotoNomad0 - I'm doing a 'move to trash' |
0.10.1 (ee3f8f5)
Steps to reproduce
|
@cckozie Yes, #2 is because in Ben's diagram of this whole workflow, reimport isn't really known about until the user has selected a project and renamed it, then knowing it is a reimport. I think Ben spoke about removing it, but in my opinion it helps the user know he/she can reimport a project, yet this button only does local import, not both local and online. Probably best to do away with it. The menu "Reimport Project" simply does what the FAB does for "Import Local" |
@cckozie Understand all your issues on repopulating project details and such, as I brought all those up with Ben. Yet this has actually become more of an "overwrite" or "merge" feature (rather than a "reimport" feature) where the user should just go through the regular import of a local or online project, but once they give it an identifier/book/language which generates a project name, and that name exists, then they are prompted if they want to overwrite, and if they do, we keep alignment/selections as needed (importing new alignments if there is alignment data in the new import). So we really shouldn't have the "Reimport Project" option as that seem to be misleading and also what you base your expectation on as I did. @benjore We probably need this to be considered "Overwrite" concept of imports with the same given project name. There is so much we don't know until they finally name the project and specify the book and language in the Project Details page to be able to force them to select the right book/language as Koz (and I) wanted for a reimport feature. All that is really needed is to do away with the "Reimport Project" context menu for projects and be told/prompted when existing project will be overwritten/merged. |
Recreate on 0.10.0 (db8cd53) with Hindi project. |
@richmahn - it looks like a timing problem. @RoyalSix doesn’t see the problem when he has debug tools open, but sees a crash when he doesn’t. Looks like the project is is not being deleted from the projects folder before trying to copy the new one from imports. Maybe try Spidel's fix of renaming the old project before deleting it and after that moving from imports? that way you shouldn't see any collisions when moving. And then if the renamed old project is still around, you could see if there was a permissions problem like a file/folder was locked. |
Sorry to be late to the party!
Let's not do these for this release. We can move them into a new issue. @cckozie Seeing that this won't be possible, would you rather that we hide the "Reimport" option from the 3-dot menu? Created #4756 to add back the Reimport option |
@richmahn As suggested above, please remove the 'Reimport' option from the 3 dot menu. |
QA Fail/Fix - #3559 - Removes 'Reimport Project' from project context menu
0.10.0 (9b04f29) Using project 55-1TI.usfm.zip The problem noted '5 days ago' above still exists and is possibly worse.
|
0.10.0 (4566b9d) |
QA Fail - #3559 - targetBible missing when reimporting
* tW Rewrite QA Fail Fixes (#4662) * added tc-ui-toolkit version * Merge branch 'develop' of https://github.com/unfoldingWord-dev/translationCore into feature-jay-4318 # Conflicts: # package-lock.json # package.json * added code to improve check invalidation detection * removed console logs * Working on unit tests. * path cleanup. * loaded entire bibles * removed unused code * added tests * fixed bug in loading book resource * Initial User Story Template * Fix for overwrite button on usfm import. * simplified. * simplified - undo. * Fix to update project name when stepper is finished. * fix to wait on promise. * Working on tests. * Fix for already imported projects. * fix unit tests. * fix unit tests. * more work on online import. * tweaking comments. * updated feedback api endpoint (#4666) * fix to handle double validate on online import. * exposed more apis from tc * fix to handle double validate on local import. * comment fixes. * more work on online import. * renaming repo * fixed deleting project file * updated group menu when deleting project file * working implementation without passing project repo name * removed bad code from tc api * added api documentation * Addressed QA fail issues for 3670 (#4663) * Added tc-ui-toolkit 0.9.13 * added new package-lock.json * added new version of tc-ui-toolkit * fixed case of Overwrite for consistancy. * moved git functions to corresponding file * Update repos via translationCore Submodule Updater * added documentation and tests * Update repos via translationCore Submodule Updater * removed white space changes * added small fixes * added git mock tests * added more tests * Updated English udt references to ust * Bumped version number * Fix - #4613 - Removes the unneeded %language% file from the locale dir * Adds test to make sure we only have two locale files * Changes test to just make sure no file names contain % * Fix syntax error breaking local project rename. * Update repos via translationCore Submodule Updater * separate out prompting from renaming. * Update repos via translationCore Submodule Updater * merging fixes. * bumped tc-ui-toolkit version number to 0.9.15 * updated package-lock.json * Feature - #3559 - Reimport and full-project invalidation check (#4562) * progress * Adding file handling * Update to USFM3 import * Fixes to reimport * Work before reverting back * Revert back to upstream to implement differently * Changes to allow reimport * Work on invalidations of all tools * Work on invalidations of all tools * Finalization of reimport code * Code cleanup * Code cleanup * Invalidation of WA from import works * Invalidation of WA from import works * Update to tests * Adds tests * Tests * Tests * Fix to tests * Fix onlineimport tests * Fix linting issues * After merge * More fixes * Fixes to import * Fixes alignment from USFM3 * Fixed unit tests * Fixes WA reimport * Fix to Local Import test * Refactors reimport functions to merge functions * Reverts ProjectActions * update * test fixes * Removed invalidation code * Updates to workflow * Update to tests * Update tests * Updated to work with the Overwrite renaming feature * Adds hindi translations for QA * Code cleanup * fixes to leave merge project in imports folder. * fixes for unit tests. * fixes for project locations on overwrite/merge. * fixes for online import. * Removed test of en hi comparison * Code cleanup * fixes for online import snapshots. * fix rename alert on selecting project. * added delay after overwrite warning before project list is refreshed. * New translations English-en_US.json (Hindi) * Update repos via translationCore Submodule Updater * adding tc-ui-toolkit 0.9.16 * New translations English-en_US.json (Hindi) (#4690) * Update repos via translationCore Submodule Updater * updated word-aligner to restore missing USFM tags. * fix to initialize project details save button to enabled if fields are valid. * USFM Export Bugfix (#4686) * added initial fix * fixed tests * fixed tests * added updated package-lock.json * updated word-aligner to restore missing USFM tags. * fix for Hindi duplicate keys. * Fixes to get DCS renaming working. Happy path working now. * removed invalidated check/alignment count from tool cards * added create new repo support. * updated snapshots * changed some console errors to warnings * Fix syntax error breaking local project rename. * Fix UI bug. * Update repos via translationCore Submodule Updater * fix findRepo to catch rejects. Added some error handling * fix findRepo to resolve results * updated feedback to handle circular data logs correctly * Update repos via translationCore Submodule Updater * fixes to dialog text and button text. * fixes to dialog text and button text. * Fix unit test * merge develop. * merge develop. * revert change. * fix unit tests. * Update repos via translationCore Submodule Updater * unit test fixes. * New translations English-en_US.json (Hindi) * Update repos via translationCore Submodule Updater * fixed spelling in locale * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * New translations English-en_US.json (Hindi) * New translations English-en_US.json (Hindi) * fixes for git error handling. * Update repos via translationCore Submodule Updater * lint fix * added fixes for test * added unit tests for GogsApiHelpers. * simplified some actions * FeedbackDialog - fixed setting of initial message, added display on reduce state, added callback on feedback close. * updated api docs * updated api docs * added reference to tool props docs * init * removed fs.setMockFS * updated snapsot and return old implementation * updated return types in docs * updated tc-tool dependency * worked on feedback logging * console.log removes * cleaned up the status bar container * streamlined props in status bar container * fixed feedback dialog disappearing * bumped tc-tool version * working on unit tests. * working on unit tests. * fix string. * Added checks to make sure project belongs to current user and user is logged on. working on unit tests. * Update repos via translationCore Submodule Updater * merged with develop * updated tc-tool package * QA Fail - #3559 - Fixes Local Reimport (#4716) * Fixes for qaFail and other bugs * Do all import deleting in Workflow * Quick fix to update save location after overwrite merge. * Fixes lint error * fixed lint error. * Made fixes to online import similar to local import. Local import made fix to timing issue that would cause second project info prompt. * working on unit tests. * fix for not showing details page of import with valid project name. * Fixed wrong translation key on button. * Update repos via translationCore Submodule Updater * New translations English-en_US.json (Hindi) * added email to feedback and improved speed * updated tc-ui-toolkit * New translations English-en_US.json (Hindi) (#4726) * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * working on updating origin on door43 upload. Fix to remove remote before setting it. * fix method name. * New translations English-en_US.json (Hindi) * Fix to use token to push to new repo. * fix unit tests. * New Crowdin translations (#4733) * New translations English-en_US.json (Hindi) * New translations English-en_US.json (Hindi) * fix comment. * Fix issue that Deleting Imports would throw an exception when folder did not exist. * fix unit test * fix unit test * Made Greek info popup consistent throughout tC (#4735) * bumped tc-ui-toolkit version * reduced tc app version to 0.10.0 * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * added timeout fix (#4739) * fix for looking for duplicates if current project is in imports folder. * Update repos via translationCore Submodule Updater * fixes to handle all the project name formats and extract correct bible id. * Fix for when project id changes on import. * refactoring. * lint fixes. * updated unit tests. * Removes 'Reimport Project' from project context menu * Put back reimport_project to be removed automatically by crowdin * fixed unit tests * New translations English-en_US.json (Hindi) * New Crowdin translations (#4762) * New translations English-en_US.json (Hindi) * New translations English-en_US.json (Hindi) * New translations English-en_US.json (Hindi) * Update repos via translationCore Submodule Updater * Fix - #4763 - Fixes online import error * New translations English-en_US.json (Hindi) * Fixes test for Windows by using path.join * New translations English-en_US.json (Hindi) * Fixes test for Windows by using path.join * Make the move from imports to projects sync * Fix to clear out settings from reducers before import. * Fix to clear out settings from reducers before import. * Unit test fix. * Clean up. * revert tool * Update repos via translationCore Submodule Updater * Update repos via translationCore Submodule Updater * merge latest wordAlignment * Fix for bug that continue button on project details page started disabled on migration even though details were valid. * Comment fix. * updated WA * base off release 0.10.0 and pull in changes from bugfix-klappy-4842. * base off release 0.10.0 and pull in changes from bugfix-klappy-4842. * Updated change log for v0.10.0 release.
Story
As a checker, I want to be able to export a tC project as USFM, load it into another app, export from that app as USFM, and reimport into the same tC project so that I can make use of features in other apps without redoing work in tC.
As an aligner, I want to be able to make changes to my translation in a separate tool and then reimport the text from a USFM2/3 file so that I can realign the text that I changed.
Notes
Related to #3086 & #3763
The text was updated successfully, but these errors were encountered: