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

Import/nav18 events #1367

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Import/nav18 events #1367

merged 2 commits into from
Dec 12, 2024

Conversation

TheWalkingLeek
Copy link
Member

Aktuell werden nur ca. 300 Kurse importiert. Es schlagen noch viele Validierungen aus (oftmals aufgrund https://github.com/hitobito/hitobito_sac_cas/blob/master/app/models/sac_cas/event/course.rb#L170 glaube ich).
ToDos:

  • prüfen wie wir mit diesen Validierungsfehlern umgehen & ob der Import dort bisher alles richtig macht
  • Spec schreiben

@@ -84,6 +84,8 @@ def any_email_possible?
private

def assert_valid_state_change
return if new_record?
Copy link
Member Author

Choose a reason for hiding this comment

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

Diese Validierung schlägt beim Import immer fehl da state_was immer nil ist. Ich gehe davon aus das liegt daran dass wir erst das ActiveRecord Objekt initialisieren und anschliessend attributes assignen.

@codez codez force-pushed the import/nav18-events branch 5 times, most recently from a1d242e to 6a4c097 Compare December 12, 2024 07:38
@codez codez marked this pull request as ready for review December 12, 2024 07:47
@codez codez force-pushed the import/nav18-events branch from 550573f to 78cf2f8 Compare December 12, 2024 08:14
@codez codez force-pushed the import/nav18-events branch from 78cf2f8 to c58e450 Compare December 12, 2024 09:36
@codez codez merged commit 76ebbb2 into master Dec 12, 2024
6 checks passed
@codez codez deleted the import/nav18-events branch December 12, 2024 09:46
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