Commit 8387460
Felipe Rosa
chore: Update ideascale/snapshot importer to use pydantic BaseModel as well as make it compatible with pydantic v2 | NPG-8105 (#554)
# Description
* Ideascale and snapshot importers now use pydantic's `BaseModel`
instead of `dataclasses.dataclass`
* Replaced `parse_obj_raw` for `model_validate` as it was removed in
pydantic v2
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## How Has This Been Tested?
I ran the importers manually.
## Checklist
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules1 parent 357f230 commit 8387460
File tree
7 files changed
+157
-124
lines changed- services/voting-node
- utilities/ideascale-importer
- ideascale_importer
- ideascale
7 files changed
+157
-124
lines changed
0 commit comments