WordPress.org

Making WordPress.org

Ticket #3896: 3896.2.diff

File 3896.2.diff, 1.6 KB (added by garrett-eclipse, 3 years ago)

Add keyword toggling for (has|needs)-privacy-review as per @netweb tip

  • wordpress.org/public_html/style/trac/wp-trac.js

    diff --git a/wordpress.org/public_html/style/trac/wp-trac.js b/wordpress.org/public_html/style/trac/wp-trac.js
    index 10d0be6c3..dc734ea36 100644
    a b var wpTrac, coreKeywordList, gardenerKeywordList, reservedTerms, coreFocusesList 
    1515                'needs-design' : 'Ticket needs design.',
    1616                'ui-feedback' : 'Feedback is needed from the user interface perspective, generally from the UI team.',
    1717                'ux-feedback' : 'Feedback is needed from the user experience perspective, generally from a UX lead.',
     18                'needs-privacy-review' : 'A review is requested from #core-privacy with regards to the problem or the solution.',
     19                'has-privacy-review' : 'A review has been given from #core-privacy with regards to the problem or the solution.',
    1820                'has-unit-tests' : 'Proposed solution has unit test coverage.',
    1921                'needs-unit-tests' : 'Ticket has a particular need for unit tests.',
    2022                'needs-dev-note' : 'Ticket needs a post on the development blog.',
    var wpTrac, coreKeywordList, gardenerKeywordList, reservedTerms, coreFocusesList 
    989991                                                wpTrac.workflow.removeKeyword( 'has-unit-tests' );
    990992                                        }
    991993
     994                                        if ( 'has-privacy-review' === keyword ) {
     995                                                wpTrac.workflow.removeKeyword( 'needs-privacy-review' );
     996                                        } else if ( 'needs-privacy-review' === keyword ) {
     997                                                wpTrac.workflow.removeKeyword( 'has-privacy-review' );
     998                                        }
     999
    9921000                                        if ( 'has-screenshots' === keyword ) {
    9931001                                                wpTrac.workflow.removeKeyword( 'needs-screenshots' );
    9941002                                        } else if ( 'needs-screenshots' === keyword ) {