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: correct regex match condition in SyntaxValidator #2384

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MAVRICK-1
Copy link

What It Does

fixed #2375

How to Test

Review Checklist
I certify that I have:

Additional Comments

@MAVRICK-1 MAVRICK-1 force-pushed the fix/2375-correct-regex-match-condition-in-SyntaxValidator branch from 2708e4d to beff3d6 Compare December 11, 2024 19:52
@MAVRICK-1
Copy link
Author

@zFernand0 can you review my PR

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

@MAVRICK-1

  1. Could you add a quick changelog entry to the Imperative package?
  2. Could you add a test to avoid this sort of issue in the future?
    • packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts

@MAVRICK-1
Copy link
Author

@zFernand0 looking into it

@MAVRICK-1
Copy link
Author

@zFernand0 I am solving the 1) in this PR ,
can solve no 2) in new PR?

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.28%. Comparing base (aa2d6e6) to head (2850f3b).

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2384    +/-   ##
========================================
  Coverage   91.28%   91.28%            
========================================
  Files         638      638            
  Lines       18207    18207            
  Branches     3822     3931   +109     
========================================
  Hits        16621    16621            
  Misses       1585     1585            
  Partials        1        1            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zFernand0
Copy link
Member

zFernand0 commented Dec 13, 2024

@zFernand0 I am solving the 1) in this PR , can solve no 2) in new PR?

Hey @MAVRICK-1 , I think it'd be good to have the test added in the same PR 🙏

@MAVRICK-1
Copy link
Author

MAVRICK-1 commented Dec 13, 2024 via email

…positional argument validation

test: add unit test for invalid positional argument regex validation

Signed-off-by: MAVRICK-1 <[email protected]>
@MAVRICK-1 MAVRICK-1 requested a review from zFernand0 December 13, 2024 19:06
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

Changes LGTM! 😋

left some comments to consider for improvement 🙏
Also, there is a small merge conflict on the imperative/changelog file 😋

packages/imperative/CHANGELOG.md Outdated Show resolved Hide resolved
@MAVRICK-1 MAVRICK-1 requested a review from zFernand0 December 19, 2024 21:59
@MAVRICK-1
Copy link
Author

@zFernand0 sry for the delay , it's fixed now

packages/imperative/CHANGELOG.md Outdated Show resolved Hide resolved
MAVRICK-1 and others added 2 commits December 27, 2024 01:40
Co-authored-by: Timothy Johnson <[email protected]>
Signed-off-by: Rishi Mondal <[email protected]>
Co-authored-by: Timothy Johnson <[email protected]>
Signed-off-by: Rishi Mondal <[email protected]>
@MAVRICK-1 MAVRICK-1 requested a review from t1m0thyj December 26, 2024 20:11
@MAVRICK-1
Copy link
Author

@t1m0thyj Thanks it's done , now i understood the formate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review/QA
Development

Successfully merging this pull request may close these issues.

Broken validation of positional arguments.
3 participants