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

ref(mediators): Turn project rule creator to dataclass #79137

Merged

Conversation

Christinarlong
Copy link
Contributor

@Christinarlong Christinarlong commented Oct 15, 2024

Turns Creator -> ProjectRuleCreator to dataclass and update uses to be explicit in passing in params

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79137      +/-   ##
==========================================
+ Coverage   78.29%   78.31%   +0.01%     
==========================================
  Files        7133     7134       +1     
  Lines      314191   314644     +453     
  Branches    51320    51419      +99     
==========================================
+ Hits       246007   246416     +409     
- Misses      61748    61767      +19     
- Partials     6436     6461      +25     

r = self.creator.call()
rule = Rule.objects.get(id=r.id)
r = self.creator.run()
rule: Rule = Rule.objects.get(id=r.id)
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't need to provide a type unless there is another variable that is shadowing rule.

@Christinarlong Christinarlong merged commit 6a34ec8 into master Oct 21, 2024
50 checks passed
@Christinarlong Christinarlong deleted the christinarlong/refactor-mediators-project-rules branch October 21, 2024 17:46
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants