Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.97 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.97 KB

Dear FCC

Setup / Deployment

There are example files docker-compose.yml.example and .env.example illustrating a production deployment with docker.

$ cp docker-compose.yml.example docker-compose.yml
$ cp .env.example .env  
$ docker-compose up --build

Configuration

There are two files for configuration of the letter campaign:

Describes the FCC proceeding to which comments will be submitted.

Describes the comment template which is presented to the user. There are 3 types of elements in the comment:

  • type: user-select
    give the user a choice of what language to use
  • type: user-select-or-other
    same as user-select but also provides an "Other..." option which allows free-form entry
  • type: random
    randomly selects one of the choices

Running tests

$ bundle exec rspec

CSV Export

The ECFS API rate limits submissions to about 500/hour. For 17-108 "Restoring Internet Freedom" they have set up a form for bulk submissions, which may need to be used if the rate limit becomes a problem.

They also ask that organizations use this bulk upload form in any case, if they expect to submit a lot of comments.

To export the job queue to CSV in order to upload, run this command.

$ rake dear_fcc:create_csv >comments.csv

Make sure to save the output because the jobs will be deleted from the queue. The CSV output will be at most 5 megabytes since that is the maximum file size accepted by the FCC. If there are still jobs in the queue, generate additional CSV files by running the command again.