Closed Bug 1089650 Opened 10 years ago Closed 10 years ago

add a contribute.json file

Categories

(Input :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: bhargav.kowshik, Mentored)

Details

We should add a contribute.json file to Input. Details on the contribute.json file are here:

https://contribute.paas.allizom.org/

This bug covers:

1. figuring out what should go in that

2. writing up a view to send that data and make sure it's not affected by locale-redirection

3. write up a test to make sure it's being served correctly
This requires some knowledge of Python, Django and the JSON format.

To implement this, you'll need to:

1. read through the contribute.json site

2. figure out what data Input should have in its contribute.json data

3. write up a new view in fjord/base/views.py that sends the contribute.json data

4. add a new url route to fjord/base/urls.py tying the "/contribute.json" url path to the new view

5. add "contribute.json" to SUPPORTED_NONLOCALES list in fjord/settings/base.py

6. write a test in fjord/base/tests/test_views.py that tests to make sure the view works correctly


There are a lot of steps here, but it should be pretty straight-forward.

Marking this as a mentored bug. If you're interested in working on it, please read through our "Join this project" guide [1], complete the list of things you need to do before contributing and then add a comment to this bug asking to have it assigned to you.

If you have any questions, please ask on the mailing list or in the #input channel on irc.mozilla.org.

[1] http://fjord.readthedocs.org/en/latest/welcome.html
Mentor: willkg
I would like to work on this.
My development environment setup and I have gone through the documentation.
I have sent a pull request.
https://github.com/mozilla/fjord/pull/373

Please let me know if there is anything.
Assigning this to Bhargav!
Assignee: nobody → bhargav.kowshik
Status: NEW → ASSIGNED
Should I close this bug now?
My bad--I meant to do the bug bookkeeping earlier, but then forgot.

This landed in master:

https://github.com/mozilla/fjord/commit/2edb3b344fba70aa31d206a988289eec79eb64ee
https://github.com/mozilla/fjord/commit/d341977491c67e16e82cc84ee6a6661351187e5c

I pushed it to production about 5 hours ago.

https://input.mozilla.org/contribute.json

Marking this as FIXED.

Thank you!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.