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

Fixing UI Related Issues found after testing

    Details

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

      Description

      There are a lot of UI Related issues in Devappstore5 majorly caused due to redesign.

        Attachments

          Activity

          sameer Sameer Shanbhag (Inactive) created issue -
          sameer Sameer Shanbhag (Inactive) made changes -
          Field Original Value New Value
          Epic Link IGBF-2563 [ 18746 ]
          sameer Sameer Shanbhag (Inactive) made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          PR #236 is merged. Preparing to deploy to https://devappstore3.bioviz.org.

          Note that I am not deploying to devappstore5, which hosts the previous commit version of appstore, so that we can compare the two sites when needed.

          Show
          ann.loraine Ann Loraine added a comment - PR #236 is merged. Preparing to deploy to https://devappstore3.bioviz.org . Note that I am not deploying to devappstore5, which hosts the previous commit version of appstore, so that we can compare the two sites when needed.
          Hide
          ann.loraine Ann Loraine added a comment -

          I just now attempted to deploy to devappstore3 but got the following error during the migration step:

          TASK [migrate : rebuild_index] **************************************************************************
          fatal: [172.31.31.5]: FAILED! => changed=false 
            cmd: ./manage.py rebuild_index --noinput
            msg: |-
              stdout: Removing all documents from your index because you said so.
              All documents removed.
              Indexing 13 releases
            
              :stderr: System check identified some issues:
            
              WARNINGS:
              ?: (urls.W005) URL namespace 'social' isn't unique. You may not be able to reverse all URLs in this namespace
              [ERROR/MainProcess] Failed indexing 1 - 13 (retry 5/5): 'App' object has no attribute 'categories' (pid 4859): 'App' object has no attribute 'categories'
              Traceback (most recent call last):
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
                  backend.update(index, current_qs, commit=commit)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
                  doc = index.full_prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
                  self.prepared_data = self.prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
                  value = getattr(self, "prepare_%s" % field_name)(obj)
                File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
                  return [category.id for category in obj.app.categories.all()]
              AttributeError: 'App' object has no attribute 'categories'
              [ERROR/MainProcess] Error updating apps using default
              Traceback (most recent call last):
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 230, in handle
                  self.update_backend(label, using)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 276, in update_backend
                  last_max_pk=max_pk)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
                  backend.update(index, current_qs, commit=commit)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
                  doc = index.full_prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
                  self.prepared_data = self.prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
                  value = getattr(self, "prepare_%s" % field_name)(obj)
                File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
                  return [category.id for category in obj.app.categories.all()]
              AttributeError: 'App' object has no attribute 'categories'
              Traceback (most recent call last):
                File "./manage.py", line 15, in <module>
                  execute_from_command_line(sys.argv)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
                  utility.execute()
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
                  self.fetch_command(subcommand).run_from_argv(self.argv)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
                  self.execute(*args, **cmd_options)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
                  output = self.handle(*args, **options)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/rebuild_index.py", line 42, in handle
                  call_command('update_index', **update_options)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 148, in call_command
                  return command.execute(*args, **defaults)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
                  output = self.handle(*args, **options)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 230, in handle
                  self.update_backend(label, using)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 276, in update_backend
                  last_max_pk=max_pk)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
                  backend.update(index, current_qs, commit=commit)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
                  doc = index.full_prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
                  self.prepared_data = self.prepare(obj)
                File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
                  value = getattr(self, "prepare_%s" % field_name)(obj)
                File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
                  return [category.id for category in obj.app.categories.all()]
              AttributeError: 'App' object has no attribute 'categories'
            path: /home/ubuntu/appstore/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
            syspath:
            - /tmp/ansible_django_manage_payload_iyan8mxd/ansible_django_manage_payload.zip
            - /usr/lib/python36.zip
            - /usr/lib/python3.6
            - /usr/lib/python3.6/lib-dynload
            - /usr/local/lib/python3.6/dist-packages
            - /usr/lib/python3/dist-packages
          

          Sameer Shanbhag: kindly advise

          Show
          ann.loraine Ann Loraine added a comment - I just now attempted to deploy to devappstore3 but got the following error during the migration step: TASK [migrate : rebuild_index] ************************************************************************** fatal: [172.31.31.5]: FAILED! => changed= false cmd: ./manage.py rebuild_index --noinput msg: |- stdout: Removing all documents from your index because you said so. All documents removed. Indexing 13 releases :stderr: System check identified some issues: WARNINGS: ?: (urls.W005) URL namespace 'social' isn't unique. You may not be able to reverse all URLs in this namespace [ERROR/MainProcess] Failed indexing 1 - 13 (retry 5/5): 'App' object has no attribute 'categories' (pid 4859): 'App' object has no attribute 'categories' Traceback (most recent call last): File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 97, in do_update backend.update(index, current_qs, commit=commit) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py" , line 185, in update doc = index.full_prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 208, in full_prepare self.prepared_data = self.prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 202, in prepare value = getattr(self, "prepare_%s" % field_name)(obj) File "/home/ubuntu/appstore/apps/search_indexes.py" , line 31, in prepare_categories return [category.id for category in obj.app.categories.all()] AttributeError: 'App' object has no attribute 'categories' [ERROR/MainProcess] Error updating apps using default Traceback (most recent call last): File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 230, in handle self.update_backend(label, using) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 276, in update_backend last_max_pk=max_pk) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 97, in do_update backend.update(index, current_qs, commit=commit) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py" , line 185, in update doc = index.full_prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 208, in full_prepare self.prepared_data = self.prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 202, in prepare value = getattr(self, "prepare_%s" % field_name)(obj) File "/home/ubuntu/appstore/apps/search_indexes.py" , line 31, in prepare_categories return [category.id for category in obj.app.categories.all()] AttributeError: 'App' object has no attribute 'categories' Traceback (most recent call last): File "./manage.py" , line 15, in <module> execute_from_command_line(sys.argv) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py" , line 381, in execute_from_command_line utility.execute() File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py" , line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py" , line 323, in run_from_argv self.execute(*args, **cmd_options) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py" , line 364, in execute output = self.handle(*args, **options) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/rebuild_index.py" , line 42, in handle call_command('update_index', **update_options) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py" , line 148, in call_command return command.execute(*args, **defaults) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py" , line 364, in execute output = self.handle(*args, **options) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 230, in handle self.update_backend(label, using) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 276, in update_backend last_max_pk=max_pk) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py" , line 97, in do_update backend.update(index, current_qs, commit=commit) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py" , line 185, in update doc = index.full_prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 208, in full_prepare self.prepared_data = self.prepare(obj) File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py" , line 202, in prepare value = getattr(self, "prepare_%s" % field_name)(obj) File "/home/ubuntu/appstore/apps/search_indexes.py" , line 31, in prepare_categories return [category.id for category in obj.app.categories.all()] AttributeError: 'App' object has no attribute 'categories' path: /home/ubuntu/appstore/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin syspath: - /tmp/ansible_django_manage_payload_iyan8mxd/ansible_django_manage_payload.zip - /usr/lib/python36.zip - /usr/lib/python3.6 - /usr/lib/python3.6/lib-dynload - /usr/local/lib/python3.6/dist-packages - /usr/lib/python3/dist-packages Sameer Shanbhag : kindly advise
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Note that because we are probably going to have to migrate the old apps currently hosted on the production site into this new appstore, we so we probably (???) need to retain the "categories" stuff in the database models since we are literally going to be using the existing, old database in the new appstore 2.0.

          Sorry about that – I should have realized this before asking to get rid of all mention of the older-style categories.

          attn: Sameer Shanbhag

          Show
          ann.loraine Ann Loraine added a comment - - edited Note that because we are probably going to have to migrate the old apps currently hosted on the production site into this new appstore, we so we probably (???) need to retain the "categories" stuff in the database models since we are literally going to be using the existing, old database in the new appstore 2.0. Sorry about that – I should have realized this before asking to get rid of all mention of the older-style categories. attn: Sameer Shanbhag
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          Hi Professor,

          That wont be a problem, removing categories will still allow you to migrate from the old database, if you look closely it failed after the database was imported. I missed two places where I should have removed the Categories mentions. I will fix it and then we can check if it works.

          [~aloraine]

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Hi Professor, That wont be a problem, removing categories will still allow you to migrate from the old database, if you look closely it failed after the database was imported. I missed two places where I should have removed the Categories mentions. I will fix it and then we can check if it works. [~aloraine]
          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Here is the updated Pull Request: https://bitbucket.org/lorainelab/appstore/pull-requests/237/igbf-2681-remove-reference-of-categories
          Hide
          ann.loraine Ann Loraine added a comment -

          Many thanks for the clarification Sameer Shanbhag

          Show
          ann.loraine Ann Loraine added a comment - Many thanks for the clarification Sameer Shanbhag
          Hide
          ann.loraine Ann Loraine added a comment -

          PR is now merged but not yet deployed on devappstore3.

          Show
          ann.loraine Ann Loraine added a comment - PR is now merged but not yet deployed on devappstore3.
          Hide
          ann.loraine Ann Loraine added a comment -

          I am able to migrate without error. Moving this to closed.

          Show
          ann.loraine Ann Loraine added a comment - I am able to migrate without error. Moving this to closed.
          ann.loraine Ann Loraine made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          ann.loraine Ann Loraine made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          ann.loraine Ann Loraine made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              sameer Sameer Shanbhag (Inactive)
              Reporter:
              sameer Sameer Shanbhag (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: