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: Import 1_people umstellen auf CSV-Report und CSV-Source #862

Conversation

openscript
Copy link
Contributor

No description provided.

@openscript openscript linked an issue Aug 20, 2024 that may be closed by this pull request
17 tasks
@openscript openscript marked this pull request as ready for review August 27, 2024 08:19
@openscript openscript changed the title 767 people import 1 people umstellen auf csv report und csv source IMPORT: Import 1_people umstellen auf CSV-Report und CSV-Source Aug 27, 2024
rnestler and others added 11 commits August 29, 2024 14:37
* Add groups

# Conflicts:
#	app/models/group/sac_cas.rb

* Add locales
* Add data quality alert

* Update invoice job

* Add specs

* Update view and add feature spec

* Refactor and add missing spec

---------

Co-authored-by: Nils Rauch <[email protected]>
* add serializer class attribute

* add feature spec to check for id and birth year search

* improve spec
@mtnstar
Copy link
Contributor

mtnstar commented Sep 3, 2024

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "people_pkey" (ActiveRecord::RecordNotUnique)
DETAIL:  Key (id)=(99) already exists.

existiert eine Person bereits, gibt es einen constraint error.
sollte es dann nicht einfach die Person updaten? Im XLSX Import Script hatte es ein find_or_initialize aus diesem Grund.
Gibt es einen Grund das nicht mehr so zu handhaben?

@openscript
Copy link
Contributor Author

openscript commented Sep 3, 2024

  • Truemail validiert via Regex während Importtask
  • Merge-Fehler beheben
  • find_or_initialize für mehrfache Ausführbarkeit

mtnstar
mtnstar previously requested changes Sep 3, 2024
Copy link
Contributor

@mtnstar mtnstar left a comment

Choose a reason for hiding this comment

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

sieht soweit super aus 🥳

gerne teste ich den Import nochmals sobald alle Änderungen vorhanden sind 🚀

app/domain/sac_imports/csv_report.rb Show resolved Hide resolved
app/domain/sac_imports/csv_source.rb Show resolved Hide resolved
app/domain/sac_imports/people_importer.rb Show resolved Hide resolved
app/domain/sac_imports/person_entry.rb Show resolved Hide resolved
doc/import.md Show resolved Hide resolved
doc/import.md Outdated Show resolved Hide resolved
lib/tasks/sac_imports.rake Outdated Show resolved Hide resolved
@openscript openscript dismissed mtnstar’s stale review September 4, 2024 09:08

Approval in real life

@openscript openscript enabled auto-merge (squash) September 4, 2024 12:27
@openscript openscript merged commit 3336f29 into master Sep 4, 2024
5 checks passed
@openscript openscript deleted the 767-people-import-1_people-umstellen-auf-csv-report-und-csv-source branch September 4, 2024 12:29
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.

PEOPLE: Import 1_people umstellen auf CSV-Report und CSV-Source
9 participants