Clear-Bible / ClearDashboard

The ClearDashboard project
Other
1 stars 2 forks source link

[BUG]: Collab: Unable to Import a shared project with Split Tokens #1086

Open romanpoz opened 11 months ago

romanpoz commented 11 months ago

Description:

Unable to Import a shared project with Split Tokens. Unable to initialize database for project. ArgumentException, having message: An item with the same key has already been added. Key: 001001001002001

Steps To Reproduce:

Pre-Condition: (State of the application before the following Steps.)

Steps to reproduce the behavior:

  1. User1: Create a new project: (zz_SUR - NIV84, GEN only, Interlinealized)
  2. User1: Set Enable Token Splitting = True
  3. User1: Split a token (eg in GEN 1:1, splt "di" to "d" and "i" - see screenshot 1)
  4. User1: Share the project with User2
  5. User2: Import the new Shared Project

Expected Results:

Project imported successfully.

Actual Results:

Exception thrown attempting to initialize project database: ArgumentException, having message: An item with the same key has already been added. Key: 001001001002001

Additional Details:

screenshot 1:

Image

Found in Version:

1.2.0.18 1.3.0.1 Reproduced

Fixed in Version:

1.3.0.5

Test Cases:

(Linked Test Cases)

romanpoz commented 10 months ago

1.3.0.2 - Not reproduced. Import of the project completed successfully. However, the Interlinear shows "the" as a gloss (the same as for "di" before Splitting):

Image

Confirmed that this is the correct behavior (see requirements in Token Splitting #808, Implementation: section, 3.1 and 3.2).

romanpoz commented 10 months ago

Test Passed - in 1.3.0.5