Details

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

      Description

      Merging tickers IGBF-1629, IGBF-1674, IGBF-1675

        Attachments

          Activity

          Hide
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment -

          IGBF-1674

          App-store is using haystack and whoosh for searching the apps. Haystack is a search framework and whoosh is a search engine.

          To make search work in AppStore:

          1. Edit line in django-projects/lib/python3.6/site-packages/haystack/fields.py
          From : values.append(current_object()) To: values.append(current_object)
          (link: https://github.com/django-haystack/django-haystack/issues/1651, I think this issue is with the version of django or haystack.)
          (Without this edit results in haystack error)

          2. >python manage.py rebuild_index (This will create indexes to the content present in the Apps app. These indexes are later used to give search results)
          (We have to add this line to the Appstore setup)
          3. >python manage.py runserver (Run the server and check the search functionality)

          Commands:
          1. rebuild_index : It deletes all the previous indexes and creates new indexes.
          2. update_index : When we add a new app to the appstore we don't have to rebuild all the indexes instead we can update using update_index.

          Tutorial:
          https://www.youtube.com/watch?v=B-n6_m66TmA

          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - IGBF-1674 App-store is using haystack and whoosh for searching the apps. Haystack is a search framework and whoosh is a search engine. To make search work in AppStore: 1. Edit line in django-projects/lib/python3.6/site-packages/haystack/fields.py From : values.append(current_object()) To: values.append(current_object) (link: https://github.com/django-haystack/django-haystack/issues/1651 , I think this issue is with the version of django or haystack.) (Without this edit results in haystack error) 2. >python manage.py rebuild_index (This will create indexes to the content present in the Apps app. These indexes are later used to give search results) (We have to add this line to the Appstore setup) 3. >python manage.py runserver (Run the server and check the search functionality) Commands: 1. rebuild_index : It deletes all the previous indexes and creates new indexes. 2. update_index : When we add a new app to the appstore we don't have to rebuild all the indexes instead we can update using update_index. Tutorial: https://www.youtube.com/watch?v=B-n6_m66TmA
          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - Latest code Branch: https://bitbucket.org/svallapu/appstore-charan-narendra-riddhi-merge/src/IGBF-1629/
          Hide
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment -

          Narendra Submitted the pull request.

          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - Narendra Submitted the pull request.
          Hide
          ann.loraine Ann Loraine added a comment -

          Merged to master.
          Not yet deployed on testappstore.bioviz.org.
          Need to deploy there to enable testing.

          Show
          ann.loraine Ann Loraine added a comment - Merged to master. Not yet deployed on testappstore.bioviz.org. Need to deploy there to enable testing.
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Deployed to test.bioviz.org. For this, I changed into the directory where the appstore code is deployed and ran:

          • git pull origin master

          On the deployed master branch, most recent commits:

          • d070442 (HEAD -> master, origin/master, origin/HEAD) Merged lorainelab/appstore into master
          • 5bbf41e Merged in narendravankayala/appstore-narendra/IGBF-1682 (pull request #19)
          • 15f6ec4 Merged in rpatil14/appstore-narendra-riddhi/IGBF-1629 (pull request #1)
          • ae94f12 IGBF-1629: Remove initial.py from commit

          Possible issue:
          I clicked on Geometric Mean Operator to visit the page for this App.
          I noted that the description text is rendered as HTML and looks great.
          However when I click on any other App, the server page displays "500 Server Error" message

          Show
          ann.loraine Ann Loraine added a comment - - edited Deployed to test.bioviz.org. For this, I changed into the directory where the appstore code is deployed and ran: git pull origin master On the deployed master branch, most recent commits: d070442 (HEAD -> master, origin/master, origin/HEAD) Merged lorainelab/appstore into master 5bbf41e Merged in narendravankayala/appstore-narendra/ IGBF-1682 (pull request #19) 15f6ec4 Merged in rpatil14/appstore-narendra-riddhi/ IGBF-1629 (pull request #1) ae94f12 IGBF-1629 : Remove initial.py from commit Possible issue: I clicked on Geometric Mean Operator to visit the page for this App. I noted that the description text is rendered as HTML and looks great. However when I click on any other App, the server page displays "500 Server Error" message
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Stable Django release is 2.2:
          https://www.djangoproject.com/download/

          Checking Django version following:
          https://stackoverflow.com/questions/6468397/how-to-check-django-version

          Steps:

          • Log in to ubuntu Linux VM hosting test appstore
          • Change to appstore directory: /var/www/vhosts/appstore
          • Activate virtual environment for appstore: source venv/appstore/bin/activate
          • Start python, find out what version django is installed:

          (appstore) TestAppstore ubuntu$ python
          Python 3.6.7 (default, Oct 22 2018, 11:32:17)
          [GCC 8.2.0] on linux
          Type "help", "copyright", "credits" or "license" for more information.
          >>> import django
          >>> django.VERSION
          (2, 2, 0, 'final', 0)

          Should we use the latest, development code of django to get the hot new features - such as user-friendlier admin interface?

          Show
          ann.loraine Ann Loraine added a comment - - edited Stable Django release is 2.2: https://www.djangoproject.com/download/ Checking Django version following: https://stackoverflow.com/questions/6468397/how-to-check-django-version Steps: Log in to ubuntu Linux VM hosting test appstore Change to appstore directory: /var/www/vhosts/appstore Activate virtual environment for appstore: source venv/appstore/bin/activate Start python, find out what version django is installed: (appstore) TestAppstore ubuntu$ python Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.VERSION (2, 2, 0, 'final', 0) Should we use the latest, development code of django to get the hot new features - such as user-friendlier admin interface?
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          I was confused. Our local machines are configured with 2.1.7. The VM has version 2.2.0 because it was configured and set up more recently than our locals.
          To update local, start the virtual environment and run

          • $ pip install -U Django
          Show
          ann.loraine Ann Loraine added a comment - - edited I was confused. Our local machines are configured with 2.1.7. The VM has version 2.2.0 because it was configured and set up more recently than our locals. To update local, start the virtual environment and run $ pip install -U Django
          Hide
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment -

          It is because there is no write permission to db.sqlite3. Giving write permission solved the issue.

          To give write permission:
          1. go to project folder
          2. chown ubuntu db.sqlite3 ( chown <user-name> db.sqlite3)
          3. delete existing db files in dowload,apps,submit_app apps.
          4. make migrations
          5. migrate
          6. loadData appsDb.json.

          [~aloraine]Riddhi Jagdish PatilNarendra Kumar Vankayala

          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - It is because there is no write permission to db.sqlite3. Giving write permission solved the issue. To give write permission: 1. go to project folder 2. chown ubuntu db.sqlite3 ( chown <user-name> db.sqlite3) 3. delete existing db files in dowload,apps,submit_app apps. 4. make migrations 5. migrate 6. loadData appsDb.json. [~aloraine] Riddhi Jagdish Patil Narendra Kumar Vankayala

            People

            • Assignee:
              svallapu Sai Charan Reddy Vallapureddy (Inactive)
              Reporter:
              svallapu Sai Charan Reddy Vallapureddy (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: