-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official stats prototype #2286
Closed
Closed
Official stats prototype #2286
Changes from 1 commit
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
5d58f86
Add DRF csv renderer
kevincarrogan 684aac7
Add endpoint for licence statuses
kevincarrogan 6cb8532
Add endpoint for retrieving SIEL licences list
saruniitr f86d6f3
Address review comments
saruniitr d90ca37
Update url name and fix fixture
saruniitr 545f1cd
Add licence issue date to licences list
saruniitr e73df0f
Update Licences list view to excludes licences with no goods
saruniitr 95963ba
Only consider licences for finalised Cases
saruniitr 0ae5925
Ignore cancelled licences
saruniitr 2786805
Rename status to decision as that is what it is
saruniitr 673b60c
Add more common fixtures
saruniitr 7927d70
Seed letter layouts and templates
saruniitr 4553cb0
Update licence test to include steps for generating documents
saruniitr c0760ef
Use Case as base object the get licences list
saruniitr 060f962
Update licence list API view to be called licence decision
kevincarrogan c10f0e9
Allow pagination to be disabled for licence decisions
kevincarrogan 7b06322
Include refused cases in the extract
saruniitr 84c0b2f
Simplify query for getting cases with case documents
kevincarrogan 0600888
Determine issued and refused in queryset
kevincarrogan ce5f7ff
Condense down logic for finding decision made at
kevincarrogan 35f1450
Temporarily skip hawk authentication
kevincarrogan 91b3d21
Fix DW authentication
kevincarrogan df81a44
Add revoked as a licence decision
kevincarrogan 55c8493
Move into queryset
kevincarrogan 4535ca1
Merge branch 'LTD-stats-init' into LTD-back-populate-test
saruniitr 5818707
Add LicenceDecision model to concretely define a case outcome
saruniitr 3ad9f1a
Add migration to back populate LicenceDecision instances
saruniitr 9ed5377
Add new endpoint to export licence decisions from the model
saruniitr b97d0ad
Merge branch 'dev' into LTD-back-populate-test
saruniitr 8c3e26a
Remove unused licence decisions endpoint
saruniitr a5a1780
Add endpoint to export list of applications
saruniitr 2c7e80e
Add endpoint to export list of countries
saruniitr 760f2f5
Add endpoint to export list of destinations on the applications
saruniitr 11d689d
Move reference code into application table
kevincarrogan 8342264
Add endpoint for goods
kevincarrogan 4881448
Add an assessments table
kevincarrogan d3cc67a
Add licence_id to licence decision for issued licences
kevincarrogan 4e3c3d2
Filter out deleted destinations
kevincarrogan 838d2c4
Add endpoint for goods on licence
kevincarrogan a2563bf
Fix queryset for applications
kevincarrogan 78bc1fe
Update querysets to replicate application filtering
kevincarrogan f2656e6
Fix case status filters
kevincarrogan 5f0a9b3
Optimise destinations endpoint
kevincarrogan c1094fe
Optimise application endpoint
kevincarrogan 05b26f7
Simplify assessment endpoint
kevincarrogan 0c4cdfd
Fix filtering of good on licence
kevincarrogan 083e7a3
Add export type to applications table
kevincarrogan 86e83bf
Update names for endpoints and serializers
kevincarrogan 72a0d89
Add sub type
kevincarrogan 6dd7e31
Optimise checking for incorporation sub-type
kevincarrogan 884c0a4
Merge branch 'dev' into LTD-back-populate-test
saruniitr 8ab9442
Add goods descriptions table
kevincarrogan 1e83fb1
Merge remote-tracking branch 'origin/LTD-back-populate-test' into LTD…
kevincarrogan 83e21f9
Add licence refusal criteria
kevincarrogan 527a408
Add licence refusal criteria endpoint
kevincarrogan 6419cf3
Fix licence decision criteria
kevincarrogan 16681ff
Add excluded_from_statistics_reason to LicenceDecision model
hnryjmes 45acc58
Create a base class for DW view sets
kevincarrogan 9d0fc8c
Update queryset to exclude records with excluded_from_statistics_reason
hnryjmes 25f958a
Merge pull request #2284 from uktrade/LTD-5644_Ignore_mistaken_revoca…
kevincarrogan 10d03f6
Merge branch 'dev' into official-stats-prototype
kevincarrogan 2314486
Merge branch 'dev' into official-stats-prototype
kevincarrogan 64dd5f1
Attach licence to historical Licence decision instances
saruniitr 5ecf3ff
Update migration to populate with the actual licence at that time
saruniitr e76c1e7
Add previous decision to Licence decision to save previous version of…
saruniitr c2ba347
Use Licence decision model to export list of licence decisions
saruniitr e964b61
Add footnotes table
kevincarrogan 31e3ef5
Populate previous decision when creating new licence decisions
saruniitr aa7fc20
Report latest licence details where there are multiple decisions
saruniitr 2525d25
Add quantity and unit to good serializer
kevincarrogan ba77c90
Add unit viewset
kevincarrogan 9b7e290
Add proper 404 for unfound unit
kevincarrogan e913f97
Merge branch 'official-stats-prototype' into LTD-5639-licence-decisio…
saruniitr 61b4ddc
Update the migration name in the test
saruniitr 1c9c8e4
Merge pull request #2290 from uktrade/LTD-5639-licence-decision-addit…
kevincarrogan 1949af2
Optimise licence decisions endpoint
kevincarrogan 4de7eff
Return licence id for revoked licence decision
kevincarrogan 330a17d
Add issued_on_appeal
kevincarrogan 3dc265c
Add issued_on_appeal decision type
saruniitr 3f505c3
Add migration to populate issued on appeal decision
saruniitr 88a88e0
Record Licence decision as issued_on_appeal for successful appeals
saruniitr 211bc3c
Add statuses table
kevincarrogan e54b3c1
Add status to application
kevincarrogan f492162
Add sla days to application
kevincarrogan 610c533
Fix issue in handling appeal case and record the decision correctly
saruniitr 06480ca
Add bdd tests for issued_on_appeal licence decision case
saruniitr bec3ba5
Merge branch 'official-stats-prototype' into LTD-populate-issued-on-a…
saruniitr d0b2b27
Change sla_days to processing_time
kevincarrogan 07e7b38
Add first closed at
kevincarrogan 1c937d4
Optimise getting first closed status
kevincarrogan a983d0a
Make iterator a list
kevincarrogan 20edd44
Add denial reasons to licence decision object
kevincarrogan ad891f7
Handle re-issue of issued on appeal case
saruniitr 8b04198
Add migration to backpopulate licence decisions
kevincarrogan 9435268
Merge branch 'official-stats-prototype' into LTD-populate-issued-on-a…
saruniitr 81d60c6
Fix conflicting migrations in cases
saruniitr 7d1547b
Default ordering is specified in model
saruniitr 5026a4a
Actually commit migration file
saruniitr d8e0b82
Fix linter errors
saruniitr 8f8de79
Remove duplicated files
saruniitr 2d58ff4
Merge pull request #2292 from uktrade/LTD-populate-issued-on-appeal
saruniitr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this are filtered in the view