Profiles & Enrichment

Adding a new service is straightforward to Bax.

  • Add the service name to the Bax::Mixins::SocialParsingData.globalservicekeys array.

  • Add the service's rejection_ids (default names that we never want that you will typically find) to the Bax::Data::Store::Profiles.#{name}_reject_ids

  • Create the folder Bax::Pages::Service::X with a single file profile.rb.

  • Define the profile attributes. The profile MUST contain a username and a name.

  • Update the test spreadsheet to include at least one example of what the profile enricher should find.

  • Delete the /bax/spec/fixtures/retrieve_hash.json. This will be automatically re-generated on the next run from the test spreadsheet.

  • Run the tests and make sure everything passes.

Last updated