Skip to content

Fix/cext-4448#235

Merged
AjazSumaiya merged 7 commits into
epic/log-forwardingfrom
fix/cext-4448
Apr 15, 2025
Merged

Fix/cext-4448#235
AjazSumaiya merged 7 commits into
epic/log-forwardingfrom
fix/cext-4448

Conversation

@AjazSumaiya
Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread src/utils.js Outdated
if (isNaN(durationInMs) || !match) {
throw new Error(
'Invalid format. The past time window should be in minutes, for example, "20 mins", "15 minutes".',
'Invalid format. The past time window should be integer, for example, "20", "15".',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Invalid format. The past time window should be integer, for example, "20", "15".',
'Invalid format. The past time window should be an integer, for example, "20", "15".',

);
test.each(invalidDurations)('throws an error for non-numeric input "%s"', invalidPastDuration => {
expect(() => parsePastDuration(invalidPastDuration)).toThrow(
'Invalid format. The past time window should be integer, for example, "20", "15".',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Invalid format. The past time window should be integer, for example, "20", "15".',
'Invalid format. The past time window should be an integer, for example, "20", "15".',

Comment thread src/utils.js Outdated
Comment thread src/commands/api-mesh/log-get-bulk.js Outdated
Comment thread src/utils.js Outdated
Comment thread src/utils.js Outdated
Comment thread src/utils.js Outdated
Comment thread src/commands/api-mesh/__tests__/log-get-bulk.test.js Outdated
Comment thread src/utils.js Outdated
Comment thread src/commands/api-mesh/log-get-bulk.js Outdated
AjazSumaiya and others added 4 commits April 9, 2025 14:00
Co-authored-by: Jared Hoover <98363870+jhadobe@users.noreply.github.com>
Co-authored-by: Andrew Molina <44038475+amolina-adobe@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@brasewel brasewel 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 now

@AjazSumaiya AjazSumaiya merged commit a881153 into epic/log-forwarding Apr 15, 2025
@AjazSumaiya AjazSumaiya deleted the fix/cext-4448 branch April 15, 2025 09:32
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.

5 participants