Skip to content

Conversation

@anthonygregis
Copy link
Contributor

Summary

This resolves an issue when defining a log alert query. When a user inputs a log query the value was being set into a local variable to update the histogram but was not updating the formStore that was being used to populate the mutation input variables. This PR should resolve this issue and allow for query to be sent along to the mutation.

Related Issue: #6630

How did you test this change?

Test both locally and in self deployed version

Are there any deployment considerations?

None, purely frontend changes

Does this work require review from our design team?

No

Copy link
Contributor

@SpennyNDaJets SpennyNDaJets left a comment

Choose a reason for hiding this comment

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

Code and click test look good to me!

@Vadman97
Copy link
Member

@anthonygregis linter seems to be failing

[warn] frontend/src/pages/Alerts/LogAlert/LogAlertPage.tsx
[warn] Code style issues found in the above file. Forgot to run Prettier?

could you run yarn format:all?

@anthonygregis
Copy link
Contributor Author

Sorry about that, will run and push up

@Vadman97
Copy link
Member

@anthonygregis no worries. looks like the yarn.lock changes are local to your project, do you mind removing that from your PR?

@anthonygregis
Copy link
Contributor Author

@Vadman97 @SpennyNDaJets Will fix yarn.lock issue now, most likely happened because I'm on Windows.

@Vadman97 Vadman97 enabled auto-merge (squash) September 18, 2023 19:15
@Vadman97 Vadman97 merged commit 4d28451 into highlight:main Sep 18, 2023
@anthonygregis anthonygregis deleted the fix/logAlertQuery branch September 18, 2023 21:35
lewisl9029 pushed a commit to lewisl9029/highlight that referenced this pull request Nov 16, 2023
## Summary

This resolves an issue when defining a log alert query. When a user
inputs a log query the value was being set into a local variable to
update the histogram but was not updating the formStore that was being
used to populate the mutation input variables. This PR should resolve
this issue and allow for query to be sent along to the mutation.

Related Issue: highlight#6630 

## How did you test this change?

Test both locally and in self deployed version

## Are there any deployment considerations?

None, purely frontend changes

## Does this work require review from our design team?

No

---------

Co-authored-by: Anthony Gregis <agregis@dustlabs.com>
Co-authored-by: TheBasedBob <bob@degods.com>
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.

4 participants