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

✨ [#105] converted actor serializer to polymorphic serializer #111

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

bart-maykin
Copy link
Contributor

@bart-maykin bart-maykin commented Nov 28, 2023

Fixes #105

Changed Partij and Actor to support Polymorphic Serializers.

@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch 4 times, most recently from df03946 to 38b66f5 Compare November 29, 2023 16:34
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

Attention: 27 lines in your changes are missing coverage. Please review.

Comparison is base (c549497) 97.20% compared to head (9b6745f) 96.98%.
Report is 3 commits behind head on master.

Files Patch % Lines
...nt/components/klantinteracties/api/polymorphism.py 85.00% 12 Missing ⚠️
...lant/components/klantinteracties/admin/partijen.py 25.00% 6 Missing ⚠️
...nents/klantinteracties/api/serializers/partijen.py 94.31% 5 Missing ⚠️
...ant/components/klantinteracties/models/partijen.py 60.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
- Coverage   97.20%   96.98%   -0.22%     
==========================================
  Files         159      177      +18     
  Lines        7149     7366     +217     
==========================================
+ Hits         6949     7144     +195     
- Misses        200      222      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch from 38b66f5 to c237f39 Compare November 29, 2023 16:42
@bart-maykin bart-maykin marked this pull request as ready for review November 29, 2023 16:57
Copy link
Member

@joeribekker joeribekker left a comment

Choose a reason for hiding this comment

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

Partijen

  • uuid attribuut toevoegen
  • soortPartij: Persoon --> AKKOORD
  • soortPartij: Contactpersoon
    • werkteVoorOrganisatie hernoemen naar werkteVoorPartij
      • Attributen toevoegen:uuid en url
      • validator toevoegen. Een partij van soortPartij contactersoon mag enkel aan een partij gekoppeld worden van soortPartij organisatie.
  • soortPartij: Organisatie
    • Maak contactpersonen read-only.
    • Haal id, partij attributen er uit.

@joeribekker
Copy link
Member

Bij PATCH/UPDATE moeten bij wijzigen van discriminator, de relaties weggegooid worden, alvorens je update.

@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch 3 times, most recently from c200bd7 to 259bea0 Compare December 5, 2023 11:02
@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch from 259bea0 to 750d6d3 Compare December 7, 2023 14:19
@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch from 750d6d3 to 5d7710d Compare December 7, 2023 14:23
@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch from 5d7710d to ff6bfd2 Compare December 14, 2023 16:42
@bart-maykin bart-maykin force-pushed the feature/105-introduce-polymorphic-serializers branch from ff6bfd2 to ef49fc2 Compare December 14, 2023 16:46
bart-maykin and others added 2 commits December 15, 2023 10:25
…te-update

🎨 removed the reverse lookup fields for the create and update
@bart-maykin bart-maykin merged commit 2bd1e94 into master Dec 15, 2023
11 checks passed
@bart-maykin bart-maykin deleted the feature/105-introduce-polymorphic-serializers branch December 15, 2023 09:35
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.

Polymorphic Serializers
3 participants