Skip to content

Quality dashboard: backend fix to enable mongo-only mode, security fix, disable old SQL, fix UI API, add mock data - #50

Merged
Valeeeu merged 8 commits into
devfrom
equipe5/mongo-profile-fix
Mar 13, 2026
Merged

Quality dashboard: backend fix to enable mongo-only mode, security fix, disable old SQL, fix UI API, add mock data#50
Valeeeu merged 8 commits into
devfrom
equipe5/mongo-profile-fix

Conversation

@GervaisETS

@GervaisETS GervaisETS commented Feb 22, 2026

Copy link
Copy Markdown

This Pull Request introduces a full configuration update to enable the Mongo-only execution mode for the Équipe 5 backend (Test Result Dashboad - Équipe 6) service in the TAF project.
Previously, the backend attempted to load SQL/JPA auto‑configuration, triggered Hibernate, created datasource objects, and produced errors when no PostgreSQL instance was available.

This PR applies all required changes so the backend runs cleanly using only MongoDB, with SQL components fully disabled. It also introduces a profile‑based security configuration, a proper Spring Boot profile (mongo), and safer environment variable handling.

Files added:
src/main/java/ca/etsmtl/taf/config/JpaAuditingConfig.java
src/main/java/ca/etsmtl/taf/security/MongoSecurityConfig.java
src/main/resources/application-mongo.yml
src/main/resources/application-sql.yml

Files modified:
src/main/java/ca/etsmtl/taf/TestAutomationFrameworkApplication.java
src/main/java/ca/etsmtl/taf/config/EnvConfig.java
src/main/java/ca/etsmtl/taf/config/SQLConfig.java
src/main/java/ca/etsmtl/taf/controller/ApiBddController.java
src/main/java/ca/etsmtl/taf/controller/AuthController.java
src/main/java/ca/etsmtl/taf/controller/TestController.java
src/main/java/ca/etsmtl/taf/repository/ApiBddJmeterRepository.java
src/main/java/ca/etsmtl/taf/repository/ProjectRepository.java
src/main/java/ca/etsmtl/taf/repository/RoleRepository.java
src/main/java/ca/etsmtl/taf/repository/TestRepository.java
src/main/java/ca/etsmtl/taf/repository/UserRepository.java
src/main/java/ca/etsmtl/taf/security/WebSecurityConfig.java
src/main/java/ca/etsmtl/taf/security/services/UserDetailsServiceImpl.java
src/main/java/ca/etsmtl/taf/service/ApiBddService.java
src/main/resources/application.properties
.gitignore (added explanations + protections for env files)

Expected benefits:
The backend now starts cleanly using MongoDB with:
-No SQL errors
-No datasource initialization
-No login redirections
The frontend will be able to call backend routes on port 8086 through a Codespace URL.

The 2nd Commit in this Pull Request: Dashboard fixes, Codespaces proxy, and mock data

This commit adds support for running the Équipe 5 (Test Result Dashboard) frontend + backend in GitHub Codespaces and provides full dashboard mock data (63 days of tests) for local development.

New files:

  • code-equipe5/backend/mockData.json
  • code-equipe5/frontend/src/environments/environment.codespace.ts

Modified files:

  • code-equipe5/backend/src/main/java/ca/etsmtl/taf/controller/DashboardController.java
  • code-equipe5/frontend/package.json
  • code-equipe5/frontend/proxy.conf.json
  • code-equipe5/frontend/src/app/board-admin/board-admin.service.ts

@GervaisETS GervaisETS closed this Feb 22, 2026
@GervaisETS GervaisETS reopened this Feb 22, 2026
@GervaisETS GervaisETS changed the title Backend: enable mongo-only profile, security fix, disable SQL, add mongo configs Quality dashboard: backend fix to enable mongo-only mode, security fix, disable old SQL, fix UI API, add mock data Feb 23, 2026
@GervaisETS GervaisETS assigned GervaisETS and unassigned GervaisETS Mar 1, 2026
@GervaisETS
GervaisETS changed the base branch from main to dev March 9, 2026 16:15
@Valeeeu
Valeeeu self-requested a review March 11, 2026 23:52
@Valeeeu
Valeeeu merged commit 9ce9c93 into dev Mar 13, 2026
2 of 3 checks passed
@Valeeeu
Valeeeu deleted the equipe5/mongo-profile-fix branch March 13, 2026 18:23
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