Skip to content

Fix IN(...) clause doesnt permit multiple values - #16077

Merged
williamdes merged 3 commits into
phpmyadmin:QA_5_0from
ankush-0x90:fix_multiple_not_working
Apr 18, 2020
Merged

williamdes merged 3 commits into
phpmyadmin:QA_5_0from
ankush-0x90:fix_multiple_not_working

Conversation

@ankush-0x90

Copy link
Copy Markdown
Contributor

Description

Please describe your pull request.
Fixes #16041
Added regex validation for Multiple Clauses Like
IN(...) NOT IN(...) BETWEEN

Before submitting pull request, please review the following checklist:

  • Make sure you have read our CONTRIBUTING.md document.
  • Make sure you are making a pull request against the correct branch. For example, for bug fixes in a released version use the corresponding QA branch and for new features use the master branch. If you have a doubt, you can ask as a comment in the bug report or on the mailing list.
  • Every commit has proper Signed-off-by line as described in our DCO. This ensures that the work you're submitting is your own creation.
  • Every commit has a descriptive commit message.
  • Every commit is needed on its own, if you have just minor fixes to previous commits, you can squash them.
  • Any new functionality is covered by tests.

Comment thread js/table/change.js Resolved

@williamdes williamdes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

95%okay for me
Good work
I need to test it after your changes

Comment thread js/table/change.js Resolved
Comment thread js/table/change.js Resolved
Comment thread js/table/change.js Resolved
Signed-off-by: Ankush Patil <[email protected]>

added proper error message

Signed-off-by: Ankush Patil <[email protected]>

Fixing ambguious js code

Signed-off-by: Ankush Patil <[email protected]>

@williamdes williamdes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

);
$html_attributes = 'min="' . $min_max_values[0] . '" '
. 'max="' . $min_max_values[1] . '"';
$html_attributes = 'data-min="' . $min_max_values[0] . '" '

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FTR: Line added by e92e51d

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeas!

@williamdes williamdes added this to the 5.0.3 milestone Apr 14, 2020
@williamdes williamdes self-assigned this Apr 14, 2020
@williamdes

williamdes commented Apr 17, 2020 •

Copy link
Copy Markdown
Member

@asprazz I tested your work and a minor issue was introduced.
When you will the field and the validation does pass, then you empty the input and it stays invalid as it is empty.
As a user I would like to be able to empty the input and the validation resets.

Could you please fix this behavior ?

@ankush-0x90

Copy link
Copy Markdown
Contributor Author

Hi @williamdes I will look into it asap.

Signed-off-by: William Desportes <[email protected]>
@williamdes
williamdes merged commit 0d7a227 into phpmyadmin:QA_5_0 Apr 18, 2020
@williamdes

Copy link
Copy Markdown
Member

Thank you @asprazz for fixing this issue !

@ankush-0x90

Copy link
Copy Markdown
Contributor Author

Thank you @asprazz for fixing this issue !

I’m glad I could help. 👨‍💻

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