Making WordPress.org

Changeset 7663


Ignore:
Timestamp:
09/12/2018 05:15:50 AM (6 years ago)
Author:
dd32
Message:

Slack: Update the Announce whitelists to consistently use WordPress.org usernames rather than non-unique deprecated slack user_names.

See #3799.

Location:
sites/trunk/common/includes/slack/announce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/announce/config.php

    r7660 r7663  
    88/**
    99 * Returns a whitelist of users by channel.
     10 *
     11 * As slack has deprecated the usage of user_names, please use WordPress.org user_logins here. Case Sensitive.
     12 * See https://api.slack.com/changelog/2017-09-the-one-about-usernames
    1013 *
    1114 * The array keys are the channel name (omit #) and the
     
    2225        'hlashbrooke',
    2326        'iandunn',
    24         'rocio',
    25         'vedanshu',
     27        '_DorsVenabili', // @rocio on Slack
     28        'vedjain', // @vendanshu on Slack
    2629    );
    2730
     
    3336        ),
    3437        'bbpress' => array(
    35             'jjj',
     38            'johnjamesjacoby', // @jjj on Slack
    3639            'netweb',
    3740        ),
    3841        'buddypress' => array(
    39             'boone',
    40             'djpaul',
    41             'jjj',
     42            'boonebgorges', // @boone on Slack
     43            'DJPaul',
     44            'johnjamesjacoby', // @jjj on Slack
    4245        ),
    4346        'cli' => array(
     
    5255            'danieltj',
    5356            'desrosj',
    54             'jeffpaul',
    55             'jon_bossenger',
    56             'joshuawold',
     57            'JeffPaul',
     58            'psykro', // @jon_bossenger on Slack
     59            'JoshuaWold',
    5760            'pbiron',
    5861            'welcher',
    59             'Whitney',
     62            'whitneyyadrich', // @Whitney on Slack
    6063        ) ),
    6164        'core-bootstrap' => array_merge( get_committers(), array(
     
    6871        'core-customize' => array_merge( get_committers(), array(
    6972            'celloexpressions',
    70             'jeffpaul',
     73            'JeffPaul',
    7174            'ocean90',
    7275            'valendesigns',
     
    7578        ) ),
    7679        'core-docs' => array_merge( get_committers(), array(
    77             'drew',
    78             'kenshino',
     80            'DrewAPicture', // @drew on Slack
     81            'Kenshino',
    7982            'omarreiss',
    8083            'johnbillion',
     
    8588            'gziolo',
    8689            'iseulde',
    87             'jeffpaul',
    88             'karmatosed',
    89             'matias',
     90            'JeffPaul',
     91            'karmatosed',
     92            'matveb', // @matias on Slack
    9093            'mcsf',
    9194            'youknowriad',
     
    9598        ) ),
    9699        'core-test' => array_merge( get_committers(), array(
    97             'boren',
     100            'ryan', // @boren on Slack
    98101        ) ),
    99102        'core-https' => array_merge( get_committers(), array(
    100             'eric',
     103            'ericlewis', // @eric on Slack
    101104            'tollmanz',
    102105        ) ),
    103106        'core-i18n' => array_merge( get_committers(), array(
    104107            'ocean90',
    105             'sergey',
     108            'SergeyBiryukov', // @sergey on Slack
    106109            'swissspidy',
    107110        ) ),
     
    116119            'joemcgill',
    117120            'karmatosed',
    118             'mike',
     121            'mikeschroder', // @mike on Slack
    119122            'ocean90',
    120123        ) ),
     
    137140            'casiepa',
    138141            'desrosj',
    139             'Heather Burns',
     142            'idea15', // @Heather Burns on Slack
    140143        ) ),
    141144        'core-restapi' => array_merge( get_committers(), array(
     
    158161            'boemedia',
    159162            'hugobaeta',
    160             'joshuawold',
     163            'JoshuaWold',
    161164            'karmatosed',
    162165            'melchoyce',
     
    164167        ),
    165168        'design-dashicons' => array(
    166             'empireoflight',
     169            'EmpireOfLight',
    167170        ),
    168171        'docs' => array(
    169             'drew',
     172            'DrewAPicture', // @drew on Slack
    170173            'hlashbrooke',
    171             'kenshino',
     174            'Kenshino',
    172175            'lizkaraffa',
    173             'zzap',
     176            'milana_cap', // @zzap on Slack
    174177        ),
    175178        'feature-notifications' => array(
     
    184187        ),
    185188        'forums' => array(
    186             'clorith',
    187             'ipstenu',
    188             'jan_dembowski',
     189            'Clorith',
     190            'Ipstenu',
     191            'jdembowski', // @jan_dembowski on Slack
    189192            'macmanx',
    190193        ),
    191194        'glotpress' => array(
    192195            'ocean90',
    193             'gregross',
     196            'GregRoss',
    194197        ),
    195198        'hosting-community' => array(
    196             'ataylorme',
    197             'mike',
     199            'andrew.taylor', // @ataylorme on Slack
     200            'mikeschroder', // @mike on Slack
    198201            'jadonn',
    199202        ),
    200203        'marketing' => array(
    201             'sararosso',
    202             'gidgey',
     204            'rosso99', // @sararosso on Slack
     205            'bridgetwillard', // @gidgey on Slack
    203206        ),
    204207        'meta' => array(
    205208            'obenland',
    206             'sergey',
     209            'SergeyBiryukov', // @sergey on Slack
    207210            'tellyworth',
    208211        ),
    209212        'meta-devhub' => array(
    210213            'coffee2code',
    211             'drew',
     214            'DrewAPicture', // @drew on Slack
    212215        ),
    213216        'meta-i18n' => array(
     
    217220        'polyglots' => array(
    218221            'casiepa',
    219             'coachbirgit',
     222            'CoachBirgit',
    220223            'deconf',
    221             'nao',
     224            'Nao',
    222225            'ocean90',
    223226            'petya',
    224             'sergey',
     227            'SergeyBiryukov', // @sergey on Slack
    225228            'tobifjellner',
    226229        ),
    227230        'polyglots-events' => array(
    228231            'casiepa',
    229             'coachbirgit',
     232            'CoachBirgit',
    230233            'deconf',
    231             'nao',
     234            'Nao',
    232235            'ocean90',
    233236            'petya',
    234             'sergey',
     237            'SergeyBiryukov', // @sergey on Slack
    235238            'tobifjellner',
    236239        ),
     
    245248        ),
    246249        'tide' => array(
    247             'jeffpaul',
     250            'JeffPaul',
    248251            'lukecarbis',
    249252            'valendesigns',
     
    254257            'liljimmi',
    255258            'bethsoderberg',
    256             'courtneyengle',
     259            'courane01', // @courtneyengle on Slack
    257260            'chanthaboune',
    258261            'melindahelt',
     
    261264        // NOTE: Private Groups need not be listed here. All members of Private Groups have access to /announce & /here
    262265        'wcus' => array(
    263             'alx',
     266            'cronkled', // @alx on Slack
    264267            'camikaos',
    265             'randy_hicks',
    266             'bishop',
    267             'dustinmeza',
     268            'vc27', // @randy_hicks on Slack
     269            'andrealeebishop', // @bishop on Slack
     270            'DustinMeza',
    268271        ),
    269272        'wcus-contributor-day' => array(
    270             'alx',
     273            'cronkled', // @alx on Slack
    271274            'camikaos',
    272             'drew',
     275            'DrewAPicture', // @drew on Slack
    273276        ),
    274277        'wptv' => array(
    275             'jerrysarcastic',
    276             'roseapplemedia',
     278            'JerrySarcastic',
     279            'RoseAppleMedia',
    277280        ),
    278281    );
     
    281284function get_committers() {
    282285    return array(
    283         'dd32', 'nacin', 'mark', 'helen', 'azaozz', 'westi',
    284         'nb', 'sergey', 'ocean90', 'wonderboymusic', 'drew', 'johnbillion',
    285         'jorbin', 'boone', 'jeremyfelt', 'pento', 'obenland', 'iseulde',
     286        'dd32', 'nacin', 'helen', 'azaozz', 'westi',
     287        'ocean90', 'wonderboymusic', 'johnbillion',
     288        'jorbin', 'jeremyfelt', 'pento', 'obenland', 'iseulde',
    286289        'westonruter', 'afercia', 'karmatosed', 'rmccue', 'michaelarestad',
    287         'swissspidy', 'rachelbaker', 'joehoyle', 'melchoyce', 'eric', 'mike',
     290        'swissspidy', 'rachelbaker', 'joehoyle', 'melchoyce',
    288291        'peterwilsoncc', 'joemcgill', 'davidakennedy', 'adamsilverstein',
    289         'jnylen', 'flixos90', 'iandunn', 'kadamwhite', 'matias',
     292        'flixos90', 'iandunn', 'kadamwhite',
     293
     294        'markjaquith',    // @mark on Slack
     295        'nbachiyski',     // @nb on Slack
     296        'SergeyBiryukov', // @sergey on Slack
     297        'DrewAPicture',   // @drew on Slack
     298        'boonebgorges',   // @boone on Slack
     299        'ericlewis',      // @eric on Slack
     300        'mikeschroder',   // @mike on Slack
     301        'jnylen0',        // @jnylen on Slack
     302        'matveb',         // @matias on Slack
    290303    );
    291304}
     305
     306// This is not all deputies; it's only the ones who want to receive `/deputies` pings
     307function get_pingable_worcamp_deputies() {
     308    return array(
     309        '00Sleepy', '_DorsVenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos',
     310        'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke',
     311        'karenalma', 'kcristiano', 'kdrewien', 'Kenshino', 'mayukojpn', 'mikelking', 'miss_jwo',
     312        'remediosgraphic', 'Savione', 'vc27', 'yaycheryl',
     313
     314        'coreymckrill', 'iandunn', // todo remove after testing
     315    );
     316}
  • sites/trunk/common/includes/slack/announce/lib.php

    r7662 r7663  
    8585
    8686    if ( $data['command'] === '/committers' ) {
     87        // This command seems to not be used actively, in preference for the slack @committers group pings.
    8788        $committers = get_committers();
    8889        if ( ! in_array( $user, $committers, true ) ) {
     
    9091        }
    9192
     93        // TODO: Note that pinging users by `@username` is deprecated, and we now have WordPress.org usernames in the above list.
     94        // This should be upadted to ping users by the `<@U.....>` format.
     95
    9296        $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) );
    9397    } elseif ( $data['command'] === '/deputies' ) {
    94         // This is not all deputies; it's only the ones who want to receive `/deputies` pings
    95         $pingable_deputies = array(
    96             '00sleepy', '_dorsvenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos',
    97             'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke',
    98             'karenalma', 'kcristiano', 'kdrewien', 'kenshino', 'mayukojpn', 'mikelking', 'miss_jwo',
    99             'remediosgraphic', 'savione', 'vc27', 'yaycheryl',
    100         );
    101         $pingable_deputies = array( 'coreymckrill', 'iandunn' ); // todo remove after testing
     98        $pingable_deputies = get_pingable_worcamp_deputies();
    10299
    103100        if ( ! in_array( $user, $pingable_deputies, true ) ) {
    104101            return;
    105102        }
     103
     104        // TODO: Note that pinging users by `@username` is deprecated, and we have WordPress.org usernames in the above list.
     105        // This should be upadted to ping users by the `<@U.....>` format.
    106106
    107107        $text = sprintf( "*/deputies:* %s\n_(CC: %s)_", $data['text'], '@' . implode( ', @', $pingable_deputies ) );
Note: See TracChangeset for help on using the changeset viewer.