Bug 193132 - Refactor 'platforms' table to contain group information.
Summary: Refactor 'platforms' table to contain group information.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: dewei_zhu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-03 21:10 PST by dewei_zhu
Modified: 2020-10-27 18:01 PDT (History)
2 users (show)

See Also:


Attachments
Patch (25.31 KB, patch)
2019-01-03 21:32 PST, dewei_zhu
no flags Details | Formatted Diff | Diff
Patch (25.31 KB, patch)
2019-01-03 21:34 PST, dewei_zhu
rniwa: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dewei_zhu 2019-01-03 21:10:42 PST
Refactor platform table to contain group infomation.
Comment 1 dewei_zhu 2019-01-03 21:32:22 PST
Created attachment 358307 [details]
Patch
Comment 2 dewei_zhu 2019-01-03 21:34:05 PST
Created attachment 358308 [details]
Patch
Comment 3 Ryosuke Niwa 2019-01-10 21:04:54 PST
Comment on attachment 358308 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=358308&action=review

> Websites/perf.webkit.org/public/admin/platforms.php:99
> +    array_push($platform_group_options, array('platformgroup_id' => NULL, 'platformgroup_name' => '&ltNo Group&gt'));

Maybe just say "-"?

> Websites/perf.webkit.org/public/admin/platforms.php:103
> +        $id = $platform_row['platform_id'];

Call intval here just be safe.

> Websites/perf.webkit.org/public/v3/models/analysis-task.js:180
> +        const fetchingMeasurementSetForOtherPlatformInSameGroupPromises = this._commitSetForOtherPlatformsInSameGroup();

This is awfully long variable name. Also, this isn't fetching measurement set so we probably shouldn't call it that.
How about commitSetsInSamePlatformGroupPromise?

> Websites/perf.webkit.org/public/v3/models/analysis-task.js:198
> +    _commitSetForOtherPlatformsInSameGroup()

"SameGroup" is a bit ambiguous here because there is also test group.
I think I'd prefer call this _commitSetsInSamePlatformGroup.
Comment 4 dewei_zhu 2020-10-27 18:01:34 PDT
This should have been landed long time ago.
Rebased against latest main branch and verified all unit tests are still passing.
Landed in r269083.