Skip to content

[FIX] flagsmith error handling#3537

Merged
taraepp merged 1 commit intodevelopfrom
fix-flagsmith-error-handling
May 15, 2025
Merged

[FIX] flagsmith error handling#3537
taraepp merged 1 commit intodevelopfrom
fix-flagsmith-error-handling

Conversation

@taraepp
Copy link
Contributor

@taraepp taraepp commented May 15, 2025

Objective

  • BE crashes because of app_context issue when flagsmith fails- use print instead

@taraepp taraepp merged commit 0b27fae into develop May 15, 2025
9 of 11 checks passed
@taraepp taraepp deleted the fix-flagsmith-error-handling branch May 15, 2025 20:06
matbusby-fw pushed a commit that referenced this pull request May 26, 2025
don't crash BE when no app context when flagsmith is down
asinn134 added a commit that referenced this pull request May 29, 2025
* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* [MDS-6474] Report 1-many UI (#3535)

* allow linking and unlinking of multiple conditions to report requirements. Do some cleanup

* form changes

* rest of the UI and also some BE stuff

* test issues, styling issues

* add a little BE test

* fix some logic, update a test

* selector test

* test bad request

* test coverage for get check permit id

* remove stray "s"

* update error message

* change some field labels, error messge

* allow linking and unlinking of multiple conditions to report req

* checking out memory usage

* revert memory monitoring

* change title back too

* [FIX] flagsmith error handling (#3537)

don't crash BE when no app context when flagsmith is down

* [MDS-6497] Fix for mine showing alerts from another mine (#3539)

fix for mine showing alerts from another mine

* [MDS-6491] Add permit_type tag (#3540)

* Add permit_type meta tag

* Update tests

* Add output_dir

* [Snyk] Security upgrade node from 20.18.3-alpine to 20.19.2-alpine (#3541)

fix: services/minespace-web/Dockerfile.ci to reduce vulnerabilities

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* [MDS-6507] Fix for Page not found when clicking view minespace in Core (#3542)

adjusted VIEW_MINESPACE route

* [MDS-6062] Fix NOW transfer (#3543)

* Support transferring draft permits, add migration

* Update migration

* Fix final bugs

* Add test

* some missing env variables from local setup

* Handle duplicate report requirements in permit condition creation

* adding report name when missing during permit extraction

* adding report name when missing during permit extraction

* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* [MDS-6474] Report 1-many UI (#3535)

* allow linking and unlinking of multiple conditions to report requirements. Do some cleanup

* form changes

* rest of the UI and also some BE stuff

* test issues, styling issues

* add a little BE test

* fix some logic, update a test

* selector test

* test bad request

* test coverage for get check permit id

* remove stray "s"

* update error message

* change some field labels, error messge

* allow linking and unlinking of multiple conditions to report req

* checking out memory usage

* revert memory monitoring

* change title back too

* restore setenv to match dev

* some missing env variables from local setup

* Handle duplicate report requirements in permit condition creation

* Refactor tests and logic for permit condition reports

Added new test cases and improved existing ones for creating permit condition report requirements. Updated logic to handle session validation more robustly and ensure accurate processing of shared report requirements.

* restore setenv to match dev

* update test

* adding report name when missing during permit extraction

* update test

* adding report name when missing during permit extraction

* to match dev

* remove space changes

* add test

* adding report name when missing during permit extraction

* to match dev

* remove space changes

* add test

* revert snap

---------

Co-authored-by: Tara Epp <102187683+taraepp@users.noreply.github.com>
Co-authored-by: Samuel Gerard <sggerard1997@gmail.com>
Co-authored-by: Simen Fivelstad Smaaberg <66635118+simensma-fresh@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Mat.Busby <mat.busby@ca.ey.com>
taraepp added a commit that referenced this pull request Jun 4, 2025
* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* [MDS-6474] Report 1-many UI (#3535)

* allow linking and unlinking of multiple conditions to report requirements. Do some cleanup

* form changes

* rest of the UI and also some BE stuff

* test issues, styling issues

* add a little BE test

* fix some logic, update a test

* selector test

* test bad request

* test coverage for get check permit id

* remove stray "s"

* update error message

* change some field labels, error messge

* allow linking and unlinking of multiple conditions to report req

* checking out memory usage

* revert memory monitoring

* change title back too

* restore setenv to match dev

* [MDS-6450] identify same report (#3547)

* some missing env variables from local setup

* Handle duplicate report requirements in permit condition creation

* Refactor tests and logic for permit condition reports

Added new test cases and improved existing ones for creating permit condition report requirements. Updated logic to handle session validation more robustly and ensure accurate processing of shared report requirements.

* restore setenv to match dev

* update test

* update test

---------

Co-authored-by: Tara Epp <102187683+taraepp@users.noreply.github.com>

* [MDS-6516] Add mandatory report name in extraction (#3551)

* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* [MDS-6474] Report 1-many UI (#3535)

* allow linking and unlinking of multiple conditions to report requirements. Do some cleanup

* form changes

* rest of the UI and also some BE stuff

* test issues, styling issues

* add a little BE test

* fix some logic, update a test

* selector test

* test bad request

* test coverage for get check permit id

* remove stray "s"

* update error message

* change some field labels, error messge

* allow linking and unlinking of multiple conditions to report req

* checking out memory usage

* revert memory monitoring

* change title back too

* [FIX] flagsmith error handling (#3537)

don't crash BE when no app context when flagsmith is down

* [MDS-6497] Fix for mine showing alerts from another mine (#3539)

fix for mine showing alerts from another mine

* [MDS-6491] Add permit_type tag (#3540)

* Add permit_type meta tag

* Update tests

* Add output_dir

* [Snyk] Security upgrade node from 20.18.3-alpine to 20.19.2-alpine (#3541)

fix: services/minespace-web/Dockerfile.ci to reduce vulnerabilities

Co-authored-by: snyk-bot <snyk-bot@snyk.io>

* [MDS-6507] Fix for Page not found when clicking view minespace in Core (#3542)

adjusted VIEW_MINESPACE route

* [MDS-6062] Fix NOW transfer (#3543)

* Support transferring draft permits, add migration

* Update migration

* Fix final bugs

* Add test

* some missing env variables from local setup

* Handle duplicate report requirements in permit condition creation

* adding report name when missing during permit extraction

* adding report name when missing during permit extraction

* some missing env variables from local setup

* [MDS-6451] Report Condition Migration (#3502)

* create migration

* drop the old column, add the unique constraint

* fix unique constraint

* change name of table, add audit fields

* add deleted_ind to table

* version history

* fix null value insertion into guid column

* get some of the tests working

* update logic

* changes in extraction process for tests

* basic tests working for permit requirements

* make error output stop running into a type error

* remainder of tests

* update error handling a bit

* [MDS-6474] Report 1-many UI (#3535)

* allow linking and unlinking of multiple conditions to report requirements. Do some cleanup

* form changes

* rest of the UI and also some BE stuff

* test issues, styling issues

* add a little BE test

* fix some logic, update a test

* selector test

* test bad request

* test coverage for get check permit id

* remove stray "s"

* update error message

* change some field labels, error messge

* allow linking and unlinking of multiple conditions to report req

* checking out memory usage

* revert memory monitoring

* change title back too

* restore setenv to match dev

* some missing env variables from local setup

* Handle duplicate report requirements in permit condition creation

* Refactor tests and logic for permit condition reports

Added new test cases and improved existing ones for creating permit condition report requirements. Updated logic to handle session validation more robustly and ensure accurate processing of shared report requirements.

* restore setenv to match dev

* update test

* adding report name when missing during permit extraction

* update test

* adding report name when missing during permit extraction

* to match dev

* remove space changes

* add test

* adding report name when missing during permit extraction

* to match dev

* remove space changes

* add test

* revert snap

---------

Co-authored-by: Tara Epp <102187683+taraepp@users.noreply.github.com>
Co-authored-by: Samuel Gerard <sggerard1997@gmail.com>
Co-authored-by: Simen Fivelstad Smaaberg <66635118+simensma-fresh@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Mat.Busby <mat.busby@ca.ey.com>

* address SonarQube reliability concern

---------

Co-authored-by: Mat.Busby <mat.busby@ca.ey.com>
Co-authored-by: Mat Busby <83598933+matbusby-fw@users.noreply.github.com>
Co-authored-by: asinn134 <127789479+asinn134@users.noreply.github.com>
Co-authored-by: Samuel Gerard <sggerard1997@gmail.com>
Co-authored-by: Simen Fivelstad Smaaberg <66635118+simensma-fresh@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants