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 incorrect status quo update warning #2586

Closed
wants to merge 1 commit into from

Conversation

mgarrard
Copy link
Contributor

Summary:
This is something Ben brought up as something to improve a couple months ago. Right now, with almost everything we do in any of the clients there is a warning about status quo being updated, even though it is often not being updated. It turns out this is because of the incorrect positioning of the warning in the status quo setter.

In this diff I

  1. move the logger warning to be under the self._status_quo is None check
  2. added a unit test modification

Differential Revision: D59894197

Summary:
This is something Ben brought up as something to improve a couple months ago. Right now, with almost everything we do in any of the clients there is a warning about status quo being updated, even though it is often not being updated. It turns out this is because of the incorrect positioning of the warning in the status quo setter.

In this diff I
1) move the logger warning to be under the self._status_quo is None check
2) added a unit test modification

Differential Revision: D59894197
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 18, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59894197

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.22%. Comparing base (56c9b46) to head (1381b33).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2586   +/-   ##
=======================================
  Coverage   95.22%   95.22%           
=======================================
  Files         489      489           
  Lines       47642    47645    +3     
=======================================
+ Hits        45369    45372    +3     
  Misses       2273     2273           

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9679f7b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants