-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dfe-analytics configuration files
- Loading branch information
1 parent
0ed736a
commit 540bdc5
Showing
8 changed files
with
239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
shared: | ||
schools: | ||
- id | ||
- name | ||
- headteacher_name | ||
- created_at | ||
application_progresses: | ||
- id | ||
- initial_checks_completed_at | ||
- visa_investigation_required | ||
- home_office_checks_completed_at | ||
- school_investigation_required | ||
- school_checks_completed_at | ||
- application_id | ||
- payment_confirmation_completed_at | ||
- rejection_completed_at | ||
- banking_approval_completed_at | ||
- rejection_details | ||
- status | ||
- rejection_reason | ||
applications: | ||
- id | ||
- application_date | ||
- urn | ||
- applicant_id | ||
- created_at | ||
- subject | ||
- visa_type | ||
- date_of_entry | ||
- start_date | ||
- application_route | ||
- home_office_csv_downloaded_at | ||
- standing_data_csv_downloaded_at | ||
- payroll_csv_downloaded_at | ||
applicants: | ||
- id | ||
- given_name | ||
- family_name | ||
- email_address | ||
- phone_number | ||
- passport_number | ||
- updated_at | ||
- middle_name | ||
- date_of_birth | ||
- nationality | ||
- sex | ||
- created_at | ||
- school_id | ||
- student_loan | ||
addresses: | ||
- id | ||
- addressable_type | ||
- addressable_id | ||
- address_line_1 | ||
- address_line_2 | ||
- city | ||
- postcode | ||
users: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
:shared: | ||
:schools: | ||
- updated_at | ||
:duplicate_applications: | ||
- id | ||
- application_date | ||
- urn | ||
- applicant_id | ||
- created_at | ||
- updated_at | ||
- subject | ||
- visa_type | ||
- date_of_entry | ||
- start_date | ||
- application_route | ||
- home_office_csv_downloaded_at | ||
- standing_data_csv_downloaded_at | ||
- payroll_csv_downloaded_at | ||
- duplicate_email | ||
- duplicate_phone | ||
- duplicate_passport | ||
:application_progresses: | ||
- created_at | ||
- updated_at | ||
:applications: | ||
- updated_at | ||
:app_settings: | ||
- id | ||
- service_start_date | ||
- service_end_date | ||
- created_at | ||
- updated_at | ||
:addresses: | ||
- created_at | ||
- updated_at | ||
:users: | ||
- id | ||
- created_at | ||
- updated_at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
shared: | ||
schools: | ||
- headteacher_name | ||
applicants: | ||
- given_name | ||
- middle_name | ||
- family_name | ||
- email_address | ||
- phone_number | ||
- passport_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
DfE::Analytics.configure do |config| | ||
# Whether to log events instead of sending them to BigQuery. | ||
# | ||
config.log_only = Rails.env.development? | ||
|
||
# Whether to use ActiveJob or dispatch events immediately. | ||
# | ||
# config.async = true | ||
|
||
# Which ActiveJob queue to put events on | ||
# | ||
config.queue = :dfe_analytics | ||
|
||
# The name of the BigQuery table we’re writing to. | ||
# | ||
# config.bigquery_table_name = ENV['BIGQUERY_TABLE_NAME'] | ||
|
||
# The name of the BigQuery project we’re writing to. | ||
# | ||
# config.bigquery_project_id = ENV['BIGQUERY_PROJECT_ID'] | ||
|
||
# The name of the BigQuery dataset we're writing to. | ||
# | ||
# config.bigquery_dataset = ENV['BIGQUERY_DATASET'] | ||
|
||
# Service account JSON key for the BigQuery API. See | ||
# https://cloud.google.com/bigquery/docs/authentication/service-account-file | ||
# | ||
# config.bigquery_api_json_key = ENV['BIGQUERY_API_JSON_KEY'] | ||
|
||
# Passed directly to the retries: option on the BigQuery client | ||
# | ||
# config.bigquery_retries = 3 | ||
|
||
# Passed directly to the timeout: option on the BigQuery client | ||
# | ||
# config.bigquery_timeout = 120 | ||
|
||
# A proc which returns true or false depending on whether you want to | ||
# enable analytics. You might want to hook this up to a feature flag or | ||
# environment variable. | ||
# | ||
# config.enable_analytics = proc { true } | ||
|
||
# The environment we’re running in. This value will be attached | ||
# to all events we send to BigQuery. | ||
# | ||
# config.environment = ENV.fetch('RAILS_ENV', 'development') | ||
|
||
# A proc which will be called with the user object, and which should | ||
# return the identifier for the user. This is useful for systems with | ||
# users that don't use the id field. | ||
# | ||
# config.user_identifier = proc { |user| user&.id } | ||
|
||
# Whether to pseudonymise the user_id field in the web request event. | ||
# | ||
# config.pseudonymise_web_request_user_id = false | ||
|
||
# A proc which will be called with the rack env, and which should | ||
# return a boolean indicating whether the page is cached and will | ||
# be served by rack middleware. | ||
# | ||
# config.rack_page_cached = proc { |_rack_env| false } | ||
end |