tripal icon indicating copy to clipboard operation
tripal copied to clipboard

Tripal 4 Fields -upgrading core fields

Open laceysanderson opened this issue 2 years ago • 15 comments

Core Tripal 4 Development Task

Branch Name: tv4g1-issue1414-[name of field you are working on]

This issue is providing an organization spot to upgrade all the core Tripal fields. Please comment here with the field you are going to upgrade and create a branch using the naming schema above to contain your work. When done, create a PR for your field.

Here is the documentation for Tripal Fields

Fields in order of complexity

  • sio__references - with a complete set of linker fields now available, this specialized field is likely no longer needed 😐

Some other fields needed are listed here https://github.com/tripal/tripal/issues/1550#issuecomment-1623912019

laceysanderson avatar Feb 06 '23 17:02 laceysanderson

I am working on the local__contact field :grin:

dsenalik avatar Feb 06 '23 17:02 dsenalik

I would like to work on data__sequence_length

srobb1 avatar Feb 06 '23 17:02 srobb1

Just FYI.... we have a new way to add fields via YAML files which is currently in PR #1413 so the documentation for fields needs to be updated. Also, we have a new naming convention that was discussed in the Hackathon in January. @Ferrisx4 I don't remember where that was documented, can you link to it here?

spficklin avatar Feb 06 '23 17:02 spficklin

Yes, people can just use the old way for now and we'll update the way fields are added when that PR get's merged. The naming conventions were a PR in the TripalDoc repo that I just merged.

You can find them here: https://tripaldoc.readthedocs.io/en/latest/dev_guide/module_dev/fields.html#naming-convention Screen Shot 2023-02-06 at 11 51 56 AM

laceysanderson avatar Feb 06 '23 17:02 laceysanderson

I also worked on the checksum

srobb1 avatar Feb 28 '23 17:02 srobb1

Sukha is working on local__source_data

srobb1 avatar Feb 28 '23 17:02 srobb1

My pull request #1419 which contains both length and md5 are ready for review.

srobb1 avatar Feb 28 '23 17:02 srobb1

I would like to attempt schema__alternate_name next. I have started on it and am having an error that I also get when I try to add a new chado organism reference to my gene. see issue #1432 . I used the organism field as a starting point since there are primary and foreign keys.

srobb1 avatar Feb 28 '23 21:02 srobb1

ChadoAnalysisDefault field

I am creating branch tv4g1-issue1414-ChadoAnalysisDefault to implement the ChadoAnalysisDefault field. This field is needed for issue #1550.

I am testing it on the phylogenetic tree content type, but we don't have a dbxref field yet, so right now you can't manually enter a tree. To be able to test, I have to temporarily do two things to allow me to create a phylotree record:

  1. ALTER TABLE chado.phylotree ALTER COLUMN dbxref_id DROP NOT NULL;
  2. In tripal_chado/src/Plugin/TripalStorage/ChadoStorage.php line 1048 I temporarily add a return(); to disable validation.

Then I can create a tree, and test adding and changing an analysis record.

Pull request: #1578

dsenalik avatar Jul 12 '23 17:07 dsenalik

Hi Team, I would like to work on data__sequence_coordinates.

imnuvi avatar Aug 05 '23 17:08 imnuvi

I'm sorry I didn't take the time to update the field list here, that field is already being worked on in branch tv4g1-issue1414-data__sequence_length by Sukha I think the other two are still available, as @srobb1 has not posted on schema__alternate_name since February.

dsenalik avatar Aug 06 '23 21:08 dsenalik

Thanks @dsenalik for the info, I am starting work on schema__alternate_name

imnuvi avatar Aug 09 '23 04:08 imnuvi

PR #1599 implements the ChadoContactDefault field

dsenalik avatar Aug 09 '23 16:08 dsenalik

Thanks for all the hard work here everyone! I'm removing the "Good first issue" tag from this issue as the only remaining field listed here is the relationship field, which is a harder one. That said, if you are looking for another issue to work on, I have tagged a few more issues and expanded their descriptions with information for how to fix them :-)

laceysanderson avatar Feb 18 '24 16:02 laceysanderson

Thanks for the reviews and merges. Appreciate your help.

pdtouch avatar Feb 27 '24 16:02 pdtouch