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

Show existing apps on IGB AppStore

    Details

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

      Attachments

        Issue Links

          Activity

          Hide
          ann.loraine Ann Loraine added a comment -

          Looks like fixtures can help.
          Reference: Providing initial data for models. Version 2.1 documentation: https://docs.djangoproject.com/en/2.1/howto/initial-data/

          Show
          ann.loraine Ann Loraine added a comment - Looks like fixtures can help. Reference: Providing initial data for models. Version 2.1 documentation: https://docs.djangoproject.com/en/2.1/howto/initial-data/
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Documentation (by Pranav) that maps App Store DB to OBR:

          https://docs.google.com/document/d/1GcbkXuvlNumh-ir0rhPtKLdrTrLDlpB6LSc7ft6uohk

          Show
          ann.loraine Ann Loraine added a comment - - edited Documentation (by Pranav) that maps App Store DB to OBR: https://docs.google.com/document/d/1GcbkXuvlNumh-ir0rhPtKLdrTrLDlpB6LSc7ft6uohk
          Hide
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment -

          Branch: https://bitbucket.org/svallapu/appstore/branch/IGBF-1521

          Fixture:
          JSON file Name : /appsDB.json (root folder). It is also attached to this issue.
          To Load Data (command): python manage.py loaddata appsDB.json

          Updates/ Changes :
          1. Added new symbolicname field to the apps model (models.py)
          2. Migrated the new changes (symbolicname) to the apps table in the database.
          3. Created superuser to access the Admin
          --> python manage.py createsuperuser
          --> Enter username and password to access Admin page
          --> Admin Page Link localhost:8000/Admin
          4. Copied the records from repository.xml to local database.
          5. Created fixtures using existing data
          --> Dump Data: python manage.py dumpdata appname > fileneme.json
          --> Load Data: python manage.py loaddata <filename.json>
          6. Deleted django.wsgi (Recommended by Pranav)
          7. Replaced path with re_path for the links to accept regular expressions. (wherever needed)
          8. Changed the link from underscore to hyphen (Important). (It avoids crashing when using hyphens in the URL)
          ->re_path(r'^(?P<app_name>[-\w\d]+)' use this regex to accept hyphen ("") in the URL.
          9. Decoded base64 for the details field. (Only allows base64 input, for now, didn't convert markdown to HTML)

          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - Branch: https://bitbucket.org/svallapu/appstore/branch/IGBF-1521 Fixture: JSON file Name : /appsDB.json (root folder). It is also attached to this issue. To Load Data (command): python manage.py loaddata appsDB.json Updates/ Changes : 1. Added new symbolicname field to the apps model (models.py) 2. Migrated the new changes (symbolicname) to the apps table in the database. 3. Created superuser to access the Admin --> python manage.py createsuperuser --> Enter username and password to access Admin page --> Admin Page Link localhost:8000/Admin 4. Copied the records from repository.xml to local database. 5. Created fixtures using existing data --> Dump Data: python manage.py dumpdata appname > fileneme.json --> Load Data: python manage.py loaddata <filename.json> 6. Deleted django.wsgi (Recommended by Pranav) 7. Replaced path with re_path for the links to accept regular expressions. (wherever needed) 8. Changed the link from underscore to hyphen (Important). (It avoids crashing when using hyphens in the URL) - >re_path(r'^(?P<app_name> [-\w\d] +)' use this regex to accept hyphen (" ") in the URL. 9. Decoded base64 for the details field. (Only allows base64 input, for now, didn't convert markdown to HTML)
          Hide
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment -

          Fixture.

          Show
          svallapu Sai Charan Reddy Vallapureddy (Inactive) added a comment - Fixture.
          Hide
          ann.loraine Ann Loraine added a comment -

          Re-assigning to original developer for record-keeping purposes.

          Show
          ann.loraine Ann Loraine added a comment - Re-assigning to original developer for record-keeping purposes.

            People

            • Assignee:
              svallapu Sai Charan Reddy Vallapureddy (Inactive)
              Reporter:
              ptambvek Pranav Sanjay Tambvekar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: