Skip to content

Add code added to onboarding progress

What does this MR do and why?

Previously Add code element from Learn Gitlab didn't use DB field. For tracking purposes we need to add code_added_at field to the DB by analogy with other elements and add logic to update this field. Logic changes are going to be done here - Update logic calculation for 'Add code' step on... (#434516 - closed)

Migrate
== 20231214164411 AddCodeAddedAtToOnboardingProgresses: migrating =============
-- add_column(:onboarding_progresses, :code_added_at, :datetime_with_timezone)
   -> 0.0037s
== 20231214164411 AddCodeAddedAtToOnboardingProgresses: migrated (0.0158s) ====
Rollback
== 20231214164411 AddCodeAddedAtToOnboardingProgresses: reverting =============
-- remove_column(:onboarding_progresses, :code_added_at, :datetime_with_timezone)
   -> 0.0035s
== 20231214164411 AddCodeAddedAtToOnboardingProgresses: reverted (0.0157s) ====

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #434237 (closed)

Edited by Serhii Yarynovskyi

Merge request reports