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

Ensure we're using the data view time field for the sort param too #20

Conversation

davismcphee
Copy link

Summary

This PR updates the search source alert time field fix to also use the data view time field for the sort param, as well as adding a new error if the data view no longer has a time field.

Checklist

For maintainers

if (!timeFieldName) {
throw new Error('Invalid data view without timeFieldName.');
if (!timeField) {
throw new Error(`Data view with ID ${index.id} no longer contains a time field.`);
Copy link
Owner

@mattkime mattkime May 8, 2024

Choose a reason for hiding this comment

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

Might as well add the name here but I guess I can do that

@mattkime mattkime merged commit b399fca into mattkime:search_source_query_fix May 8, 2024
1 of 2 checks passed
@davismcphee davismcphee deleted the davis_search_source_query_fix branch May 8, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants