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

Refactor _get_trial_indices_to_fetch #3086

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paschai
Copy link
Contributor

@paschai paschai commented Nov 20, 2024

Differential Revision: D66045355

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 20, 2024
@facebook-github-bot
Copy link
Contributor

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

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.42%. Comparing base (7f2c4a0) to head (9a98ad8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3086      +/-   ##
==========================================
- Coverage   95.43%   95.42%   -0.01%     
==========================================
  Files         503      503              
  Lines       50264    50269       +5     
==========================================
+ Hits        47967    47970       +3     
- Misses       2297     2299       +2     

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


🚨 Try these New Features:

Summary:

This diff refactors the _get_trial_indices_to_fetch method to improve its readability and maintainability. The changes include:

1. Extracting a new method _identify_trial_indices_to_fetch that takes both old and new trial statuses as input
2. Simplifying the logic for identifying newly completed, running, and previously completed trials with new data after completion.
3. Improving code organization and reducing duplication

Differential Revision: D66045355
@facebook-github-bot
Copy link
Contributor

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants