-
Notifications
You must be signed in to change notification settings - Fork 11
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
[bot] Run grit migration: Apply a GritQL pattern #700
Conversation
<!-- grit:execution_id:3bff9e6d-7ac9-4b1a-ab37-bb1b7f9494cd -->
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #700 +/- ##
==========================================
+ Coverage 69.18% 69.19% +0.01%
==========================================
Files 1945 1945
Lines 75968 75858 -110
Branches 8467 8451 -16
==========================================
- Hits 52557 52491 -66
+ Misses 21224 21187 -37
+ Partials 2187 2180 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
isNew: !name, | ||
isLoadingOptions: true, | ||
valueOptions: [], | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need all of these values to go into the react state, but it looks like it only added the ones that had a key/value that were different.
handleAnnotationSourceTypeHandler = | ||
handleAnnotationSourceTypeHandler.bind(this); | ||
handleValueHandler = handleValueHandler.bind(this); | ||
isValidFormHandler = isValidFormHandler.bind(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should all be removed
fetchOptions(annotationType, sourceType, isLoadingOptions); | ||
}, [annotationType, isLoadingOptions]); | ||
useEffect(() => { | ||
if (prevState.sourceType !== sourceType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prevState does not exist/has not been defined
@@ -267,38 +190,33 @@ class AnnotationLayer extends React.PureComponent { | |||
errors.push(validateNonEmpty(intervalEndColumn)); | |||
} | |||
} | |||
errors.push(!this.isValidFormulaAnnotation(value, annotationType)); | |||
errors.push(!isValidFormulaAnnotationHandler(value, annotationType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name,
annotationType,
sourceType,
value,
timeColumn,
intervalEndColumn,
should all be referencing state, but they are referencing props.
} = props; | ||
|
||
// Only allow override whole time_range | ||
if ('since' in overrides || 'until' in overrides) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this condition was removed.
This pull request was created with these settings:
master
src/explore/components/controls/AnnotationLayerControl
Pattern body