Skip to content

Raid v2 improvments - #1054

Merged
barimuls merged 37 commits into
mainfrom
raidV2-improvments
Sep 16, 2026
Merged

barimuls merged 37 commits into
mainfrom
raidV2-improvments

Conversation

@maximeroucher

@maximeroucher maximeroucher commented Aug 24, 2026

Copy link
Copy Markdown
Member

Description

Summary

Updating Raid to match the first points for data security

Changes Made

  • Adding consent field to the security file
  • Adding read_medical_data permission gating the zip download (now only source of security file read)
  • Logging when a zip download is attempted
  • Adding course responsible as emergency contact into the security file, as the Raid requested

Additional Notes

First step toward a better security data handling.

Classification

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 🔨 Refactor (non-breaking change that neither fixes a bug nor adds a feature)
  • 🔧 Infra CI/CD (changes to configs of workflows)
  • 💥 BREAKING CHANGE (fix or feature that require a new minimal version of the front-end)
  • 😶‍🌫️ No impact for the end-users

Impact & Scope

  • Core functionality changes
  • Single module changes
  • Multiple modules changes
  • Database migrations required
  • Other: ...

Testing

  • 1. Tested this locally
  • 2. Added/modified tests that pass the CI (or tested in a downstream fork)
  • 3. Tested in a deployed pre-prod
  • 0. Untestable (exceptionally), will be tested in prod directly

Documentation

  • Updated the docs accordingly :
  • " Docstrings
  • # Inline comments
  • No documentation needed

@Marc-Andrieu Marc-Andrieu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks promising! That's a clean start about the medical data issue

Comment thread app/modules/raid/coredata_raid.py
Comment thread app/modules/raid/endpoints_raid.py
@maximeroucher
maximeroucher force-pushed the raidV2-improvments branch 3 times, most recently from 88021b7 to d3331a4 Compare August 24, 2026 12:41
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 64.93506% with 81 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.83%. Comparing base (53e5e7e) to head (bd32789).

Files with missing lines Patch % Lines
app/modules/raid/endpoints_raid.py 51.19% 41 Missing ⚠️
app/modules/raid/utils/utils_raid.py 52.83% 25 Missing ⚠️
app/modules/raid/cruds_raid.py 56.25% 14 Missing ⚠️
app/modules/raid/dependencies_raid.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1054      +/-   ##
==========================================
- Coverage   84.96%   84.83%   -0.13%     
==========================================
  Files         220      220              
  Lines       16400    16553     +153     
==========================================
+ Hits        13934    14043     +109     
- Misses       2466     2510      +44     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Daihecyy Daihecyy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Possible to split PR ?
consent_given and course_responsible have nothing to do with each other, comments will get muddled

Comment thread app/modules/raid/cruds_raid.py
Comment thread app/modules/raid/endpoints_raid.py Outdated
Comment thread app/modules/raid/endpoints_raid.py Outdated
Comment thread app/modules/raid/endpoints_raid.py Outdated
Comment thread app/modules/raid/endpoints_raid.py
Comment thread app/modules/raid/endpoints_raid.py Outdated
Comment thread app/modules/raid/endpoints_raid.py
Comment thread app/modules/raid/models_raid.py
@maximeroucher

Copy link
Copy Markdown
Member Author

Possible to split PR ? consent_given and course_responsible have nothing to do with each other, comments will get muddled

Given the time constraint and the time taken to review and merge a PR, I decided to put all the changes in one. I acknowledge that it will be a bit harder to read, that's why I ensure to produce really thin commit to allow a good review

@maximeroucher
maximeroucher force-pushed the raidV2-improvments branch 3 times, most recently from 8d80f96 to 08471eb Compare August 24, 2026 19:58
@armanddidierjean
armanddidierjean force-pushed the raidV2-improvments branch 3 times, most recently from ef26b01 to c53ee18 Compare August 25, 2026 08:46
@maximeroucher
maximeroucher force-pushed the raidV2-improvments branch 2 times, most recently from 3ca1ad0 to 3f8741e Compare September 4, 2026 14:56
Comment thread app/modules/raid/endpoints_raid.py
@barimuls
barimuls merged commit dfc2ee7 into main Sep 16, 2026
7 checks passed
@barimuls
barimuls deleted the raidV2-improvments branch September 16, 2026 09:48
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.

5 participants