Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3186

Fix analysis name and output file name defaults not appearing

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: Testing on bvctest3.bioviz.org revealed that the Analysis Name and Output file name fields of the Analysis menu are not being autofilled correctly and are appearing blank. The Output file name should be filled with the default value provided by CyVerse (for example: FILE.bw). The Analysis Name I believe we were autofilling with "Analysis Name" though this might have been changed as the current production version of BioViz Connect is behind master.

      Task: Provide the appropriate default values for the Analysis Name and Output file name fields.

      Note: file extension for "bigwig" format is "bw".

      Note: Default file name should resemble the input ".bam" file. For example:

      • input file name: "A big old bam filewith stuff in it.sorted.awesome.bam" output file name (filled in by the interface): "A big old bam filewith stuff in it.sorted.awesome.bw"

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment -

            Note that this bug is a regression. The current production version of Bioviz Connect is behind master and the file name defaults appear correctly. The bvctest3 servers are running the master BioViz Connect and the file name defaults do not appear, so something must have broken in the last year.

            Show
            nfreese Nowlan Freese added a comment - Note that this bug is a regression. The current production version of Bioviz Connect is behind master and the file name defaults appear correctly. The bvctest3 servers are running the master BioViz Connect and the file name defaults do not appear, so something must have broken in the last year.
            Hide
            nfreese Nowlan Freese added a comment - - edited

            Trying to find regression:

            The issue was not present as of commit 030c3b3 on 2021-09-28 for IGBF-2923 Fix filepath error and add index file to scaled coverage graph

            Show
            nfreese Nowlan Freese added a comment - - edited Trying to find regression: The issue was not present as of commit 030c3b3 on 2021-09-28 for IGBF-2923 Fix filepath error and add index file to scaled coverage graph
            Hide
            nfreese Nowlan Freese added a comment -

            Thinking out loud:

            Lots of changes to analyses in commit 08063d6 on 2021-09-22 and we know that commit 030c3b3 the issue with default output was fine as of 2021-09-28 and we know current bioviz connect release does not have commits after 1a2ba49 on 2021-10-12 but there was also a change to analyses on d9ad8c2 on 2021-10-14

            Potential change to either rightpanel_tags.py or analysisOperations.js

            Show
            nfreese Nowlan Freese added a comment - Thinking out loud: Lots of changes to analyses in commit 08063d6 on 2021-09-22 and we know that commit 030c3b3 the issue with default output was fine as of 2021-09-28 and we know current bioviz connect release does not have commits after 1a2ba49 on 2021-10-12 but there was also a change to analyses on d9ad8c2 on 2021-10-14 Potential change to either rightpanel_tags.py or analysisOperations.js
            Hide
            karthik Karthik Raveendran added a comment - - edited

            Every app element in Cyverse has an 'arguments' attribute in its app description and this information is extracted and saved in the 'arguments' table in Bioviz Connect database when SyncAppDatatoBioviz is run. The default value for the output file comes from this table also a unique parameter id.

            I am not sure if this is a recent change but for Bioviz Connect apps the arguments attribute is empty but the default value is available in 'defaultValue' attribute. Adding a column in the inputdetails table and changing the UI logic to solves the problem but not sure if this is the best solution.

            UPDATE: This is Nowlan: Karthik and I discussed the issue and were able to locate the issue as being refactoring to the sync apps database endpoint (most likely) that requires a change to the database to store the default output information.

            Show
            karthik Karthik Raveendran added a comment - - edited Every app element in Cyverse has an 'arguments' attribute in its app description and this information is extracted and saved in the 'arguments' table in Bioviz Connect database when SyncAppDatatoBioviz is run. The default value for the output file comes from this table also a unique parameter id. I am not sure if this is a recent change but for Bioviz Connect apps the arguments attribute is empty but the default value is available in 'defaultValue' attribute. Adding a column in the inputdetails table and changing the UI logic to solves the problem but not sure if this is the best solution. UPDATE: This is Nowlan: Karthik and I discussed the issue and were able to locate the issue as being refactoring to the sync apps database endpoint (most likely) that requires a change to the database to store the default output information.
            Hide
            karthik Karthik Raveendran added a comment - - edited

            Changes have been implemented See commit

            Changes to be made in Database before testing:
            Open terminal in project virtual environment and type the following commands

            • mysql
            • USE BioVizCyverse;
            • SHOW TABLES;
            • SELECT * FROM InputDetails;
            • [ALTER TABLE InputDetails ADD DefaultValue VARCHAR(5000) AFTER FormType;]
            Show
            karthik Karthik Raveendran added a comment - - edited Changes have been implemented See commit Changes to be made in Database before testing: Open terminal in project virtual environment and type the following commands mysql USE BioVizCyverse; SHOW TABLES; SELECT * FROM InputDetails; [ALTER TABLE InputDetails ADD DefaultValue VARCHAR(5000) AFTER FormType;]
            Hide
            nfreese Nowlan Freese added a comment -

            Ready for pull request.

            Show
            nfreese Nowlan Freese added a comment - Ready for pull request.
            Show
            karthik Karthik Raveendran added a comment - PR Submitted. https://bitbucket.org/nfreese/bioviz-connect/pull-requests/278/igbf-3186-fix-analysis-output-filename
            Hide
            nfreese Nowlan Freese added a comment -

            Merged

            Show
            nfreese Nowlan Freese added a comment - Merged
            Hide
            nfreese Nowlan Freese added a comment -

            One change: Need to split off the fileName extension before adding the default filetype extension in analysisOperations.js
            Right now a file named test.bam appears as test.bam.bigwig when it should appear as test.bigwig

            Show
            nfreese Nowlan Freese added a comment - One change: Need to split off the fileName extension before adding the default filetype extension in analysisOperations.js Right now a file named test.bam appears as test.bam.bigwig when it should appear as test.bigwig
            Show
            karthik Karthik Raveendran added a comment - Changes made. See commit PR Submitted. https://bitbucket.org/nfreese/bioviz-connect/pull-requests/281/igbf-3186-change-output-filename-format
            Hide
            nfreese Nowlan Freese added a comment - - edited

            Merged

            [~aloraine] - Could you please rerun the playbooks for bvctest3/7?

            Show
            nfreese Nowlan Freese added a comment - - edited Merged [~aloraine] - Could you please rerun the playbooks for bvctest3/7?
            Hide
            ann.loraine Ann Loraine added a comment -

            Playbooks are run and new code is deployed on bvctest3 and 7.

            Show
            ann.loraine Ann Loraine added a comment - Playbooks are run and new code is deployed on bvctest3 and 7.
            Hide
            nfreese Nowlan Freese added a comment -

            Output file name looks good.

            Note: I am unable to test if an analysis job completes successfully as all jobs on multiple accounts and using multiple owned/not owned apps are all failing immediately. It would appear there is an issue with CyVerse.

            Closing ticket.

            Show
            nfreese Nowlan Freese added a comment - Output file name looks good. Note: I am unable to test if an analysis job completes successfully as all jobs on multiple accounts and using multiple owned/not owned apps are all failing immediately. It would appear there is an issue with CyVerse. Closing ticket.

              People

              • Assignee:
                karthik Karthik Raveendran
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: