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

Drop critertion from AutoTransitionAfterGenCriterion name #2625

Closed
wants to merge 2 commits into from

Conversation

mgarrard
Copy link
Contributor

@mgarrard mgarrard commented Aug 1, 2024

Summary:
Lena pointed out in a previous diff there is some inconsistency in the naming of transitioncriterion.

This diff creates the following pattern: if a class is a base class for other criterion (transitioncriterion, trialbasedcriterion) it keeps criterion at the end of the name since it is a bucket of criterion, and isn't directly used (except for comparisions to see if a single critierion is of that type: aka maxtrials is of trialbasedcriterion). If a criterion is a leaf of the inheritance tree, it does not have criterion at the end of the name.

Differential Revision: D60526927

Mia Garrard and others added 2 commits July 31, 2024 18:49
Summary: We'll want to leverage this in a few places in various generation strategies we are creating.

Differential Revision: D60485193
Summary:
Lena pointed out in a previous diff there is some inconsistency in the naming of transitioncriterion.

This diff creates the following pattern: if a class is a base class for other criterion (transitioncriterion, trialbasedcriterion) it keeps criterion at the end of the name since it is a bucket of criterion, and isn't directly used (except for comparisions to see if a single critierion is of that type: aka maxtrials is of trialbasedcriterion). If a criterion is a leaf of the inheritance tree, it does not have criterion at the end of the name.

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0b6b160.

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.

2 participants