-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schools #641
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #641 +/- ##
==========================================
- Coverage 81.31% 81.06% -0.26%
==========================================
Files 129 134 +5
Lines 10013 10318 +305
==========================================
+ Hits 8142 8364 +222
- Misses 1871 1954 +83 ☔ View full report in Codecov by Sentry. |
> [!IMPORTANT] > We really need to release new versions **soon**, as we have not for several months and there's some time needed to test in alpha before prod. This goes hand in hand with the **major version bump** [for Titan](../../Titan/pull/462). Both PRs are ready, and _seemingly_ waiting for some more **breaking changes** to be merged, including (by likelihood): - [ ] Allow students from other Schools to have a MyECL account: #641 - [ ] MyECLPay: #611 - [ ] "_Centrale Mega Meme_" Meme module: [no PR yet] [see branch](../tree/cmm) - [x] External Notifications: #613
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
db_school = models_core.CoreSchool( | ||
id=school.value, | ||
name=school.name, | ||
email_regex=".*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably set a regex
initialization.create_school_sync(school=db_school, db=db) | ||
except IntegrityError as error: | ||
hyperion_error_logger.fatal( | ||
f"Startup: Could not add group {db_school.name}<{db_school.id}> in the database: {error}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f"Startup: Could not add group {db_school.name}<{db_school.id}> in the database: {error}", | |
f"Startup: Could not add school {db_school.name}<{db_school.id}> in the database: {error}", |
name: Mapped[str] = mapped_column(String, unique=True) | ||
email_regex: Mapped[str] = mapped_column(String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: Mapped[str] = mapped_column(String, unique=True) | |
email_regex: Mapped[str] = mapped_column(String) | |
name: Mapped[str] = mapped_column(unique=True) | |
email_regex: Mapped[str] |
Description
Please explain the changes you made here.
Checklist