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

numbering of anchor modules is nonsequential when adding linked relation modules #233

Open
kvesik opened this issue Oct 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kvesik
Copy link
Collaborator

kvesik commented Oct 30, 2023

Currently, the way intended way for SLPAA to number modules (of any individual type: location, hand config, etc) is to simply assign them sequentially. When a new module is added, it gets assigned the next available number. If a module is deleted, all the modules that were numbered higher get demoted one, so there's no "empty" (unassigned) number.

However, one of our transcription coders has pointed out that there is a particular set of conditions under which a number gets skipped. There doesn't seem to be any detriment to any of the other functionality (yet), but it's possible that the apparent "skipping" actually involves assigning numbers to two copies of the module but only displaying one, which could potentially affect future search functionality.

To reproduce:

  1. Click "Add movement module" or "Add location module" from the Sign menu panel on the main screen.
image
  1. Fill in at least the timing and hand information, so that the "Save and add associated Relation module" button is enabled.
  2. Click the "Save and add associated Relation module" button.
  3. Add whatever information you like to the Relation module (though you don't have to actually add any at all since it already has timing, X and Y pre-filled).
  4. Click "Save and close" on the Relation module.
  5. Click "Save and close" (or "Save and add another") on the anchor (location or movement) module.
  6. Once you return to the main screen, you'll see that the anchor module you added is numbered one higher than expected. For example, here rather than H1.Mov1 I have H1.Mov2.
image

Related info:

  • The same skipped numbering occurs even if you cancel out of the linked Relation Module without ever saving it. The anchor module will still have a higher number than it should.
  • This bug does NOT occur if you skip step 6 in the list above (ie, after closing the linked Relation Module dialog, just "Cancel" the anchor module dialog.
  • Therefore this must have something to do with numbering the pre-saved anchor module, and then assigning the re-saved anchor module a new number rather than keeping the pre-saved number.
@kvesik kvesik added the bug Something isn't working label Oct 30, 2023
@kvesik
Copy link
Collaborator Author

kvesik commented Oct 30, 2023

@stannam there's a lot of somewhat convoluted relationships between the anchor module dialogs and the relation module dialog, since both unfortunately need to refer to each other. Let me know if you need any help detangling the web of mystery! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants