Skip to content

Enhance database schemas, API endpoints, and repository cleanup#35

Merged
ben-AI-cybersec merged 7 commits intoRedback-Operations:mainfrom
RileyTripcony:feature/rileytripcony-backend
Aug 22, 2025
Merged

Enhance database schemas, API endpoints, and repository cleanup#35
ben-AI-cybersec merged 7 commits intoRedback-Operations:mainfrom
RileyTripcony:feature/rileytripcony-backend

Conversation

@RileyTripcony
Copy link
Contributor

  • Added four new database schemas to support athlete activity data, tested with mock data.

  • Created a README in models/ with guidance on using a database inspection tool for troubleshooting.

  • Updated .gitignore to exclude all database files (*.db) to prevent accidental commits of test data.

  • Changed default local database filename to reflexionpro_backend.db for clarity, replacing the outdated goals.db.

  • Removed obsolete “Initialise Database” README step and deprecated standalone SQLite script under /scripts, as SQLAlchemy manages database setup within the app.

  • Implemented two new API endpoints for activity and body_insight tables, tested via Postman and integrated with the local database.

  • Verified frontend functionality by displaying a real-time mock VO₂ max value fetched dynamically from the database (local edits to frontend).

RileyTripcony and others added 7 commits August 8, 2025 14:15
…models and add new API modules; add *.db to .gitignore

Once running, the backend will be available at:
`http://localhost:5000`

<<<<<<< HEAD
The Environment used in the backend are available for reference in the .env.example file located inside the Backend folder.
=======

>>>>>>> a0a7347 (Update README and app.py; remove old DB script and goals.db; improve models and add new API modules; add *.db to .gitignore)
test_vul.py is triggering bandit scan and is slowing down workflow. I have saved the file to my system as a backup.
The script and command to initialise database is redundant as we use flask for this project. 

Removing this step will increase clarity.
Forcing a new security scan
@github-actions
Copy link

🔒 Security Scan Results

🔒 Security Scan Results
=========================

Bandit Scan Results:
-------------------
Run started:2025-08-22 10:22:28.352722

Test results:
	No issues identified.

Code scanned:
	Total lines of code: 857
	Total lines skipped (#nosec): 0
	Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
	Total issues (by severity):
		Undefined: 0
		Low: 0
		Medium: 0
		High: 0
	Total issues (by confidence):
		Undefined: 0
		Low: 0
		Medium: 0
		High: 0
Files skipped (0):

Dependency Check Results:
-----------------------

No critical security issues detected.

The code has passed all critical security checks.

Copy link
Member

@ben-AI-cybersec ben-AI-cybersec left a comment

Choose a reason for hiding this comment

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

All changes look good to me

@ben-AI-cybersec ben-AI-cybersec merged commit 9897719 into Redback-Operations:main Aug 22, 2025
1 check 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.

2 participants