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

fix: boolean group field broken with setters #2985

Merged
merged 10 commits into from
Jul 19, 2024

Conversation

adrianthedev
Copy link
Collaborator

Description

Fixes an issue where setters were not being properly used with boolean group fields.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@github-actions github-actions bot added the Fix label Jul 15, 2024
Copy link

codeclimate bot commented Jul 15, 2024

Code Climate has analyzed commit a8e930f and detected 0 issues on this pull request.

View more on Code Climate.

@adrianthedev
Copy link
Collaborator Author

hey @binarygit. can you please add some tests for this PR?

The use case that we're fixing here is this one where the value wasn't been forwarded to a setter on the model.

I'm here to answer your questions.

@binarygit
Copy link
Contributor

Sure @adrianthedev. I hope it's okay if I get to this tomorrow morning 🙏

* Check true fields in edit view

* Refactor and Write tests

* Lint

* Set permissions setter via attr_writer

* Lint
@Paul-Bob
Copy link
Contributor

@binarygit you can work directly on this branch, let's check what's wrong with the tests & lint

Co-authored-by: Adrian Marin <adrian@adrianthedev.com>
@adrianthedev adrianthedev merged commit a5f5bbd into main Jul 19, 2024
15 of 21 checks passed
@adrianthedev adrianthedev deleted the fix/boolean-group-broken-with-virtual-property branch July 19, 2024 10:37
Copy link
Contributor

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Paul-Bob added a commit that referenced this pull request Jul 19, 2024
Paul-Bob added a commit that referenced this pull request Jul 19, 2024
* chore: fix tests for #2985

* another approach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants