Add button to export items to excel file
Retrieving all items from the database takes some time. The task is thus handled by the RQ worker. We use ajax to periodically monitor the status of the job and redirect to the file when ready. A progress bar is displayed to let the user see the progress. The mechanism put in place could be re-used for other use cases. JIRA INFRA-545 #action In Progress
Showing
- .gitignore 2 additions, 0 deletions.gitignore
- app/inventory/views.py 10 additions, 0 deletionsapp/inventory/views.py
- app/main/views.py 25 additions, 1 deletionapp/main/views.py
- app/models.py 12 additions, 0 deletionsapp/models.py
- app/settings.py 3 additions, 0 deletionsapp/settings.py
- app/static/files/.empty 0 additions, 0 deletionsapp/static/files/.empty
- app/static/js/csentry.js 48 additions, 0 deletionsapp/static/js/csentry.js
- app/static/js/items.js 39 additions, 0 deletionsapp/static/js/items.js
- app/tasks.py 30 additions, 1 deletionapp/tasks.py
- app/templates/_helpers.html 17 additions, 0 deletionsapp/templates/_helpers.html
- app/templates/base.html 1 addition, 1 deletionapp/templates/base.html
- app/templates/inventory/items.html 3 additions, 2 deletionsapp/templates/inventory/items.html
- app/utils.py 32 additions, 1 deletionapp/utils.py
- docs/_static/inventory.png 0 additions, 0 deletionsdocs/_static/inventory.png
- docs/inventory.rst 3 additions, 0 deletionsdocs/inventory.rst
- requirements-to-freeze.txt 1 addition, 0 deletionsrequirements-to-freeze.txt
- requirements.txt 3 additions, 0 deletionsrequirements.txt
- tests/unit/test_utils.py 47 additions, 0 deletionstests/unit/test_utils.py
Loading
Please register or sign in to comment