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

Edit don't over-write contents.txt in Quickload Saver

    Details

    • Type: Improvement
    • Status: To-Do (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: When using the QuickLoad Saver app, a user saves a quickload folder to their local system. If the user creates one quickload, and then attempts to create another quickload using the same quickload folder, the files are added to the quickload. This is good, as quickloads are meant to contain many genomes/files. However, the contents.txt needs to be appended to as well, but currently it is being overwritten.

      Task: Append to the contents.txt file instead of overwriting it when a user uses Quickload Saver to save a quickload on top of a quickload.

      Note: To test, follow the instructions here but save the T Rex genome to the Unicorn quickload.

        Attachments

          Issue Links

            Activity

            nfreese Nowlan Freese created issue -
            nfreese Nowlan Freese made changes -
            Field Original Value New Value
            Epic Link IGBF-1765 [ 17855 ]
            nfreese Nowlan Freese made changes -
            Link This issue relates to IGBF-510 [ IGBF-510 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            The data should be added but not necessarily appended. We should not have the same line repeated multiple times.

            Show
            ann.loraine Ann Loraine added a comment - The data should be added but not necessarily appended. We should not have the same line repeated multiple times.
            inaylor Irvin Naylor (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Summary Append to contents.txt for Quickload Saver Edit don't over-write contents.txt for Quickload Saver
            ann.loraine Ann Loraine made changes -
            Summary Edit don't over-write contents.txt for Quickload Saver Edit don't over-write contents.txt in Quickload Saver
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Assignee Irvin Naylor [ inaylor ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2 [ 117 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            inaylor Irvin Naylor (Inactive) made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            inaylor Irvin Naylor (Inactive) made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            Hide
            inaylor Irvin Naylor (Inactive) added a comment -

            Most of my work for this ticket has been in CreateQuickloadAction.java at around lines 118-144

            In a nutshell the class takes a string of the genome name and description before putting them both into a hashmap, along with the genome builder. The contents of the hashmap will be what will be written into the file on output.

            A folderpath variable containing the user's selected folder path

            From there, a for loop the size of the hashmap's size will be created in which it will append the genome's name onto the filepath.

            My main solution was to place a if conditional within the for loop that checks if the user is selecting an already existing quickload directory with (presumably) its own contents.txt file. If that case is true, then it will instead have the bufferedwriter append the map.get(quickloadFiles[i]) onto a new line just below the final line of the existing contents.txt's contents. My last roadblock was trying to implement a way for the program to tell where the last line of an exisiting content ends. And there is the question of how to ensure there are no duplicate entries in case someone is slecting the same quickload.
            There is documentation for an append method with the bufferedwriter.

            Will pause work on this ticket for now.

            Show
            inaylor Irvin Naylor (Inactive) added a comment - Most of my work for this ticket has been in CreateQuickloadAction.java at around lines 118-144 In a nutshell the class takes a string of the genome name and description before putting them both into a hashmap, along with the genome builder. The contents of the hashmap will be what will be written into the file on output. A folderpath variable containing the user's selected folder path From there, a for loop the size of the hashmap's size will be created in which it will append the genome's name onto the filepath. My main solution was to place a if conditional within the for loop that checks if the user is selecting an already existing quickload directory with (presumably) its own contents.txt file. If that case is true, then it will instead have the bufferedwriter append the map.get(quickloadFiles [i] ) onto a new line just below the final line of the existing contents.txt's contents. My last roadblock was trying to implement a way for the program to tell where the last line of an exisiting content ends. And there is the question of how to ensure there are no duplicate entries in case someone is slecting the same quickload. There is documentation for an append method with the bufferedwriter. Will pause work on this ticket for now.
            ann.loraine Ann Loraine made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2021 Apr 19 - Apr 30 [ 117, 118, 119 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2021 Apr 19 - Apr 30 [ 117, 118, 119 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ]
            ann.loraine Ann Loraine made changes -
            Assignee Irvin Naylor [ inaylor ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2023 Jan 30 [ 117, 118, 163 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked lower
            nfreese Nowlan Freese made changes -
            Epic Link IGBF-1765 [ 17855 ] IGBF-1908 [ 17998 ]
            nfreese Nowlan Freese made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2023 Feb 1 [ 117, 118, 163 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2023 Feb 1 [ 117, 118, 163 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked lower
            nfreese Nowlan Freese made changes -
            Assignee Karthik Raveendran [ karthik ]
            nfreese Nowlan Freese made changes -
            Description Situation: When using the QuickLoad Saver app, a user saves a quickload folder to their local system. If the user creates one quickload, and then attempts to create another quickload using the same quickload folder, the files are added to the quickload. This is good, as quickloads are meant to contain many genomes/files. However, the contents.txt needs to be appended to as well, but currently it is being overwritten.

            Task: Append to the contents.txt file instead of overwriting it when a user uses Quickload Saver to save a quickload on top of a quickload.

            Note: To test, follow the instructions [here|https://wiki.transvar.org/display/ITD/Quickload+Saver] but save the T Rex genome to the Unicorn quickload.
            Situation: When using the QuickLoad Saver app, a user saves a quickload folder to their local system. If the user creates one quickload, and then attempts to create another quickload using the same quickload folder, the files are added to the quickload. This is good, as quickloads are meant to contain many genomes/files. However, the contents.txt needs to be appended to as well, but currently it is being overwritten.

            Task: Append to the contents.txt file instead of overwriting it when a user uses Quickload Saver to save a quickload on top of a quickload.

            Note: To test, follow the instructions [here|https://wiki.bioviz.org/confluence/display/ITD/Quickload+Saver] but save the T Rex genome to the Unicorn quickload.
            karthik Karthik Raveendran made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            nfreese Nowlan Freese made changes -
            Sprint Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2023 Feb 1 [ 117, 118, 163 ] Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16 [ 117, 118 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Status In Progress [ 3 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Assignee Karthik Raveendran [ karthik ]

              People

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

                Dates

                • Created:
                  Updated: