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

Introduce Field.clone method #452

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Introduce Field.clone method #452

merged 1 commit into from
Aug 9, 2024

Conversation

subhashb
Copy link
Contributor

@subhashb subhashb commented Aug 9, 2024

The fact event generation logic was considering attributes from elements directly and constructing new value-object based event classes directly. This does not work well because the same attribute is shared between the actual element and the newly generated event class.

This commit introduces a clone method at the field level so we can copy the field safely.

The fact event generation logic was considering attributes from elements directly
and constructing new value-object based event classes directly. This does not work
well because the same attribute is shared between the actual element and the newly
generated event class.

This commit introduces a clone method at the field level so we can copy the field
safely.
@subhashb subhashb self-assigned this Aug 9, 2024
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.81%. Comparing base (792bf75) to head (aa78586).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #452   +/-   ##
=======================================
  Coverage   89.80%   89.81%           
=======================================
  Files          71       71           
  Lines        5996     6000    +4     
  Branches     1203     1203           
=======================================
+ Hits         5385     5389    +4     
  Misses        458      458           
  Partials      153      153           

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

@subhashb subhashb merged commit 97a2dde into main Aug 9, 2024
6 checks passed
@subhashb subhashb deleted the fields-clone branch August 9, 2024 22: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.

1 participant