Skip to content

Commit

Permalink
Add analytics to npq
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Nov 7, 2024
1 parent 847bbdc commit 6116ce7
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ gem "delayed_job_active_record"
gem "delayed_job_web"
gem "devise", "~> 4.9"
gem "diffy"
# gem 'dfe-analytics', github: 'DFE-Digital/dfe-analytics', tag: 'v1.14.2'
# temporary until PR will be accepted
gem 'dfe-analytics', github: 'slawosz/dfe-analytics', branch: 'allow-to-exclude-models'

gem "email_validator", require: "email_validator/strict"
gem "flipper", "~> 1.2.2"
gem "flipper-active_record", "~> 1.2.2"
Expand Down
17 changes: 15 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
GIT
remote: https://github.com/slawosz/dfe-analytics.git
revision: cb1c8180af77973af9d26162a661dd3aa183466e
branch: allow-to-exclude-models
specs:
dfe-analytics (1.14.2)
google-cloud-bigquery (~> 1.38)
httparty (~> 0.21)
multi_xml (~> 0.6.0)
request_store_rails (~> 2)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -324,8 +335,7 @@ GEM
minitest (5.25.1)
msgpack (1.7.2)
multi_json (1.15.0)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
multi_xml (0.6.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
mutex_m (0.2.0)
Expand Down Expand Up @@ -470,6 +480,8 @@ GEM
uber (< 0.2.0)
request_store (1.7.0)
rack (>= 1.4)
request_store_rails (2.0.0)
concurrent-ruby (~> 1.0)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
Expand Down Expand Up @@ -692,6 +704,7 @@ DEPENDENCIES
delayed_job_active_record
delayed_job_web
devise (~> 4.9)
dfe-analytics!
diffy
dotenv-rails
email_validator
Expand Down
296 changes: 296 additions & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
---
shared:
:statement_items:
- id
- statement_id
- state
- created_at
- updated_at
- declaration_id
- ecf_id
:statements:
- id
- month
- year
- deadline_date
- payment_date
- output_fee
- cohort_id
- lead_provider_id
- marked_as_paid_at
- reconcile_amount
- state
- created_at
- updated_at
- ecf_id
:settings:
- id
- course_start_date
- created_at
- updated_at
:schools:
- id
- urn
- la_code
- la_name
- establishment_number
- name
- establishment_status_code
- establishment_status_name
- close_date
- ukprn
- last_changed_date
- address_1
- address_2
- address_3
- town
- county
- postcode
- easting
- northing
- region
- country
- created_at
- updated_at
- establishment_type_code
- establishment_type_name
- high_pupil_premium
- postcode_without_spaces
- number_of_pupils
- eyl_funding_eligible
- phase_type
- phase_name
:schedules:
- id
- course_group_id
- cohort_id
- name
- identifier
- applies_from
- applies_to
- allowed_declaration_types
- created_at
- updated_at
- ecf_id
:registration_interests:
- id
- email
- notified
- created_at
- updated_at
:private_childcare_providers:
- id
- provider_urn
- provider_name
- registered_person_urn
- registered_person_name
- registration_date
- provider_status
- address_1
- address_2
- address_3
- town
- postcode
- postcode_without_spaces
- region
- local_authority
- ofsted_region
- early_years_individual_registers
- provider_early_years_register_flag
- provider_compulsory_childcare_register_flag
- places
- created_at
- updated_at
- disabled_at
:participant_outcome_api_requests:
- id
- ecf_id
- participant_outcome_id
- request_path
- status_code
- request_headers
- request_body
- response_body
- response_headers
- created_at
- updated_at
:participant_outcomes:
- id
- state
- completion_date
- declaration_id
- qualified_teachers_api_request_successful
- sent_to_qualified_teachers_api_at
- created_at
- updated_at
- ecf_id
:participant_id_changes:
- id
- user_id
- created_at
- updated_at
- ecf_id
- from_participant_id
- to_participant_id
:local_authorities:
- id
- ukprn
- name
- address_1
- address_2
- address_3
- town
- county
- postcode
- postcode_without_spaces
- high_pupil_premium
- created_at
- updated_at
:lead_providers:
- id
- name
- created_at
- updated_at
- ecf_id
- hint
:itt_providers:
- id
- legal_name
- operating_name
- removed_at
- approved
- created_at
- updated_at
- disabled_at
:declarations:
- id
- ecf_id
- application_id
- superseded_by_id
- lead_provider_id
- cohort_id
- declaration_type
- declaration_date
- state
- state_reason
- created_at
- updated_at
:course_groups:
- id
- name
- created_at
- updated_at
:courses:
- id
- name
- created_at
- updated_at
- ecf_id
- description
- position
- display
- identifier
- course_group_id
:contract_templates:
- id
- recruitment_target
- service_fee_installments
- service_fee_percentage
- per_participant
- number_of_payment_periods
- output_payment_percentage
- monthly_service_fee
- targeted_delivery_funding_per_participant
- special_course
- ecf_id
- created_at
- updated_at
:contracts:
- id
- statement_id
- course_id
- contract_template_id
- created_at
- updated_at
:cohorts:
- id
- start_year
- registration_start_date
- created_at
- updated_at
- funding_cap
- ecf_id
:application_states:
- id
- application_id
- lead_provider_id
- state
- reason
- created_at
- updated_at
- ecf_id
:applications:
- id
- user_id
- course_id
- lead_provider_id
- DEPRECATED_school_urn
- created_at
- updated_at
- ecf_id
- headteacher_status
- eligible_for_funding
- funding_choice
- ukprn
- teacher_catchment
- teacher_catchment_country
- works_in_school
- employer_name
- employment_role
- DEPRECATED_private_childcare_provider_urn
- works_in_nursery
- works_in_childcare
- kind_of_nursery
- targeted_delivery_funding_eligibility
- funding_eligiblity_status_code
- work_setting
- teacher_catchment_synced_to_ecf
- employment_type
- DEPRECATED_itt_provider
- lead_mentor
- primary_establishment
- number_of_pupils
- tsf_primary_eligibility
- tsf_primary_plus_eligibility
- lead_provider_approval_status
- participant_outcome_state
- private_childcare_provider_id
- itt_provider_id
- school_id
- teacher_catchment_iso_country_code
- targeted_support_funding_eligibility
- notes
- cohort_id
- funded_place
- training_status
- schedule_id
- referred_by_return_to_teaching_adviser
- accepted_at
:users:
- id
- created_at
- updated_at
- ecf_id
- trn_verified
- active_alert
- trn_auto_verified
- feature_flag_id
- provider
- uid
- get_an_identity_id_synced_to_ecf
- updated_from_tra_at
- trn_lookup_status
- notify_user_for_future_reg
- email_updates_status
- email_updates_unsubscribe_key
- archived_at
Loading

0 comments on commit 6116ce7

Please # to comment.