Skip to content

Upgrade to Python 3.11, Flask 3, and refactor for SQLAlchemy 2.x - #1107

Merged
josekudiyirippil merged 129 commits into
bcgov:mainfrom
chrsamp:sync-develop-into-main
Sep 1, 2026
Merged

Upgrade to Python 3.11, Flask 3, and refactor for SQLAlchemy 2.x#1107
josekudiyirippil merged 129 commits into
bcgov:mainfrom
chrsamp:sync-develop-into-main

Conversation

@chrsamp

@chrsamp chrsamp commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This PR syncs changes from the develop branch into main up to #1084. The branch preserves the changes made on main in #1105 and #1106.

chrsamp added 30 commits April 28, 2026 09:21
- Updated database access methods from `query.get()` to `db.session.get()` for consistency and improved performance in `appointment_post.py`, `appointment_put.py`, `exam_list.py`, `citizen_detail.py`, `citizen_generic_invite.py`, `citizen_list.py`, `health.py`, `service_requests_detail.py`, `service_requests_list.py`, `services.py`, and `snowplow.py`.
- Refactored citizen state retrieval logic into dedicated functions in `citizen_detail.py`, `citizen_list.py`, and `service_requests_list.py` to enhance readability and maintainability.
- Improved error handling in `citizen_detail.py` and `citizen_generic_invite.py` by using `get_json(silent=True)` to avoid exceptions on empty requests.
- Updated SQLAlchemy and Flask-SQLAlchemy versions
- Added new smoke test scripts for SQLAlchemy to validate database interactions and ensure application stability.
- Refactored application initialization in `manage.py` and `qsystem.py` to streamline the setup process and improve logging.
- Removed deprecated code and comments to clean up the codebase and enhance clarity.
veenupunyani and others added 23 commits July 9, 2026 17:41
 added services route and redirected root to this page
commit 3af7fd5
Merge: befa806 7e77b67
Author: Veenu Punyani <Veenu.veenu@gov.bc.ca>
Date:   Fri Jul 10 15:42:18 2026 -0700

    Merge pull request bcgov#1085 from bcgov/dev-66-Add-non-SSR-services-route-and-page

    Added services route

commit 7e77b67
Author: Veenu Punyani <veenucan24@gmail.com>
Date:   Fri Jul 10 15:06:06 2026 -0700

     added services route

     added services route and redirected root to this page
added services table and others button needed on step 1. intentionally left out the persistence of booking state as it was getting complex but some ground work is there by adding booking steps.
…vices

Create services table and import the list of available services
…ice-across-booking-step-navigation

Persist selected service in shared booking context for later steps.
Fix empty exam PUT request causing 415
@sonarqubecloud

sonarqubecloud Bot commented Aug 25, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
21 New issues
9 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.5% Duplication on New Code

See analysis details on SonarQube Cloud

Comment thread api/Dockerfile Dismissed
Comment thread api/Dockerfile Dismissed
Comment thread api/Dockerfile Dismissed
Comment thread api/Dockerfile Dismissed
Comment thread api/Dockerfile Dismissed
Comment thread api/scripts/run_api_full_tests.sh Dismissed
Comment thread api/scripts/run_api_integration_tests.sh Dismissed
Comment thread api/scripts/run_api_smoke_tests.sh Dismissed
Comment thread api/Dockerfile Dismissed
@chrsamp
chrsamp marked this pull request as ready for review August 25, 2026 16:42

@josekudiyirippil josekudiyirippil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and looks good.

@josekudiyirippil

Copy link
Copy Markdown
Collaborator

merging after testing.

@josekudiyirippil
josekudiyirippil merged commit ff82396 into bcgov:main Sep 1, 2026
3 checks passed
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.

4 participants