Publish is not publishing more than one linking record #1867
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug Fix
Issue #1843
Tripal Version: 4
NOT COMPLETE!
Putting up as draft so that the tests run automatically to ensure I don't break anything ;-p
Description
There are a number of fields with unlimited cardinality (e.g. properties and linking fields). Currently if you have multiple records added to chado that these fields would normally show, publish will only show the first one. Furthermore, I'm not sure it's even doing that correctly. For example, if you have multiple contacts linked to a project, when you publish the projects only the first contact link will be published.
Testing?
1-4. Create two contacts, and two projects. Do not put a contact on the project or vice versa.
5. Generate links with this SQL:
insert into chado.project_contact (project_id, contact_id) values (1,2), (1,3), (2,2), (2,3);INSERT 0 46. Publish contact and project and run the job
8. Rebuild cache
drush cache:rebuildCurrently you will observe that only one contact is present on each project, and only one project present on each contact. There should actually be two contacts on each project and two projects on each contact.