Closed Bug 852185 Opened 7 years ago Closed 6 years ago
Add ability to hide form on /contribute
We will be linking to /contribute for our 15 anniversary campaign across multiple channels. This will mean a huge spike in traffic to that page and likely a huge number of inquiries coming in via the form. Some locales might not be ready for this, so ideally we could have an optional flag somewhere to turn off/hide the form per locale. Armando, is this something you would be interested in looking into?
Sure! I want to help with this. It could be a hard coded dictionary?
(In reply to Armando Neto [:netoarmando] from comment #1) > Sure! I want to help with this. Great. > It could be a hard coded dictionary? I don't know what is possible/easiest in the code, but I was thinking it could be some flag that the locale sets, e.g. something in contribute.lang or some other file that is pulled in at run-time by bedrock.
Right! I'm starting to work on this. I will try your suggestion first. Can you assign the bug to me?
I can check the contribute.lang for a string in the header, but it would be easier if I really use a hardcoded list of locales that must hide the form, because only few of locales will hide the form, and (for me) it is easy to modify this file (views.py) than a locale file. Am I Right?
That sounds right. I don't know any locales right now that we need to hide. David? For now I'd say just go ahead with a test for one locale on trunk.
Status: NEW → ASSIGNED
(In reply to Brian King [:kinger] from comment #5) > I don't know any locales right now that we need to hide. David? Right -- no one so far has requested this and I wouldn't expect locales to be turning the form on and off regularly. This is more for locales that are just getting started and need to more gradually ramp up their community building efforts.
Pull request: https://github.com/mozilla/bedrock/pull/719
If the locale file (contribute.lang) has the comment flag `## hide_form ##`, then the form will be hidden.
Commit pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/abd6ee4fd2c40fd98e3c049b19f291dba8d8c661 Bug 852185: Hiding contribute form for a specific locale
Brian, we should use that for German, they have all the translation work done but not the mailing list set up yet, what do you think?
Another pull request, testcases included: https://github.com/mozilla/bedrock/pull/741
Commit pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/ff329f5b32afead97560877e1e2a191304fc27fe Bug 852185: add tests for contribute form hiding.
Closing as per Comment 9 and 12.
Severity: normal → enhancement
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.