WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
102401
Move natural sorting to a separate module
https://bugs.webkit.org/show_bug.cgi?id=102401
Summary
Move natural sorting to a separate module
Zan Dobersek
Reported
2012-11-15 09:14:41 PST
Move natural sorting to a separate module
Attachments
Patch
(14.25 KB, patch)
2012-11-15 09:33 PST
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(9.54 KB, patch)
2012-11-26 02:45 PST
,
Zan Dobersek
darin
: review+
dpranke
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2012-11-15 09:33:02 PST
Created
attachment 174468
[details]
Patch
Zan Dobersek
Comment 2
2012-11-15 09:37:33 PST
Continuing from
bug 102229
:
> (In reply to
comment #2
) > > (From update of
attachment 174186
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=174186&action=review
> > > > The patch adds two new modules under webkitpy.common. The natural_order (could use a better name) contains methods for natural sorting and test key that were moved here from the Sharder class. The test_name method contains the TEST_PATH_SEPARATOR variable and the split_test_name method, both moved here from the Port class. > > > > What do you not like about "natural_order" as a name?
I guess it's OK, I was also pondering names like natural_sort, natural_sorting or natura_ordering even. I'm OK with any of those.
Dirk Pranke
Comment 3
2012-11-15 17:49:02 PST
Comment on
attachment 174468
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=174468&action=review
> Tools/Scripts/webkitpy/common/natural_order.py:34 > +def _natural_sort_key(string_to_split):
If we're going to split natural_sort into a separate module, it should *only* deal with natural sorting, and not have anything to do with "test_name"s at all. Also, depending on how the rest of this code shakes out, it might be that we can move the natural_sort code into port/base.py for now (until we move all of the test-handling logic out) and avoid needing to reference things from three different modules.
Zan Dobersek
Comment 4
2012-11-26 02:45:40 PST
Created
attachment 175949
[details]
Patch
Dirk Pranke
Comment 5
2013-04-08 10:35:19 PDT
Comment on
attachment 175949
[details]
Patch I'm pretty sure this patch is no longer needed and won't even apply. Let me take a look, and, if I'm wrong, I'll re-cq+ it.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug