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

fix(actions): no longer send empty string values #4016

Closed
wants to merge 7 commits into from

Conversation

haverchuck
Copy link
Contributor

Description of changes:
Stops sending empty strings in cw metric dimensions.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@haverchuck haverchuck requested a review from a team as a code owner October 26, 2023 22:11
@@ -60,8 +62,8 @@ Future<void> logMetric() async {
*/

// Inputs for Metric
final metricName = core.getRequiredInput('metric-name');
final testType = core.getRequiredInput('test-type');
final metricName = core.getRequiredInput('metric-name') ?? defaultValue;
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't have defaultValue for requiredInput as an exception should be thrown if a value is not supplied here. Also for testType, we throw if an improper value is given anyway below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@haverchuck haverchuck force-pushed the fix/send-none-vals-to-metrics branch 3 times, most recently from b7a1f70 to ad31cd2 Compare October 31, 2023 16:04
@haverchuck haverchuck force-pushed the fix/send-none-vals-to-metrics branch from 2bc57fa to ebe3559 Compare November 2, 2023 21:20
@haverchuck haverchuck closed this Nov 2, 2023
@NikaHsn NikaHsn deleted the fix/send-none-vals-to-metrics branch August 21, 2024 22:53
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