Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dfe-analytics from v1.3.2 to v1.5.2 #7456

Merged
merged 3 commits into from
Oct 3, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 23, 2022

Bumps dfe-analytics from v1.3.2 to v1.5.0.

Changelog

Sourced from dfe-analytics's changelog.

v1.5.0 (2022-09-22)

Full Changelog

Merged pull requests:

v1.4.0 (2022-08-31)

Full Changelog

Merged pull requests:

Commits
  • 950d115 v1.5.0
  • 8a181ff Merge pull request #45 from DFE-Digital/backfill
  • d674ccc Merge pull request #44 from DFE-Digital/v1.4.0-release
  • 01292ec Merge pull request #49 from DFE-Digital/ignore-version-release-prs
  • 25d6886 ignore version release PRs in changelog
  • 0f356a8 update changelog for v1.4.0
  • ef833c7 Merge pull request #46 from DFE-Digital/readme-change
  • a25f1fa Update README.md
  • e7e55e8 Fix an order-dependent spec failure
  • ef231aa Batch events in a way that is sensitive to BQ quotas
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file Ruby Pull requests that update Ruby code labels Sep 23, 2022
@elliotcm
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from b35bf0a to 4d12f65 Compare September 26, 2022 12:47
@elliotcm
Copy link
Contributor

It looks like a significant (technically non-breaking) change happened where they now autosubmit whitelisted models to analytics.

The problem comes because as part of this change they now eager load our entire application:
https://github.com/DFE-Digital/dfe-analytics/blob/main/lib/dfe/analytics.rb#L171
which then loads classes which previously would not have been loaded, like the REST-based ones, at least one of which relies on an environment variable:
https://github.com/DFE-Digital/apply-for-teacher-training/blob/main/app/models/teacher_training_public_api/resource.rb#L3

This means that any CI builds that don't specify that key now explode.
https://github.com/DFE-Digital/apply-for-teacher-training/actions/runs/3127860356/jobs/5074978990#step:12:1053

We could add the key, perhaps, or ask @duncanjbrown whether there's an alternate approach that could be used in the analytics gem.

@duncanjbrown
Copy link
Contributor

Thanks for detailed report @elliotcm — having a look!

@duncanjbrown
Copy link
Contributor

I think this is failing not for want of an env var, but for want of a database at asset precompilation, which we fixed at 1.5.1. (Existing tests do run those ENV-requiring classes.)

Bumping to 1.5.1 to see if that fixes things

@duncanjbrown duncanjbrown temporarily deployed to review September 27, 2022 16:18 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 27, 2022 16:19 Destroyed
@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from 70bfa82 to e007e9d Compare September 27, 2022 17:15
@duncanjbrown duncanjbrown temporarily deployed to review September 27, 2022 17:19 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 27, 2022 17:19 Destroyed
@duncanjbrown duncanjbrown temporarily deployed to review September 27, 2022 18:25 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 27, 2022 18:25 Destroyed
@duncanjbrown duncanjbrown changed the title Bump dfe-analytics from v1.3.2 to v1.5.0 [DO NOT MERGE] Bump dfe-analytics from v1.3.2 to v1.5.0 Sep 27, 2022
@duncanjbrown
Copy link
Contributor

we behave badly when there's a migration pending (eg when deploying to review apps) — trying a patch in the gem

@duncanjbrown duncanjbrown temporarily deployed to review September 27, 2022 18:46 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 27, 2022 18:46 Destroyed
@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from 8a9e107 to e6fd319 Compare September 27, 2022 19:19
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 28, 2022

A newer version of dfe-analytics exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from e6fd319 to 2846167 Compare September 28, 2022 06:16
@duncanjbrown duncanjbrown temporarily deployed to review September 28, 2022 06:24 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 28, 2022 06:24 Destroyed
@duncanjbrown duncanjbrown requested a deployment to review September 28, 2022 07:58 Abandoned
@duncanjbrown
Copy link
Contributor

Progress — but test DB setup is now not working. Investigating further.

@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch 2 times, most recently from 4bedee7 to 11fe21f Compare September 28, 2022 15:58
@duncanjbrown duncanjbrown temporarily deployed to review September 28, 2022 16:05 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 28, 2022 16:05 Destroyed
@duncanjbrown
Copy link
Contributor

OK it's building. @elliotcm you were right about that ENV var — for some reason I got a different error when I ran! But then I got the env var error again. In the process of fixing it over here — DFE-Digital/dfe-analytics#54. Once that's released I'll fix up this PR, which is now building

@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from 11fe21f to cfcf292 Compare September 29, 2022 07:02
@github-actions
Copy link
Contributor

Database-level enum changes detected

Please include a data migration for these attributes and values:

4,5c4,23
< <enum> ApplicationChoice.status: ["unsubmitted", "cancelled", "awaiting_provider_decision", "interviewing", "offer", "pending_conditions", "recruited", "rejected", "application_not_sent", "offer_withdrawn", "declined", "withdrawn", "conditions_not_met", "offer_deferred"]
< <enum> ApplicationChoice.rejection_reasons_type: ["rejection_reason", "reasons_for_rejection", "rejection_reasons", "vendor_api_rejection_reasons"]
---
> <enum> Vendor.name: ["tribal", "ellucian", "oracle", "unit4", "capita", "in_house"]
> <enum> ValidationError.service: ["apply", "manage"]
> <enum> Provider.region_code: ["east_midlands", "eastern", "london", "no_region", "north_east", "north_west", "scotland", "south_east", "south_west", "wales", "west_midlands", "yorkshire_and_the_humber"]
> <enum> OfferCondition.status: ["pending", "met", "unmet"]
> <enum> EnglishProficiency.qualification_status: ["has_qualification", "no_qualification", "qualification_not_needed"]
> <enum> Email.delivery_status: ["not_tracked", "notify_error", "pending", "skipped", "unknown", "delivered", "permanent_failure", "temporary_failure", "technical_failure"]
> <enum> DataExport.export_type: ["active_provider_user_permissions", "active_provider_users", "applications_by_demographic_domicile_and_degree_class", "applications_by_subject_route_and_degree_grade", "application_references", "application_timings", "application_timings_for_current_cycle", "candidate_application_feedback", "candidate_autosuggest_usage", "candidate_email_send_counts", "candidate_feedback", "candidate_journey_tracking", "candidate_course_choice_withdrawal_survey", "equality_and_diversity", "external_report_applications", "external_report_candidates", "find_feedback", "interview_export", "ministerial_report_applications_export", "ministerial_report_candidates_export", "notifications_export", "notification_preferences_export", "notes_export", "offer_conditions", "organisation_permissions", "provider_access_controls", "providers_export", "persona_export", "qualifications", "referee_survey", "sites_export", "structured_reasons_for_rejection", "submitted_application_choices", "submitted_application_choices_for_current_cycle", "tad_applications", "tad_provider_performance", "tad_subject_domicile_nationality", "user_permissions", "who_ran_which_export", "work_history_break"]
> <enum> CourseOption.vacancy_status: ["vacancies", "no_vacancies"]
> <enum> CourseOption.study_mode: ["full_time", "part_time"]
> <enum> Course.level: ["Primary", "Secondary", "Further education"]
> <enum> Course.study_mode: ["F", "P", "B"]
> <enum> Course.funding_type: ["fee", "salary", "apprenticeship"]
> <enum> Course.program_type: ["HE", "SD", "SS", "SC", "TA"]
> <enum> Course.degree_grade: ["two_one", "two_two", "third_class", "not_required"]
> <enum> ChaserSent.chaser_type: ["reference_request", "referee_reference_request", "candidate_reference_request", "reference_replacement", "follow_up_missing_references", "candidate_follow_up_missing_references", "referee_follow_up_missing_references", "reminder_reference_nudge", "provider_decision_request", "candidate_decision_request", "course_unavailable_notification", "course_unavailable_slack_notification", "eoc_deadline_reminder", "find_has_opened", "new_cycle_has_started", "set_up_organisation_permissions", "apply_service_is_now_open", "find_service_is_now_open", "apply_service_open_organisation_notification", "find_service_open_organisation_notification"]
> <enum> ApplicationReference.feedback_status: ["cancelled", "cancelled_at_end_of_cycle", "not_requested_yet", "feedback_requested", "feedback_provided", "feedback_refused", "email_bounced"]
> <enum> ApplicationReference.referee_type: ["academic", "professional", "school-based", "character"]
> <enum> ApplicationReference.safeguarding_concerns_status: ["not_answered_yet", "no_safeguarding_concerns_to_declare", "has_safeguarding_concerns_to_declare", "never_asked"]
> <enum> ApplicationQualification.level: ["degree", "gcse", "other"]
> <enum> ApplicationQualification.comparable_uk_degree: ["bachelor_ordinary_degree", "bachelor_honours_degree", "postgraduate_certificate_or_diploma", "masters_degree", "doctor_of_philosophy", "post_doctoral_award"]
14,33c32,33
< <enum> ApplicationQualification.level: ["degree", "gcse", "other"]
< <enum> ApplicationQualification.comparable_uk_degree: ["bachelor_ordinary_degree", "bachelor_honours_degree", "postgraduate_certificate_or_diploma", "masters_degree", "doctor_of_philosophy", "post_doctoral_award"]
< <enum> ApplicationReference.feedback_status: ["cancelled", "cancelled_at_end_of_cycle", "not_requested_yet", "feedback_requested", "feedback_provided", "feedback_refused", "email_bounced"]
< <enum> ApplicationReference.referee_type: ["academic", "professional", "school-based", "character"]
< <enum> ApplicationReference.safeguarding_concerns_status: ["not_answered_yet", "no_safeguarding_concerns_to_declare", "has_safeguarding_concerns_to_declare", "never_asked"]
< <enum> ChaserSent.chaser_type: ["reference_request", "referee_reference_request", "candidate_reference_request", "reference_replacement", "follow_up_missing_references", "candidate_follow_up_missing_references", "referee_follow_up_missing_references", "reminder_reference_nudge", "provider_decision_request", "candidate_decision_request", "course_unavailable_notification", "course_unavailable_slack_notification", "eoc_deadline_reminder", "find_has_opened", "new_cycle_has_started", "set_up_organisation_permissions", "apply_service_is_now_open", "find_service_is_now_open", "apply_service_open_organisation_notification", "find_service_open_organisation_notification"]
< <enum> Course.level: ["Primary", "Secondary", "Further education"]
< <enum> Course.study_mode: ["F", "P", "B"]
< <enum> Course.funding_type: ["fee", "salary", "apprenticeship"]
< <enum> Course.program_type: ["HE", "SD", "SS", "SC", "TA"]
< <enum> Course.degree_grade: ["two_one", "two_two", "third_class", "not_required"]
< <enum> CourseOption.vacancy_status: ["vacancies", "no_vacancies"]
< <enum> CourseOption.study_mode: ["full_time", "part_time"]
< <enum> DataExport.export_type: ["active_provider_user_permissions", "active_provider_users", "applications_by_demographic_domicile_and_degree_class", "applications_by_subject_route_and_degree_grade", "application_references", "application_timings", "application_timings_for_current_cycle", "candidate_application_feedback", "candidate_autosuggest_usage", "candidate_email_send_counts", "candidate_feedback", "candidate_journey_tracking", "candidate_course_choice_withdrawal_survey", "equality_and_diversity", "external_report_applications", "external_report_candidates", "find_feedback", "interview_export", "ministerial_report_applications_export", "ministerial_report_candidates_export", "notifications_export", "notification_preferences_export", "notes_export", "offer_conditions", "organisation_permissions", "provider_access_controls", "providers_export", "persona_export", "qualifications", "referee_survey", "sites_export", "structured_reasons_for_rejection", "submitted_application_choices", "submitted_application_choices_for_current_cycle", "tad_applications", "tad_provider_performance", "tad_subject_domicile_nationality", "user_permissions", "who_ran_which_export", "work_history_break"]
< <enum> Email.delivery_status: ["not_tracked", "notify_error", "pending", "skipped", "unknown", "delivered", "permanent_failure", "temporary_failure", "technical_failure"]
< <enum> EnglishProficiency.qualification_status: ["has_qualification", "no_qualification", "qualification_not_needed"]
< <enum> OfferCondition.status: ["pending", "met", "unmet"]
< <enum> Provider.region_code: ["east_midlands", "eastern", "london", "no_region", "north_east", "north_west", "scotland", "south_east", "south_west", "wales", "west_midlands", "yorkshire_and_the_humber"]
< <enum> ValidationError.service: ["apply", "manage"]
< <enum> Vendor.name: ["tribal", "ellucian", "oracle", "unit4", "capita", "in_house"]
---
> <enum> ApplicationChoice.status: ["unsubmitted", "cancelled", "awaiting_provider_decision", "interviewing", "offer", "pending_conditions", "recruited", "rejected", "application_not_sent", "offer_withdrawn", "declined", "withdrawn", "conditions_not_met", "offer_deferred"]
> <enum> ApplicationChoice.rejection_reasons_type: ["rejection_reason", "reasons_for_rejection", "rejection_reasons", "vendor_api_rejection_reasons"]

@duncanjbrown duncanjbrown temporarily deployed to review September 29, 2022 07:08 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 29, 2022 07:09 Destroyed
@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from cfcf292 to 89210fd Compare September 29, 2022 07:10
@duncanjbrown duncanjbrown temporarily deployed to review September 29, 2022 07:27 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 September 29, 2022 07:28 Destroyed
@duncanjbrown duncanjbrown requested a deployment to review September 29, 2022 09:47 Abandoned
@carlosmartinez
Copy link
Collaborator

@duncanjbrown any progress on this, guvnor?

@duncanjbrown
Copy link
Contributor

oh — yes! fixing 'er up now

dependabot bot and others added 3 commits October 3, 2022 16:13
Bumps [dfe-analytics](https://github.com/DFE-Digital/dfe-analytics) from v1.3.2 to v1.5.0.
- [Release notes](https://github.com/DFE-Digital/dfe-analytics/releases)
- [Changelog](https://github.com/DFE-Digital/dfe-analytics/blob/main/CHANGELOG.md)
- [Commits](DFE-Digital/dfe-analytics@6dc1642...8fffe1f)

---
updated-dependencies:
- dependency-name: dfe-analytics
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@duncanjbrown duncanjbrown force-pushed the dependabot/bundler/dfe-analytics-v1.5.0 branch from 89210fd to b02f32b Compare October 3, 2022 15:15
@duncanjbrown duncanjbrown temporarily deployed to review October 3, 2022 15:22 Inactive
@github-actions github-actions bot temporarily deployed to review-7456 October 3, 2022 15:22 Destroyed
@duncanjbrown duncanjbrown changed the title [DO NOT MERGE] Bump dfe-analytics from v1.3.2 to v1.5.0 Bump dfe-analytics from v1.3.2 to v1.5.2 Oct 3, 2022
@duncanjbrown duncanjbrown merged commit e0ce633 into main Oct 3, 2022
@duncanjbrown duncanjbrown deleted the dependabot/bundler/dfe-analytics-v1.5.0 branch October 3, 2022 15:51
@duncanjbrown duncanjbrown temporarily deployed to review October 3, 2022 15:51 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants