We'd love for you to contribute to our source code and make Lookit even better than it is today! Here are some guidelines we'd like you to follow:
As contributors and maintainers of the Lookit project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, and providing feedback in comments.
Communication through any of Lookit's channels (Slack and Github) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the Lookit project to do the same.
If any member of the community violates this code of conduct, the maintainers of the Lookit project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
For general questions about the platform, you should head over to our Slack workspace - if you haven't joined already, you can find out how to do so here.
If you find a bug in the source code, you can help us by submitting an issue. Please follow the included template to ensure that we have as much relevant information as possible.
Even better, you can submit a Pull Request (see forking section) with a fix.
We have a process for getting new features into the roadmap. This process helps properly prioritize platform development according to Lookit's vision and mission.
If you're a researcher, you'll need to start here.
- Check the Feature Proposal Spreadsheet to see if something similar is already being discussed.
- If you see your idea there, follow the link to the slack channel and join the discussion.
- If it's not there, go ahead and start a new discussion in the #feature-proposal channel in Slack.
Once the feature has been discussed and cleared for prioritization, the feature will move into the next phase.
If you're a core contributor, you can start here.
- Scoping (Optional): Create a Scoping issue. You'll only need the narrative (justification) at this point.
- Implementation: Either convert your scoping issue to a Feature Request, or make a new one with all the correct fields filled out. You should have implementation details and acceptance criteria from the prior scoping ticket.
We have several guidelines for contributing code, extending to both core and outside contributors. These rules help us streamline work and provide the best possible collaboration experience, so please follow them!
If you have a new idea or want to request an improvement to the current process, you can file a developer issue here.
Follow the instructions in our documentation.
Conceptually speaking, "Lookit-API" is a misnomer. Lookit is not actually one service, it is three (3) processes that act as (5) conceptually distinct systems/applications:
- The Django web app/http API process, providing:
- A web UI for researchers to design and manage experiments
- A web UI for participants to discover experiments
- An HTTP/JSON API consumed by built experiments
- An offline Celery process (connected by message queue) that builds and deploys experiments (web archives)
- An offline Celery process (connected by message queue) that sends emails and does some rudimentary cleanup
The processes listed above also has three major in-network service dependencies:
- Postgres for relational data storage, used by all processes
- RabbitMQ as a message queue to communicate between process #1 and the two offline task runner processes
- Docker to provide a container environment for building experiments (used by process #2)
And as if that wasn't enough, three major out of network service dependencies:
- Amazon S3 for storing video
- Google Cloud Storage for storing experiment web archives and other static files
- Pipe to relay video streamed from experiments to Amazon S3
For the kicker, if you want to debug the video renaming webhook, you'll need to install and run ngrok
, and add
a new webhook target in the Pipe web UI with the freshly generated URL. Yikes. Thankfully, you
won't need to do this that often. Still - depending on how much you want to set up and debug locally, you could
potentially be running anywhere from 2-7 processes at once to support Lookit development.
If you are not on the Lookit core team, this section is for you!
One additional note: when you submit a PR, you'll want to target the develop
branch (if you forget, no biggie - we
can change that on the PR for you prior to merging any of your work).
At the moment, we have very rudimentary i18n and l10n processes - nothing like the sophisticated pipeline you might see at a big company. You'll first want to read Django's documentation on i18n and l10n to understand how Django apps deliver translated strings. In summary:
- Developers will designate new strings for internationalization using
gettext
andgettext_lazy
in code and{% translate %}
tags in templates (currently, this is generally limited to participant-facing strings). As their forks and/or feature branches are merged back intodevelop
, these strings will become available for compilation into message files. - Translators will merge these upstream changes from
origin/develop
back into their respective forks.git fetch upstream && git merge upstream/develop
should be run frequently to surface new strings.
- Translators will then run
./manage.py makemessages
to generate any necessary message snippets and their containing.po
files. - Translators will then fill in the requisite translations generated from the previous command, before committing and creating a PR.
As it's a system based on trust, translators will be notified ahead of time when the core team is about to cut a new release. This way, they can get in any last-minute translations.