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

1406 [Transactions] Expected Value Dropdown Selection #1461

Merged
merged 13 commits into from
Nov 14, 2022

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Nov 4, 2022

This PR adds a new feature for the test spec form by displaying a value list dropdown when selecting one of the attributes, it allows users to select with value to add to the expected section from the different selected spans.

Changes

  • Adds value selection dropdown

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

https://www.loom.com/share/65e7cb843d9e4e108bb3901a1ef7b297

@xoscar xoscar linked an issue Nov 4, 2022 that may be closed by this pull request
@xoscar xoscar self-assigned this Nov 4, 2022
}

return ds, nil
return [][]expression.DataStore{ds}, nil
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now we are returning an array of strings, this is to cover the scenario where there is no span id in the context and we can return the different resolved values from the selected spans.

setPrevRawExpression(props.expression || '');
},
[parseExpressionMutation, prevExpression, prevRawExpression]
[context, parseExpressionMutation, prevContext, prevExpression, prevRawExpression]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reruns if prev context changes

>
<Editor type={SupportedEditors.Expression} placeholder="Expected Value" context={editorContext} />
</Form.Item>
<AssertionCheckValue
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved this to a diff file

@xoscar xoscar requested review from mathnogueira, jorgeepc and cescoferraro and removed request for mathnogueira November 4, 2022 19:48
@xoscar xoscar marked this pull request as ready for review November 4, 2022 19:49
Copy link
Contributor

@jorgeepc jorgeepc left a comment

Choose a reason for hiding this comment

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

Looks good @xoscar great job!

@@ -11,7 +11,7 @@ import OperatorService from 'services/Operator.service';
import {TStructuredAssertion} from 'types/Assertion.types';
import {singularOrPlural} from 'utils/Common';
import AssertionCheckList from './AssertionCheckList';
import useAssertionFormValues from './hooks/useAssertionFormValues';
// import useAssertionFormValues from './hooks/useAssertionFormValues';
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@xoscar xoscar merged commit 453adcb into main Nov 14, 2022
@xoscar xoscar deleted the 1406-transactions-expected-value-dropdown-selection branch November 14, 2022 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Transactions] Expected Value Dropdown Selection
2 participants