From: Kohei Yoshino Date: Wed, 28 Nov 2018 19:10:04 +0000 (-0500) Subject: Bug 1508261 - Closing DevRel sponsorship form on Bugzilla and updating Wiki page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04f50a73ed0bcd11c457a1a10992bc7e8a4466ed;p=thirdparty%2Fbugzilla.git Bug 1508261 - Closing DevRel sponsorship form on Bugzilla and updating Wiki page --- diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index d093be29c..4303f5698 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -1874,9 +1874,6 @@ sub post_bug_after_creation { elsif ($format eq 'mozpr') { $self->_post_mozpr_bug($args); } - elsif ($format eq 'dev-engagement-event') { - $self->_post_dev_engagement($args); - } elsif ($format eq 'shield-studies') { $self->_post_shield_studies($args); } @@ -2051,84 +2048,6 @@ sub _post_mozpr_bug { $bug->update($bug->creation_ts); } -sub _post_dev_engagement { - my ($self, $args) = @_; - my $vars = $args->{vars}; - my $parent_bug = $vars->{bug}; - my $template = Bugzilla->template; - my $cgi = Bugzilla->cgi; - my $params = Bugzilla->input_params; - my $old_user = Bugzilla->user; - - my $error_mode_cache = Bugzilla->error_mode; - Bugzilla->error_mode(ERROR_MODE_DIE); - - eval { - # Add attachment containing tab delimited field values for - # spreadsheet import. - my @columns = qw(event start_date end_date location attendees - audience desc mozilla_attending_list); - my @attach_values; - foreach my $column(@columns) { - my $value = $params->{$column} || ""; - $value =~ s/"/""/g; - push(@attach_values, qq{"$value"}); - } - - my @requested; - foreach my $param (grep(/^request_/, keys %$params)) { - next if !$params->{$param} || $param eq 'request_other_text'; - $param =~ s/^request_//; - push(@requested, ucfirst($param)); - } - push(@attach_values, '"' . join(",", @requested) . '"'); - - # we wrap the data inside a textarea to allow for the delimited data to - # be pasted directly into google docs. - - my $values = html_quote(join("\t", @attach_values)); - my $data = < - - - - Spreadsheet Data - - - - - - -EOF - - $self->_add_attachment($args, { - data => $data, - description => 'Spreadsheet Data', - filename => 'dev_engagement_submission.html', - mimetype => 'text/html', - }); - }; - - $parent_bug->update($parent_bug->creation_ts); -} - sub _post_shield_studies { my ($self, $args) = @_; my $vars = $args->{vars}; @@ -2731,9 +2650,6 @@ sub app_startup { ->to( 'CGI#enter_bug_cgi' => { 'format' => 'creative', 'product' => 'Marketing' } ); $r->any( '/:REWRITE_user_engagement' => [ REWRITE_user_engagement => qr{form[\.:]user[\.\-:]engagement} ] ) ->to( 'CGI#enter_bug_cgi' => { 'format' => 'user-engagement', 'product' => 'Marketing' } ); - $r->any( '/:REWRITE_dev_engagement_event' => - [ REWRITE_dev_engagement_event => qr{form[\.:]dev[\.\-:]engagement[\.\-\:]event} ] ) - ->to( 'CGI#enter_bug_cgi' => { 'product' => 'Developer Engagement', 'format' => 'dev-engagement-event' } ); $r->any( '/:REWRITE_mobile_compat' => [ REWRITE_mobile_compat => qr{form[\.:]mobile[\.\-:]compat} ] ) ->to( 'CGI#enter_bug_cgi' => { 'product' => 'Tech Evangelism', 'format' => 'mobile-compat' } ); $r->any( '/:REWRITE_web_bounty' => [ REWRITE_web_bounty => qr{form[\.:]web[\.:]bounty} ] ) diff --git a/extensions/BMO/template/en/default/bug/create/comment-dev-engagement-event.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-dev-engagement-event.txt.tmpl deleted file mode 100644 index 1a4aec7b8..000000000 --- a/extensions/BMO/template/en/default/bug/create/comment-dev-engagement-event.txt.tmpl +++ /dev/null @@ -1,134 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - -:: - -Name: -[%+ cgi.param('name') %] - -Email Address: -[%+ cgi.param('email') %] - -Role in relation to event: -[%+ cgi.param('role') %] - -Vouched Mozillian: -[%+ cgi.param('vouched_mozillian') %] - -[% IF cgi.param('vouched_mozillian') == 'Yes' %] -Mozillian URL: -[%+ cgi.param('mozillian_profile_url') %] -[% END %] - -:: - -Developer Event?: -[%+ cgi.param('developer_event') %] - -Is Mozilla Attending?: -[%+ cgi.param('mozilla_attending') %] - -[% IF cgi.param('mozilla_attending') == 'Yes' %] -Mozilla Attending List: -[%+ cgi.param('mozilla_attending_list') %] -[% END %] - -Code of Conduct?: -[%+ cgi.param('code_of_conduct') %] - -Code of Conduct URL: -[%+ cgi.param('code_of_conduct_url') %] - -Event Name: -[%+ cgi.param('event') %] - -Start Date: -[%+ cgi.param('start_date') %] - -End Date: -[%+ cgi.param('end_date') %] - -Event Location: -[%+ cgi.param('event_location') %] - -Event Location Description: -[%+ cgi.param('location') || "-" %] - -Venue: -[%+ cgi.param('venue') || "-" %] - -Weblink: -[%+ cgi.param('link') || "-" %] - -Expected Attendees: -[%+ cgi.param('attendees') || "-" %] - -Primary Audience: -[%+ cgi.param('audience') %] - -Event Description: -[%+ cgi.param('desc') || "-" %] - -:: - -Relevant Products: -[% "\n* Firefox Web Browser" IF cgi.param('product_fx') %] -[% "\n* Encryption" IF cgi.param('product_encryption') %] -[% "\n* Web Assembly/Platform" IF cgi.param('product_web_asm') %] -[% "\n* Rust" IF cgi.param('product_rust') %] -[% "\n* Servo" IF cgi.param('product_servo') %] -[% "\n* webVR" IF cgi.param('product_webvr') %] -[% "\n* The Free and Open Web" IF cgi.param('product_fow') %] -[% "\n* Developer Tools" IF cgi.param('product_devtools') %] -[% "\n* Other: " _ cgi.param('product_other_text') IF cgi.param('product_other') %] - -Option to Sponsor a Booth?: -[%+ cgi.param('sponsor_booth') %] - -Need a Speaker?: -[%+ cgi.param('speaker_needed') %] - -[% IF cgi.param('speaker_needed') == 'Yes' %] -Speaker Needed Topic: -[%+ cgi.param('speaker_needed_topic') %] -[% END %] - -:: - -Requests: -[% "\n* Keynote Presentation" IF cgi.param('request_keynote') %] -[% "\n* Talk Presentation" IF cgi.param('request_talk') %] -[% "\n* Workshop" IF cgi.param('request_workshop') %] -[% "\n* Sponsorship" IF cgi.param('request_sponsorship') %] -[% "\n* Other: " _ cgi.param('request_other_text') IF cgi.param('request_other') %] - -Mozilla Sponsored Event Before?: -[%+ cgi.param('previous_event') %] - -[% IF cgi.param('previous_event') == 'Yes' %] -Previous Event Year: -[%+ cgi.param('previous_event_year') %] - -Previous Event Name: -[%+ cgi.param('previous_event_name') %] -[% END %] - -Suggested sponsorship amount/level: -[%+ cgi.param('sponsorship_suggestion') || "-" %] - -How would the conference/event support Mozilla's mission and goals?: -[%+ cgi.param('support_mission') || "-" %] - -How would we receive feedback to evaluate the success of the conference/event?: -[%+ cgi.param('feedback_method') || "-" %] - -Anything Else: -[%+ cgi.param('else') || "-" %] diff --git a/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl deleted file mode 100644 index bdb8f3f01..000000000 --- a/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl +++ /dev/null @@ -1,491 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[% PROCESS global/variables.none.tmpl %] - -[% inline_css = BLOCK %] -#dev_form { - width: 60%; -} -#dev_form .required:after { - content: " *"; - color: red; -} -#dev_form .field_label { - text-align: left; - font-weight: bold; -} -#dev_form .field_desc, -#dev_form .head_desc { - word-wrap: normal; -} -#dev_form .head_desc { - font-size: 1.5em; - padding-bottom: .5em; -} -#dev_form .form_section { - margin-bottom: 1em; - padding-left: 2em; -} -.yui-calcontainer { - z-index: 2; -} -[% END %] - -[% PROCESS global/header.html.tmpl - title = "Developer Events Request Form" - generate_api_token = 1 - style = inline_css - style_urls = [ 'skins/standard/enter_bug.css' ] - javascript_urls = [ 'js/field.js', - 'js/util.js', - 'extensions/BMO/web/js/form_validate.js', - 'extensions/BMO/web/js/dev_engagement.js' ] -%] - -

Developer Events Request Form

- -
- - - - - - - - - - - - - - - - - -

Hi! Thanks so much for asking Mozilla to participate at your event!

-

The Developer Events Team evaluates each request individually, based on - multiple criteria, including quarterly goals and priorities. We meet at - least biweekly, and this form is designed to gather all the information - we need to evaluate each request at these meetings. Please take a minute - to fill it out thoroughly so we can process your request as soon as - possible.

-

Please review our - - event request guidelines for information about how we evaluate requests.

- -
- First, tell us about yourself! -
- -
-
- What is your name? -
- -
- -
-
- Please provide your email address. -
- -
- -
-
- What is your role in relation to this event? -
-
- eg. organizer, speaker/attendee (past), speaker/attendee (current), etc. -
- -
- -
-
- Are you a vouched Mozillian? -
- -
- -
-
- Mozillian profile URL -
- -
- -
- Let's start with the basics. -
- -
-
- Is this a developer event? -
- -
- The Developer Events Team only participates in developer events. - Form submission has been disabled. -
-
- -
-
- Is someone from Mozilla attending? -
- -
- The Developer Events Team usually doesn’t sponsor an event unless someone - from Mozilla is attending. If you would like to request a speaker, there’s - an opportunity to do so later on this page. -
-
- -
-
- Please list the names of anyone from Mozilla who are already registered to - attend, speak, or participate in this event. -
- -
- -
-
- Do you have a code of conduct? -
- -
- Mozilla only participates in events that have a code of conduct. - Fom submission has been disabled. -
-
- -
-
- Code of Conduct URL -
- -
- -
-
- Event Name -
- -
- -
-
- Start Date -
- - -
-
- -
-
- End Date -
- - -
-
- -
-
- Event Location -
- -
- -
-
- Event Location Description -
-
- Include city, state, and country. -
- -
- -
-
- Venue -
-
- What is the name of the venue where your event will be held? Enter TBD if - you don't know yet. -
- -
- -
-
- Weblink -
-
- Weblink to the event site, Eventbrite page, Lanyrd page, Meetup page, etc. -
- -
- -
-
- Number of expected attendees -
- -
- -
-
- Who is the primary audience for this event? [% mandatory FILTER none %] -
-
- Developers (specify coding language and platform), business development, - marketing associates, corporate executives, etc. -
- -
- -
-
- Please give a [short] description of the event. -
-
- Include track topics, presentation topics, event format. -
- -
- -
- Some more detail on the event. -
- -
-
- Which Mozilla products/projects are most relevant to this event? -
-
- Please select all that apply. See - - mozilla.org/products for more information about Mozilla products. -
- -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - - - -
- -
-
- Do you have an option to sponsor a booth? -
- -
- -
-
- Do you need a speaker? -
- -
- -
-
- How would the conference/event support - Mozilla's mission and goals? -
-
- Are there specific portions of the conference/event that can be described to be - specifically beneficial to our mission? -
- -
- -
-
- How would we receive feedback to evaluate the success of the conference/event? -
-
- Please be specific in measurements or feedback process. -
- -
- -
-
- What topic do you want someone to speak about? -
-
- Please be specific so that we can find a great speaker for you. Examples: - Developer Tools for Firefox, the future of the Web, CSS media queries. -
- -
- -
- Tell us more about what you're looking for! -
- -
-
- What are you requesting from Mozilla? -
-
- Please select all that apply. -
- -
- -
- -
- -
- - - -
- -
-
- Has Mozilla sponsored this event before? -
- -
- -
-
- Year -
- -
- Name of Event -
- -
- -
-
- If requesting sponsorship, what amount/level do you suggest? -
-
- Include Sponsorship Amounts and quick summary of benefits. - Should be edited to List the tiers of sponsorship amount and benefit that we can review. -
- -
- -
-
- Please upload a Sponsorship Prospectus if you have one. -
- - - -
- -
-
- Anything else that may help us review this request? -
- -
- - - -
- -[% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl index 6fe22d48e..c068ac106 100644 --- a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl +++ b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl @@ -128,7 +128,7 @@ custom_forms = { ], "Developer Engagement" => [ { - link => basepath _ "form.dev.engagement.event", + link => "https://mzl.la/devevents", title => "Developer Events Request Form", }, ],