You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Richard Zang <rz...@hortonworks.com> on 2015/01/16 00:01:54 UTC
Review Request 29951: RU repo version pattern adjustment
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/
-----------------------------------------------------------
Review request for Ambari, Andrii Tkach and Yusaku Sako.
Bugs: AMBARI-9164
https://issues.apache.org/jira/browse/AMBARI-9164
Repository: ambari
Description
-------
Adjust regex.
Diffs
-----
ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
Diff: https://reviews.apache.org/r/29951/diff/
Testing
-------
All unit test passed. New unit test provided.
Thanks,
Richard Zang
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Yusaku Sako <yu...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68348
-----------------------------------------------------------
ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
<https://reviews.apache.org/r/29951/#comment112527>
This is not correct.
The pattern should be x.y[-z] where -z is optional, and x, y, z are non-negative integers.
There should not be any min 4 digit requirement on the optional build number and .y part should not be optional.
- Yusaku Sako
On Jan. 15, 2015, 11:01 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:01 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68361
-----------------------------------------------------------
Ship it!
Ship It!
- Alejandro Fernandez
On Jan. 15, 2015, 11:32 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:32 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Richard Zang <rz...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/
-----------------------------------------------------------
(Updated Jan. 15, 2015, 11:32 p.m.)
Review request for Ambari, Andrii Tkach and Yusaku Sako.
Bugs: AMBARI-9164
https://issues.apache.org/jira/browse/AMBARI-9164
Repository: ambari
Description
-------
Adjust regex.
Diffs (updated)
-----
ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
Diff: https://reviews.apache.org/r/29951/diff/
Testing
-------
All unit test passed. New unit test provided.
Thanks,
Richard Zang
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Yusaku Sako <yu...@hortonworks.com>.
> On Jan. 15, 2015, 11:12 p.m., Alejandro Fernandez wrote:
> > ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js, line 23
> > <https://reviews.apache.org/r/29951/diff/1/?file=823179#file823179line23>
> >
> > I believe this should be
> > ^(\d+.)*\d+(-\d+)?$
> >
> > Try this pattern on regexpal.com
> > ^(\d+.)*\d+(-\d+)? (pass)?(fail)?$
> >
> > With this text:
> > 1 pass
> > 1. fail
> > 1- fail
> > 1-1 pass
> > 1.-1 fail
> > 1.2 pass
> > 1.2-1 pass
> > 1.2- fail
> > 1.2.3 pass
> > 1.2.3- fail
> > 1.2.3. fail
> > 1.2.3-1 pass
> > 1.2.3-1234 pass
> > 1.2.3-12. fail
> > 1.2.3.1234 pass
This is the pattern for what comes after the stack-major.minor. (e.g., "HDP-2.2."), so that's not correct.
- Yusaku
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68347
-----------------------------------------------------------
On Jan. 15, 2015, 11:01 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:01 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Alejandro Fernandez <af...@hortonworks.com>.
> On Jan. 15, 2015, 11:12 p.m., Alejandro Fernandez wrote:
> > ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js, line 23
> > <https://reviews.apache.org/r/29951/diff/1/?file=823179#file823179line23>
> >
> > I believe this should be
> > ^(\d+.)*\d+(-\d+)?$
> >
> > Try this pattern on regexpal.com
> > ^(\d+.)*\d+(-\d+)? (pass)?(fail)?$
> >
> > With this text:
> > 1 pass
> > 1. fail
> > 1- fail
> > 1-1 pass
> > 1.-1 fail
> > 1.2 pass
> > 1.2-1 pass
> > 1.2- fail
> > 1.2.3 pass
> > 1.2.3- fail
> > 1.2.3. fail
> > 1.2.3-1 pass
> > 1.2.3-1234 pass
> > 1.2.3-12. fail
> > 1.2.3.1234 pass
>
> Yusaku Sako wrote:
> This is the pattern for what comes after the stack-major.minor. (e.g., "HDP-2.2."), so that's not correct.
Thanks for clariying Yusaku, ^\d+.\d+(-\d+)?$
would work
- Alejandro
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68347
-----------------------------------------------------------
On Jan. 15, 2015, 11:01 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:01 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Richard Zang <rz...@hortonworks.com>.
> On Jan. 15, 2015, 11:12 p.m., Alejandro Fernandez wrote:
> > ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js, line 23
> > <https://reviews.apache.org/r/29951/diff/1/?file=823179#file823179line23>
> >
> > I believe this should be
> > ^(\d+.)*\d+(-\d+)?$
> >
> > Try this pattern on regexpal.com
> > ^(\d+.)*\d+(-\d+)? (pass)?(fail)?$
> >
> > With this text:
> > 1 pass
> > 1. fail
> > 1- fail
> > 1-1 pass
> > 1.-1 fail
> > 1.2 pass
> > 1.2-1 pass
> > 1.2- fail
> > 1.2.3 pass
> > 1.2.3- fail
> > 1.2.3. fail
> > 1.2.3-1 pass
> > 1.2.3-1234 pass
> > 1.2.3-12. fail
> > 1.2.3.1234 pass
>
> Yusaku Sako wrote:
> This is the pattern for what comes after the stack-major.minor. (e.g., "HDP-2.2."), so that's not correct.
>
> Alejandro Fernandez wrote:
> Thanks for clariying Yusaku, ^\d+.\d+(-\d+)?$
> would work
I think ^\d+.\d+(-\d+)?$ should work
- Richard
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68347
-----------------------------------------------------------
On Jan. 15, 2015, 11:01 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:01 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>
Re: Review Request 29951: RU repo version pattern adjustment
Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29951/#review68347
-----------------------------------------------------------
ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js
<https://reviews.apache.org/r/29951/#comment112526>
I believe this should be
^(\d+.)*\d+(-\d+)?$
Try this pattern on regexpal.com
^(\d+.)*\d+(-\d+)? (pass)?(fail)?$
With this text:
1 pass
1. fail
1- fail
1-1 pass
1.-1 fail
1.2 pass
1.2-1 pass
1.2- fail
1.2.3 pass
1.2.3- fail
1.2.3. fail
1.2.3-1 pass
1.2.3-1234 pass
1.2.3-12. fail
1.2.3.1234 pass
- Alejandro Fernandez
On Jan. 15, 2015, 11:01 p.m., Richard Zang wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29951/
> -----------------------------------------------------------
>
> (Updated Jan. 15, 2015, 11:01 p.m.)
>
>
> Review request for Ambari, Andrii Tkach and Yusaku Sako.
>
>
> Bugs: AMBARI-9164
> https://issues.apache.org/jira/browse/AMBARI-9164
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Adjust regex.
>
>
> Diffs
> -----
>
> ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/stackVersions/StackVersionsCreateCtrl.js bdfb755
> ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/stackVersions/StackVersionsCreateCtrl_test.js abae72a
>
> Diff: https://reviews.apache.org/r/29951/diff/
>
>
> Testing
> -------
>
> All unit test passed. New unit test provided.
>
>
> Thanks,
>
> Richard Zang
>
>