Skip to content

Commit

Permalink
Sprint 60 - Spring break 2 (#818)
Browse files Browse the repository at this point in the history
* Upgrading postgres to 16 (#737)

Co-authored-by: santinomolinaro <santino.molinaro@mail>

* TSS-1612: Prepare s3 client for migration (#751)

* tss-1612: S3 copilot switch

* Copilto DB URL

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: Pingdom healthcheck (#752)

* tss-1612: S3 copilot switch

* tss-1615: Pingdom API healthcheck

* url update

* format

---------

Co-authored-by: abarolo <[email protected]>

* chore: add .copilot directory with files required for image building

* TSS-1416: Xray & ASIM logging (#755)

* TSS-1416: Xray

* ASIM logging

* dbt-copilot-python dep

* Switch logging based on platform

* Handle all 3 loggers

---------

Co-authored-by: abarolo <[email protected]>

* chore: force pipeline build

* chore: update packeto builder version

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* Add sample trace rate for APM

* Revert IAM roles to access public buckets

* remove unused import

* Update S3 client for documents

* Trigger deploy

* Restore boto session config when on DBT Platform

* Debug download url for av scan

* Add more debug to see where this is failing

* Trigger deploy

* Remove debugging

* chore: update poetry.lock and requirements files

* tss-1802: check history exists in publish flow (#797)

* check history exists in publish

* log

---------

Co-authored-by: abarolo <[email protected]>

* update (#798)

Co-authored-by: abarolo <[email protected]>

* Increase gunicorn worker timeout (#799)

Co-authored-by: abarolo <[email protected]>

* Upgrade gevent (#800)

Co-authored-by: abarolo <[email protected]>

* Reduce worker connection count (#801)

Co-authored-by: abarolo <[email protected]>

* (TEST) revert Procfile + remove temp file creation for s3 upload

* Use in memory data upload to s3 (#802)

Co-authored-by: abarolo <[email protected]>

* PAAS Migration branch cleanup (#803)

* Logging tasks and local celery + flower (#789)

* format

---------

Co-authored-by: abarolo <[email protected]>

* tss-1783: Add set_to_allowed_on to data workspace serializer (#790)

* tss-1783: Add set_to_allowed_on to data workspace serializer

---------

Co-authored-by: abarolo <[email protected]>

* rc/maybe-maybe-not-2 (#792)

* Bump tqdm from 4.66.2 to 4.66.3

Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

* Bump jinja2 from 3.1.3 to 3.1.4 (#788)

* Bump jinja2 from 3.1.3 to 3.1.4

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump werkzeug from 3.0.2 to 3.0.3 (#787)

* Bump werkzeug from 3.0.2 to 3.0.3

Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](pallets/werkzeug@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* TSS-1791 Updating Readme (#791)

* Updating README to include updates for mock SSO to the hosts file

* Removing whitespace

---------

Co-authored-by: Uka Osim <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* feature/TSS-1790-move-notification-to-signals-to-celery-background-tasks (#794)

* feat: moving email to celery task

* feat: moving email to celery task

* feat: moving email to celery task

* lint fix

* lint fix

* feat: moving signal handlers to barrier tasks

* removing non required imports

* Extra logging for authorised requests (#793)

* Formatting and test fixes

* format

* test

* Fix last test

* format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>
Co-authored-by: Feroze Rub <[email protected]>

* Elastic APM is a boolean

* Trigger deploy

* Trigger deploy

* trigger deploy

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow (#811)

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS/1522: adding market distorting practices tag (#812)

* Formatting

* Updating test to accomodate new tag

* Updating for readability

* Removing dynamic order so that it runs quicker and hardcoding

* Improving readability

* Fixing 'create() takes 1 positional argument but 2 were given' error

* tss-1874: Re-instate is top 100 priority in barrier downloads (#817)

* Release Candidate - Spring Break  (#813)

* Upgrading postgres to 16 (#737)

Co-authored-by: santinomolinaro <santino.molinaro@mail>

* TSS-1612: Prepare s3 client for migration (#751)

* tss-1612: S3 copilot switch

* Copilto DB URL

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: Pingdom healthcheck (#752)

* tss-1612: S3 copilot switch

* tss-1615: Pingdom API healthcheck

* url update

* format

---------

Co-authored-by: abarolo <[email protected]>

* chore: add .copilot directory with files required for image building

* TSS-1416: Xray & ASIM logging (#755)

* TSS-1416: Xray

* ASIM logging

* dbt-copilot-python dep

* Switch logging based on platform

* Handle all 3 loggers

---------

Co-authored-by: abarolo <[email protected]>

* chore: force pipeline build

* chore: update packeto builder version

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* Add sample trace rate for APM

* Revert IAM roles to access public buckets

* remove unused import

* Update S3 client for documents

* Trigger deploy

* Restore boto session config when on DBT Platform

* Debug download url for av scan

* Add more debug to see where this is failing

* Trigger deploy

* Remove debugging

* chore: update poetry.lock and requirements files

* tss-1802: check history exists in publish flow (#797)

* check history exists in publish

* log

---------

Co-authored-by: abarolo <[email protected]>

* update (#798)

Co-authored-by: abarolo <[email protected]>

* Increase gunicorn worker timeout (#799)

Co-authored-by: abarolo <[email protected]>

* Upgrade gevent (#800)

Co-authored-by: abarolo <[email protected]>

* Reduce worker connection count (#801)

Co-authored-by: abarolo <[email protected]>

* (TEST) revert Procfile + remove temp file creation for s3 upload

* Use in memory data upload to s3 (#802)

Co-authored-by: abarolo <[email protected]>

* PAAS Migration branch cleanup (#803)

* Logging tasks and local celery + flower (#789)

* format

---------

Co-authored-by: abarolo <[email protected]>

* tss-1783: Add set_to_allowed_on to data workspace serializer (#790)

* tss-1783: Add set_to_allowed_on to data workspace serializer

---------

Co-authored-by: abarolo <[email protected]>

* rc/maybe-maybe-not-2 (#792)

* Bump tqdm from 4.66.2 to 4.66.3

Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

* Bump jinja2 from 3.1.3 to 3.1.4 (#788)

* Bump jinja2 from 3.1.3 to 3.1.4

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump werkzeug from 3.0.2 to 3.0.3 (#787)

* Bump werkzeug from 3.0.2 to 3.0.3

Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](pallets/werkzeug@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* TSS-1791 Updating Readme (#791)

* Updating README to include updates for mock SSO to the hosts file

* Removing whitespace

---------

Co-authored-by: Uka Osim <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* feature/TSS-1790-move-notification-to-signals-to-celery-background-tasks (#794)

* feat: moving email to celery task

* feat: moving email to celery task

* feat: moving email to celery task

* lint fix

* lint fix

* feat: moving signal handlers to barrier tasks

* removing non required imports

* Extra logging for authorised requests (#793)

* Formatting and test fixes

* format

* test

* Fix last test

* format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>
Co-authored-by: Feroze Rub <[email protected]>

* Elastic APM is a boolean

* Trigger deploy

* Trigger deploy

* trigger deploy

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow (#811)

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS/1522: adding market distorting practices tag (#812)

* Formatting

* Updating test to accomodate new tag

* Updating for readability

* Removing dynamic order so that it runs quicker and hardcoding

* Improving readability

* Fixing 'create() takes 1 positional argument but 2 were given' error

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Santino Molinaro <[email protected]>
Co-authored-by: santinomolinaro <santino.molinaro@mail>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Gareth Pitt-Nash <[email protected]>
Co-authored-by: Emile Swarts <[email protected]>
Co-authored-by: Yusuf <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* tss-1874: Re-instate is top 100 priority in barrier downloads

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Feroze Rub <[email protected]>
Co-authored-by: Santino Molinaro <[email protected]>
Co-authored-by: santinomolinaro <santino.molinaro@mail>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Gareth Pitt-Nash <[email protected]>
Co-authored-by: Emile Swarts <[email protected]>
Co-authored-by: Yusuf <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* TSS/1904: Updating Dependabots (#814)

* Release Candidate - Spring Break  (#813)

* Upgrading postgres to 16 (#737)

Co-authored-by: santinomolinaro <santino.molinaro@mail>

* TSS-1612: Prepare s3 client for migration (#751)

* tss-1612: S3 copilot switch

* Copilto DB URL

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: Pingdom healthcheck (#752)

* tss-1612: S3 copilot switch

* tss-1615: Pingdom API healthcheck

* url update

* format

---------

Co-authored-by: abarolo <[email protected]>

* chore: add .copilot directory with files required for image building

* TSS-1416: Xray & ASIM logging (#755)

* TSS-1416: Xray

* ASIM logging

* dbt-copilot-python dep

* Switch logging based on platform

* Handle all 3 loggers

---------

Co-authored-by: abarolo <[email protected]>

* chore: force pipeline build

* chore: update packeto builder version

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS-1615: celery config (#768)

* tss-1615: celery config

* format

---------

Co-authored-by: abarolo <[email protected]>

* Add sample trace rate for APM

* Revert IAM roles to access public buckets

* remove unused import

* Update S3 client for documents

* Trigger deploy

* Restore boto session config when on DBT Platform

* Debug download url for av scan

* Add more debug to see where this is failing

* Trigger deploy

* Remove debugging

* chore: update poetry.lock and requirements files

* tss-1802: check history exists in publish flow (#797)

* check history exists in publish

* log

---------

Co-authored-by: abarolo <[email protected]>

* update (#798)

Co-authored-by: abarolo <[email protected]>

* Increase gunicorn worker timeout (#799)

Co-authored-by: abarolo <[email protected]>

* Upgrade gevent (#800)

Co-authored-by: abarolo <[email protected]>

* Reduce worker connection count (#801)

Co-authored-by: abarolo <[email protected]>

* (TEST) revert Procfile + remove temp file creation for s3 upload

* Use in memory data upload to s3 (#802)

Co-authored-by: abarolo <[email protected]>

* PAAS Migration branch cleanup (#803)

* Logging tasks and local celery + flower (#789)

* format

---------

Co-authored-by: abarolo <[email protected]>

* tss-1783: Add set_to_allowed_on to data workspace serializer (#790)

* tss-1783: Add set_to_allowed_on to data workspace serializer

---------

Co-authored-by: abarolo <[email protected]>

* rc/maybe-maybe-not-2 (#792)

* Bump tqdm from 4.66.2 to 4.66.3

Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

* Bump jinja2 from 3.1.3 to 3.1.4 (#788)

* Bump jinja2 from 3.1.3 to 3.1.4

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump werkzeug from 3.0.2 to 3.0.3 (#787)

* Bump werkzeug from 3.0.2 to 3.0.3

Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](pallets/werkzeug@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Regenerating requirements.txt file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* TSS-1791 Updating Readme (#791)

* Updating README to include updates for mock SSO to the hosts file

* Removing whitespace

---------

Co-authored-by: Uka Osim <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* feature/TSS-1790-move-notification-to-signals-to-celery-background-tasks (#794)

* feat: moving email to celery task

* feat: moving email to celery task

* feat: moving email to celery task

* lint fix

* lint fix

* feat: moving signal handlers to barrier tasks

* removing non required imports

* Extra logging for authorised requests (#793)

* Formatting and test fixes

* format

* test

* Fix last test

* format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>
Co-authored-by: Feroze Rub <[email protected]>

* Elastic APM is a boolean

* Trigger deploy

* Trigger deploy

* trigger deploy

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow (#811)

* tss-1747: Add Publisher and Approver as TeamMembers to barrier flow

* format

---------

Co-authored-by: abarolo <[email protected]>

* TSS/1522: adding market distorting practices tag (#812)

* Formatting

* Updating test to accomodate new tag

* Updating for readability

* Removing dynamic order so that it runs quicker and hardcoding

* Improving readability

* Fixing 'create() takes 1 positional argument but 2 were given' error

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Santino Molinaro <[email protected]>
Co-authored-by: santinomolinaro <santino.molinaro@mail>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Gareth Pitt-Nash <[email protected]>
Co-authored-by: Emile Swarts <[email protected]>
Co-authored-by: Yusuf <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>

* Updating Dependabots

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Feroze Rub <[email protected]>
Co-authored-by: Santino Molinaro <[email protected]>
Co-authored-by: santinomolinaro <santino.molinaro@mail>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Gareth Pitt-Nash <[email protected]>
Co-authored-by: Emile Swarts <[email protected]>
Co-authored-by: Yusuf <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Santino Molinaro <[email protected]>
Co-authored-by: santinomolinaro <santino.molinaro@mail>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: abarolo <[email protected]>
Co-authored-by: Gareth Pitt-Nash <[email protected]>
Co-authored-by: Emile Swarts <[email protected]>
Co-authored-by: Yusuf <[email protected]>
Co-authored-by: Uka Osim <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elizabeth Pedley <[email protected]>
  • Loading branch information
12 people authored Jun 25, 2024
1 parent b3dbde5 commit 8deb2a2
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 172 deletions.
1 change: 1 addition & 0 deletions api/barrier_downloads/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"summary": "Summary",
"link": "Link",
"status": "Status",
"is_top_priority": "Is Top 100 Priority",
"is_resolved_top_priority": "Is Resolved Top Priority",
"priority_level": "Priority",
"overseas_region": "Overseas Region",
Expand Down
4 changes: 4 additions & 0 deletions api/barrier_downloads/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class CsvDownloadSerializer(serializers.Serializer):
modified_on = serializers.DateTimeField(format="%Y-%m-%d", allow_null=True)
tags = serializers.SerializerMethodField()
trade_direction = serializers.CharField(source="get_trade_direction_display")
is_top_priority = serializers.SerializerMethodField()
is_resolved_top_priority = serializers.SerializerMethodField()
government_organisations = serializers.SerializerMethodField()
progress_update_status = serializers.SerializerMethodField()
Expand All @@ -83,6 +84,9 @@ class CsvDownloadSerializer(serializers.Serializer):
valuation_assessment_explanation = serializers.SerializerMethodField()
commercial_value = serializers.IntegerField()

def get_is_top_priority(self, obj):
return obj.is_top_priority

def get_is_resolved_top_priority(self, obj):
return obj.top_priority_status == TOP_PRIORITY_BARRIER_STATUS.RESOLVED

Expand Down
Loading

0 comments on commit 8deb2a2

Please sign in to comment.