GithubHelp home page GithubHelp logo

File Relationships about tripal_file HOT 6 CLOSED

tripal avatar tripal commented on August 28, 2024
File Relationships

from tripal_file.

Comments (6)

dsenalik avatar dsenalik commented on August 28, 2024

I have wondered about this for files that naturally come in pairs, such as fastq forward + reverse reads, or vcf + index file.
With minimal changes we could add a "File Name" column to the download field.
For example
addfilename

from tripal_file.

dsenalik avatar dsenalik commented on August 28, 2024

I really want this, but others may not, so I implemented this additional column as an optional setting, default is off.
That required building the whole administration page interface, so while I was in there I threw in a help page too!
See pull request #20

from tripal_file.

dsenalik avatar dsenalik commented on August 28, 2024

My Nov. 4 commit to pull request #20 resolves this by adding a way to enter a display_name value, which is the name displayed to the user. Comments welcomed!

from tripal_file.

dsenalik avatar dsenalik commented on August 28, 2024

To-do notes for a possible problem to fix. Under php 8 this becomes worse, but the new filename column in the chado.fileloc table seems to be missing its schema

Error observed is Warning: array_key_exists() expects parameter 2 to be array, null given in chado_insert_record() (line 609 of /var/www/2020-02-18/drupal-7.69/sites/all/modules/tripal/tripal_chado/api/tripal_chado.query.api.inc).

To test:

$x = chado_get_schema('fileloc');
var_dump($x['fields']);

... part of output omitted ...
  ["size"]=>
  array(3) {
    ["type"]=>
    string(7) "varchar"
    ["length"]=>
    int(1024)
    ["not null"]=>
    bool(false)
  }
  ["filename"]=>
  NULL
}

Found the bug in tripal_file.install line 808,
$schema['fields']['filename'] = $filename_schema;
forgot to define this variable!

from tripal_file.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.