Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29548719: Issue 5728 - Replace Services.vc.compare (Closed)

Created:
Sept. 18, 2017, 6:05 p.m. by Sebastian Noack
Modified:
Sept. 25, 2017, 2:48 p.m.
Reviewers:
Wladimir Palant
CC:
Thomas Greiner, Manish Jethani
Visibility:
Public.

Description

Issue 5728 - Replace Services.vc.compare

Patch Set 1 #

Total comments: 6

Patch Set 2 : Handle case in which the same compnent in both versions are rounded to Infinity #

Patch Set 3 : Moved compareVersion() into notifications module, handle non-numeric suffix #

Total comments: 8

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -33 lines) Patch
M lib/notification.js View 1 2 3 3 chunks +40 lines, -8 lines 0 comments Download
M test/_common.js View 1 chunk +0 lines, -25 lines 0 comments Download
M test/notification.js View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15
Sebastian Noack
Sept. 18, 2017, 6:06 p.m. (2017-09-18 18:06:56 UTC) #1
Manish Jethani
https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js File lib/coreUtils.js (right): https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js#newcode50 lib/coreUtils.js:50: result = (comp1 == "*" ? Number.MAX_VALUE : parseInt(comp1, ...
Sept. 19, 2017, 7:53 a.m. (2017-09-19 07:53:15 UTC) #2
Manish Jethani
https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js File lib/coreUtils.js (right): https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js#newcode50 lib/coreUtils.js:50: result = (comp1 == "*" ? Number.MAX_VALUE : parseInt(comp1, ...
Sept. 19, 2017, 8:21 a.m. (2017-09-19 08:21:41 UTC) #3
Wladimir Palant
It seems that you took the simplified implementation from the unit tests for this. That ...
Sept. 19, 2017, 8:25 a.m. (2017-09-19 08:25:53 UTC) #4
Wladimir Palant
For reference, the version format this code was originally supposed to handle is the toolkit ...
Sept. 19, 2017, 8:38 a.m. (2017-09-19 08:38:48 UTC) #5
Sebastian Noack
On 2017/09/19 08:25:53, Wladimir Palant wrote: > You should also migrate the versionComparator unit tests ...
Sept. 19, 2017, 10:53 p.m. (2017-09-19 22:53:43 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js File lib/coreUtils.js (right): https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js#newcode50 lib/coreUtils.js:50: result = (comp1 == "*" ? Number.MAX_VALUE : parseInt(comp1, ...
Sept. 20, 2017, 1:15 a.m. (2017-09-20 01:15:38 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js File lib/coreUtils.js (right): https://codereview.adblockplus.org/29548719/diff/29548720/lib/coreUtils.js#newcode50 lib/coreUtils.js:50: result = (comp1 == "*" ? Number.MAX_VALUE : parseInt(comp1, ...
Sept. 20, 2017, 1:31 a.m. (2017-09-20 01:31:26 UTC) #8
Wladimir Palant
On 2017/09/19 22:53:43, Sebastian Noack wrote: > I figured that the notification tests already cover ...
Sept. 21, 2017, 8:26 a.m. (2017-09-21 08:26:46 UTC) #9
Sebastian Noack
message: On 2017/09/21 08:26:46, Wladimir Palant wrote: > We have two options here: > > ...
Sept. 21, 2017, 10:02 p.m. (2017-09-21 22:02:31 UTC) #10
Wladimir Palant
On 2017/09/21 22:02:31, Sebastian Noack wrote: > > But even then, "1.13.3.1808beta" is not equal ...
Sept. 22, 2017, 10:11 a.m. (2017-09-22 10:11:49 UTC) #11
Manish Jethani
https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js#newcode91 lib/notification.js:91: return tail1 == tail2 ? 0 : !tail1 || ...
Sept. 22, 2017, 11:23 p.m. (2017-09-22 23:23:41 UTC) #12
Manish Jethani
https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js#newcode72 lib/notification.js:72: let regexp = /^(.*?)([a-z].*)?$/i; If "57.0a9" vs "57.0a10" matters, ...
Sept. 22, 2017, 11:28 p.m. (2017-09-22 23:28:52 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29548719/diff/29551721/lib/notification.js#newcode72 lib/notification.js:72: let regexp = /^(.*?)([a-z].*)?$/i; On 2017/09/22 23:28:51, Manish Jethani ...
Sept. 23, 2017, 12:32 a.m. (2017-09-23 00:32:51 UTC) #14
Wladimir Palant
Sept. 25, 2017, 8:25 a.m. (2017-09-25 08:25:22 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld