Skip to content

Commit de784c4

Browse files
authored
Merge pull request #2800 from bluewave-labs/develop-saas
Merging Develop-SaaS into Master-SaaS: Dec 2nd, 2025
2 parents cc0185e + 9f38117 commit de784c4

File tree

466 files changed

+70781
-7595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+70781
-7595
lines changed

.env.dev

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# NOTE: Please do not change the BACKEND_PORT
33
BACKEND_PORT=3000
44
BACKEND_URL=http://localhost:3000
5-
FRONTEND_PORT=8082
6-
FRONTEND_URL=http://localhost:8082
7-
ALLOWED_ORIGINS=["http://localhost:5173", "http://localhost:8082", "http://localhost:3000"]
5+
FRONTEND_PORT=5173
6+
FRONTEND_URL=http://localhost:5173
7+
HOST=localhost
88
BIAS_AND_FAIRNESS_PORT=8000
99
NODE_ENV=development
1010

@@ -30,6 +30,8 @@ MOCK_DATA_ON=false
3030
JWT_SECRET=aacc459503e937c73ac3c4ebd874578a81b95861e83cdd923eeca8f7dadffea9d026e1581ee966a7fc4a74a8c6126ddec75c2c662ed7777a90e3aefb00ef1a87
3131
REFRESH_TOKEN_SECRET=e628d7938c76308774cecf87dcb9bee6b8cae80ed2d20731ef94e211cf9c9b82b4632b55cead3632d59dd72d7e0d28f0afe125bfeaa0ea82b548be86c0de179d
3232

33+
SESSION_SECRET=your-session-secret
34+
3335
# Encryption Settings
3436
ENCRYPTION_ALGORITHM=YOUR_ENCRYPTION_ALGORITHM
3537
ENCRYPTION_PASSWORD=YOUR_ENCRYPTION_PASSWORD

.env.prod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BACKEND_PORT=3000
44
BACKEND_URL=http://localhost:3000 # localhost needs to be replaced by ip
55
FRONTEND_PORT=8080
66
FRONTEND_URL=http://localhost:8080 # localhost needs to be replaced by ip
7-
ALLOWED_ORIGINS=["http://localhost:5173", "http://localhost:8080", "http://localhost:3000"] # localhost needs to be replaced by ip
7+
HOST=localhost
88
BIAS_AND_FAIRNESS_PORT=8000
99
NODE_ENV=production
1010
# NOTE: Please do not change this unless the database is hosted on a different server and you want to use SSL for the connection
@@ -40,6 +40,8 @@ MOCK_DATA_ON=false
4040
JWT_SECRET=aacc459503e937c73ac3c4ebd874578a81b95861e83cdd923eeca8f7dadffea9d026e1581ee966a7fc4a74a8c6126ddec75c2c662ed7777a90e3aefb00ef1a87
4141
REFRESH_TOKEN_SECRET=e628d7938c76308774cecf87dcb9bee6b8cae80ed2d20731ef94e211cf9c9b82b4632b55cead3632d59dd72d7e0d28f0afe125bfeaa0ea82b548be86c0de179d
4242

43+
SESSION_SECRET=your-session-secret
44+
4345
# Encryption Settings
4446
ENCRYPTION_ALGORITHM=YOUR_ENCRYPTION_ALGORITHM
4547
ENCRYPTION_PASSWORD=YOUR_ENCRYPTION_PASSWORD

.github/workflows/docker-image-saas-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
VITE_GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }}
6363
VITE_SLACK_CLIENT_ID=${{ secrets.SLACK_CLIENT_ID }}
6464
VITE_APP_VERSION=${{ env.TAG }}
65+
VITE_BRANDFETCH_API_KEY=${{ secrets.VITE_BRANDFETCH_API_KEY }}
6566
6667
- name: Build and push Servers image
6768
uses: docker/build-push-action@v4

.github/workflows/docker-image-saas.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
VITE_GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }}
6767
VITE_SLACK_CLIENT_ID=${{ secrets.SLACK_CLIENT_ID }}
6868
VITE_APP_VERSION=${{ env.TAG }}
69+
VITE_BRANDFETCH_API_KEY=${{ secrets.VITE_BRANDFETCH_API_KEY }}
6970
7071
- name: Build and push Servers image
7172
uses: docker/build-push-action@v4

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ agent-output.md
2525
FILE_MANAGER_WORKFLOW.md
2626
SYSTEM_DESIGN_FILE_MANAGER.md
2727
SYSTEM_DESIGN_EMAIL_NOTIFICATION.md
28-
FILE_STORAGE_ARCHITECTURE.md
28+
FILE_STORAGE_ARCHITECTURE.md
29+
Authentication_Authorization_Workflow_Documentation.md

BiasAndFairnessModule/run_full_evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _run_metric(metric_name: str, y_true: np.ndarray, y_pred: np.ndarray,
252252
race_value = convert_metric_to_float(race_result, metric_name)
253253
all_results[f"{metric_name}_race"] = race_value
254254

255-
print(f" ✅ {metric_name}: sex={sex_value:.4f}, race={race_value:.4f}")
255+
print(f" ✅ {metric_name}: computed for sex and race (values not logged for privacy)")
256256

257257
except Exception as e:
258258
print(f" ❌ {metric_name}: Error - {str(e)}")
@@ -388,7 +388,7 @@ def _print_pipeline_summary(comprehensive_results: dict, clean_results: dict):
388388
if fairness_values:
389389
max_disparity_sex = max(fairness_values.values())
390390
max_metric_sex = max(fairness_values, key=fairness_values.get)
391-
print(f" Highest sex-based disparity: {max_metric_sex} = {max_disparity_sex:.4f}")
391+
print(f" Sex-based disparities detected. (Metric name and value omitted for privacy.)")
392392

393393
fairness_values_race = {k: v for k, v in comprehensive_results['fairness_metrics'].items()
394394
if v is not None and 'race' in k}

BiasAndFairnessModule/src/eval_engine/results_summarizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def summarize_results(results_path: str = 'artifacts/evaluation_results.json') -
6060
eo_sex = results['fairness']['equalized_odds_sex']
6161
eo_race = results['fairness']['equalized_odds_race']
6262

63-
print(f" Equalized Odds (Sex): {eo_sex:.3f}")
63+
print(" Equalized Odds (Sex): See assessment below")
6464
if abs(eo_sex) < 0.1:
6565
print(" ✅ Good: Similar true positive and false positive rates")
6666
elif abs(eo_sex) < 0.2:

0 commit comments

Comments
 (0)