Skip to content
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

BC-4343 - SJW - Disable Transfer Period in all instances #4372

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

MartinSchuhmacher
Copy link
Contributor

@MartinSchuhmacher MartinSchuhmacher commented Aug 31, 2023

Description

Additional to database changes, this script is updated on server for future cases with correct syntax, once the scripts should run again on deployment. No further need for now.

Links to Tickets or other pull requests

BC-4343

Changes

Deployment

  • no run of migration needed

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

@@ -40,7 +44,7 @@ appPromise
.updateMany(
{
federalState: { $in: federalStateIds },
ldapSchoolIdentifier: { $exists: false },
$or: [{ ldapSchoolIdentifier: { $exists: false } }, { ldapSchoolIdentifier: '' }],
Copy link
Contributor

Choose a reason for hiding this comment

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

we could also add here currentSchoolYear condition
currentYear: currentSchoolYearId._id instead of (or in addition to) currentYear: { $exists: true }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point to do it similarly to the above situation for LDAP schools.
Why this is different here was my idea to basically adjust every school so no "remainers" are left behind.

For LDAP I wanted it to be more specific because there is more stuff that could go wrong.

@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@MartinSchuhmacher MartinSchuhmacher merged commit eddf534 into main Sep 1, 2023
43 checks passed
@MartinSchuhmacher MartinSchuhmacher deleted the BC-4343-disable-transfer-phase branch September 1, 2023 16:16
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