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

Sort curated categories alphabetically on home page

    Details

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

      Description

      Within the category types App Type, Biology, and Data, sort sub-categories alphabetically.

        Attachments

          Activity

          Hide
          ssegu Sai Supreeth Segu (Inactive) added a comment -

          Dr. [~aloraine] and Sameer Shanbhag, Please review my changes
          Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678#diff

          Show
          ssegu Sai Supreeth Segu (Inactive) added a comment - Dr. [~aloraine] and Sameer Shanbhag , Please review my changes Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678#diff
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          No need to create new function or do anything on the python file. You can do it with a single template filter in Django on the front end.

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - No need to create new function or do anything on the python file. You can do it with a single template filter in Django on the front end.
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment - - edited

          Please look at dictsort template filter in django.

          Reference:

          Implementation (One Liner)

          • {% for sub in category|dictsort:'curated_category' %}

          c.c. [~aloraine]

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - - edited Please look at dictsort template filter in django. Reference: https://www.djangotemplatetagsandfilters.com/filters/dictsort/ https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#dictsort Implementation (One Liner) {% for sub in category|dictsort:'curated_category' %} c.c. [~aloraine]
          Hide
          ssegu Sai Supreeth Segu (Inactive) added a comment -

          Dr. [~aloraine] and Sameer Shanbhag, please review my changes. I have made changes as per Sameer Shanbhag suggestions.
          Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678-1#diff

          Show
          ssegu Sai Supreeth Segu (Inactive) added a comment - Dr. [~aloraine] and Sameer Shanbhag , please review my changes. I have made changes as per Sameer Shanbhag suggestions. Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678-1#diff
          Hide
          ann.loraine Ann Loraine added a comment -

          Please add a comment in the code noting where the sorting happening.

          Show
          ann.loraine Ann Loraine added a comment - Please add a comment in the code noting where the sorting happening.
          Hide
          ssegu Sai Supreeth Segu (Inactive) added a comment -

          Dr. [~aloraine] and Sameer Shanbhag, Please review my changes.
          Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678-1#diff

          Show
          ssegu Sai Supreeth Segu (Inactive) added a comment - Dr. [~aloraine] and Sameer Shanbhag , Please review my changes. Link for my branch: https://bitbucket.org/supreeth27/appstore/branch/IGBF-2678-1#diff
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          Looks good to me!

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Looks good to me!
          Show
          ssegu Sai Supreeth Segu (Inactive) added a comment - Please review my pull request: https://bitbucket.org/lorainelab/appstore/pull-requests/234/igbf-2678-sorted-curated-categories
          Hide
          ann.loraine Ann Loraine added a comment -

          Merged and deployed to https://devappstore5.bioviz.org.
          Ready for testing.

          Show
          ann.loraine Ann Loraine added a comment - Merged and deployed to https://devappstore5.bioviz.org . Ready for testing.
          Hide
          ann.loraine Ann Loraine added a comment -

          Curated categories are shown in alphabetical order in the interface. Moving to Closed.

          Show
          ann.loraine Ann Loraine added a comment - Curated categories are shown in alphabetical order in the interface. Moving to Closed.

            People

            • Assignee:
              ssegu Sai Supreeth Segu (Inactive)
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: