Skip to content

fix(#114): properly handle association proxy#115

Merged
indiVar0508 merged 2 commits intomasterfrom
fix_114
Nov 28, 2023
Merged

fix(#114): properly handle association proxy#115
indiVar0508 merged 2 commits intomasterfrom
fix_114

Conversation

@indiVar0508
Copy link
Copy Markdown
Contributor

we added association proxy support in versioned class but it was incorrect as we were setting proxy attribute to versioned class and we didn't caught it because we didn't have test for that so added that.

@indiVar0508 indiVar0508 linked an issue Nov 24, 2023 that may be closed by this pull request
@indiVar0508 indiVar0508 added the next release Marked for next immediate release label Nov 24, 2023
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 24, 2023

Pull Request Test Coverage Report for Build 6987599987

  • 20 of 20 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 96.943%

Totals Coverage Status
Change from base Build 6980118809: 0.009%
Covered Lines: 5053
Relevant Lines: 5143

💛 - Coveralls

for cls in version_classes:
assoc_prox_maps = get_association_proxies(cls)
for key, prop in assoc_prox_maps.items():
for key, _prop in assoc_prox_maps.items():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If prop is not required - use .keys() ?

we added association proxy support in versioned class but it was
incorrect as we were setting proxy attribute to versioned class
and we didn't caught it because we didn't have test for that
so added that.
@indiVar0508 indiVar0508 merged commit d6d5b2f into master Nov 28, 2023
@indiVar0508 indiVar0508 deleted the fix_114 branch November 28, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release Marked for next immediate release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Association Proxy attributes causing issue for VersionedObject

4 participants