mumuki-domain 8.4.0 → 9.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 945a8212dc38bd06d9ce3a7ba70f58fd5ea3fc2ae7076c81727ef2bdfee05979
4
- data.tar.gz: 79dbe9e02af53932d78b403777c3d03f92dff40844047ce40052a43dbbb361c4
3
+ metadata.gz: 5db86a9ea25dfdc219c9555b5c116413352e4fb080af117985e93ca5bb2c4889
4
+ data.tar.gz: '0913300a86ea7880f65997a6bcbf418023c74a3f58dac21361d286d69e1ab528'
5
5
  SHA512:
6
- metadata.gz: a59255b4f0dcf4bb464dea4d0c1efb86cd28b3ce85b7e3f0ba2d74ad735505d82d795425bc704dd7b8e2e0bcb45a4a6ebd6e26d6f942971b4149ee0b09dd21c2
7
- data.tar.gz: a904b0a41d0c04b09f3dc5afbc4abaf4a228112f57d4f7279798be91a9405b2a9a5bf4d7f0962c55773f3be0add354fecd5ba0e5cc0d5c2e3c91c2b3cea3a38f
6
+ metadata.gz: 6ae200ee06fe4ef89e24836256fe3be80c99b53d24daa1e6056630f8daf78e55ad391b88b919f07db12e62365f28222c68a7e472ad91b37266bb340ef15e4141
7
+ data.tar.gz: 91aceaf7b84e5c014d9d7f600a4a8b205956427615c01fbbca6a581a3f572034aa99a9b12c0f323df21e1772870998ab6c220859361dcc244f22f3f2d95e16a0
@@ -129,6 +129,12 @@ class ApplicationRecord < ActiveRecord::Base
129
129
  end
130
130
  end
131
131
 
132
+ def self.enum_prefixed_translations_for(selector)
133
+ send(selector.to_s.pluralize).map do |key, _|
134
+ [I18n.t("#{selector}_#{key}", default: key.to_sym), key]
135
+ end
136
+ end
137
+
132
138
  private
133
139
 
134
140
  def raise_foreign_key_error!
data/app/models/book.rb CHANGED
@@ -18,7 +18,7 @@ class Book < Content
18
18
  end
19
19
 
20
20
  def discussions_in_organization(organization = Organization.current)
21
- Discussion.where(organization: organization).includes(exercise: [:language, :guide])
21
+ Discussion.where(organization: organization, item: organization.exercises).includes(exercise: [:language, :guide])
22
22
  end
23
23
 
24
24
  def first_chapter
@@ -0,0 +1,29 @@
1
+ class Certificate < ApplicationRecord
2
+ include WithGeneratedCode
3
+
4
+ belongs_to :user
5
+ belongs_to :certificate_program
6
+
7
+ has_one :organization, through: :certificate_program
8
+
9
+ delegate :title, :description, :template_html_erb, :background_image_url, to: :certificate_program
10
+
11
+ def self.code_size
12
+ 12
13
+ end
14
+
15
+ def filename
16
+ "#{title.parameterize.underscore}.pdf"
17
+ end
18
+
19
+ def template_locals
20
+ { user: user,
21
+ certificate_program: certificate_program,
22
+ organization: organization,
23
+ certificate: self }
24
+ end
25
+
26
+ def for_user?(user)
27
+ self.user == user
28
+ end
29
+ end
@@ -0,0 +1,42 @@
1
+ class CertificateProgram < ApplicationRecord
2
+ belongs_to :organization
3
+ has_many :certificates
4
+
5
+ def friendly
6
+ title
7
+ end
8
+
9
+ def template_html_erb
10
+ self[:template_html_erb] ||= <<HTML
11
+ <style>
12
+ .qr-code {
13
+ bottom: 5px;
14
+ right: 5px;
15
+ height: 15mm;
16
+ width: 15mm;
17
+ }
18
+ .name {
19
+ position: absolute;
20
+ width: 100%;
21
+ top: 380px;
22
+ text-align: center;
23
+ }
24
+ </style>
25
+ <!-- You can use interpolations like --
26
+ <%#= certificate.start_date %>
27
+ <%#= certificate.end_date %>
28
+ <%#= user.formal_first_name %>
29
+ <%#= user.formal_last_name %>
30
+ <%#= user.formal_full_name %>
31
+ <%#= certificate_program.title %>
32
+ <%#= certificate_program.description %>
33
+ <%#= organization.name %>
34
+ <%#= organization.display_name %>
35
+ -- -->
36
+ <section class="name">
37
+ <h1><%= user.formal_full_name %></h1>
38
+ </section>
39
+ HTML
40
+ end
41
+
42
+ end
@@ -19,9 +19,8 @@ module WithAssignments
19
19
  end
20
20
 
21
21
  # TODO: When the organization is used in this one, please change guide.pending_exercises
22
- # TODO: Please do the same on WithAssignmentsBatch
23
- def find_assignment_for(user, _organization)
24
- assignments.find_by(submitter: user)
22
+ def find_assignment_for(user, organization)
23
+ assignments.find_by(submitter: user, organization: organization)
25
24
  end
26
25
 
27
26
  def status_for(user)
@@ -4,13 +4,13 @@
4
4
  module WithAssignmentsBatch
5
5
  extend ActiveSupport::Concern
6
6
 
7
- def find_assignments_for(user, _organization = Organization.current, &block)
7
+ def find_assignments_for(user, organization = Organization.current, &block)
8
8
  block = block_given? ? block : lambda { |it, _e| it }
9
9
 
10
10
  return exercises.map { |it| block.call nil, it } unless user
11
11
 
12
12
  pairs = exercises.map { |it| [it.id, [nil, it]] }.to_h
13
- Assignment.where(submitter: user, exercise: exercises).each do |it|
13
+ Assignment.where(submitter: user, organization: organization, exercise: exercises).each do |it|
14
14
  pairs[it.exercise_id][0] = it
15
15
  end
16
16
 
@@ -0,0 +1,19 @@
1
+ module WithGeneratedCode
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ validates_uniqueness_of :code
6
+
7
+ defaults do
8
+ self.code ||= self.class.generate_code
9
+ end
10
+
11
+ required :code_size
12
+ end
13
+
14
+ class_methods do
15
+ def generate_code
16
+ SecureRandom.urlsafe_base64 code_size
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ module WithNotifications
2
+ extend ActiveSupport::Concern
3
+
4
+ def unread_messages
5
+ messages_in_organization.where read: false
6
+ end
7
+
8
+ def unread_notifications
9
+ # TODO: message and discussion should trigger a notification instead of being one
10
+ all = notifications.where(read: false) + unread_messages + unread_discussions
11
+ all.sort_by(&:created_at).reverse
12
+ end
13
+
14
+ def read_notification!(target)
15
+ notifications.find_by(target: target)&.mark_as_read!
16
+ end
17
+ end
data/app/models/course.rb CHANGED
@@ -3,7 +3,7 @@ class Course < ApplicationRecord
3
3
  include Mumuki::Domain::Helpers::Course
4
4
  include Mumuki::Domain::Area
5
5
 
6
- validates_presence_of :slug, :shifts, :code, :days, :period, :description, :organization_id
6
+ validates_presence_of :slug, :period, :code, :description, :organization_id
7
7
  validates_uniqueness_of :slug
8
8
  belongs_to :organization
9
9
 
@@ -35,6 +35,10 @@ class Course < ApplicationRecord
35
35
  end
36
36
  end
37
37
 
38
+ def canonical_code
39
+ "#{period}-#{code}".downcase
40
+ end
41
+
38
42
  def closed?
39
43
  current_invitation.blank? || current_invitation.expired?
40
44
  end
@@ -48,6 +48,10 @@ class Discussion < ApplicationRecord
48
48
  nil
49
49
  end
50
50
 
51
+ def target
52
+ self
53
+ end
54
+
51
55
  def used_in?(organization)
52
56
  organization == self.organization
53
57
  end
@@ -1,7 +1,10 @@
1
1
  class ExamAuthorizationRequest < ApplicationRecord
2
+ include TerminalNavigation
3
+
2
4
  belongs_to :exam
3
5
  belongs_to :user
4
6
  belongs_to :organization
7
+ belongs_to :exam_registration
5
8
 
6
9
  enum status: %i(pending approved rejected)
7
10
 
@@ -11,6 +14,10 @@ class ExamAuthorizationRequest < ApplicationRecord
11
14
  exam.authorize! user if approved?
12
15
  end
13
16
 
17
+ def name
18
+ exam_registration.description
19
+ end
20
+
14
21
  private
15
22
 
16
23
  def notify_user!
@@ -1,9 +1,10 @@
1
1
  class ExamRegistration < ApplicationRecord
2
2
  include WithTimedEnablement
3
+ include TerminalNavigation
3
4
 
4
5
  belongs_to :organization
5
6
  has_and_belongs_to_many :exams
6
- has_many :authorization_requests, class_name: 'ExamAuthorizationRequest', through: :exams
7
+ has_many :authorization_requests, class_name: 'ExamAuthorizationRequest'
7
8
 
8
9
  enum authorization_criterion_type: %i(none passed_exercises), _prefix: :authorization_criterion
9
10
 
@@ -11,6 +12,8 @@ class ExamRegistration < ApplicationRecord
11
12
 
12
13
  delegate :meets_authorization_criteria?, :process_request!, to: :authorization_criterion
13
14
 
15
+ alias_attribute :name, :description
16
+
14
17
  def authorization_criterion
15
18
  @authorization_criterion ||= ExamRegistration::AuthorizationCriterion.parse(authorization_criterion_type, authorization_criterion_value)
16
19
  end
@@ -30,6 +33,11 @@ class ExamRegistration < ApplicationRecord
30
33
  end
31
34
  end
32
35
 
36
+ def authorization_request_for(user)
37
+ authorization_requests.find_by(user: user) ||
38
+ ExamAuthorizationRequest.new(exam_registration: self, organization: organization)
39
+ end
40
+
33
41
  private
34
42
 
35
43
  def notify_user!(user)
@@ -1,14 +1,10 @@
1
1
  class Invitation < ApplicationRecord
2
- include Mumuki::Domain::Syncable
2
+ include Mumuki::Domain::Syncable,
3
+ WithGeneratedCode
3
4
 
4
5
  belongs_to :course
5
6
 
6
7
  validate :ensure_not_expired, on: :create
7
- validates_uniqueness_of :code
8
-
9
- defaults do
10
- self.code ||= self.class.generate_code
11
- end
12
8
 
13
9
  def ensure_not_expired
14
10
  errors.add(:base, :invitation_expired) if expired?
@@ -51,12 +47,12 @@ class Invitation < ApplicationRecord
51
47
  self
52
48
  end
53
49
 
54
- def self.generate_code
55
- SecureRandom.urlsafe_base64 4
56
- end
57
-
58
50
  private
59
51
 
52
+ def self.code_size
53
+ 4
54
+ end
55
+
60
56
  def course_name
61
57
  course.name
62
58
  end
@@ -70,6 +70,10 @@ class Message < ApplicationRecord
70
70
  from_initiator? && !not_actually_a_question?
71
71
  end
72
72
 
73
+ def target
74
+ self
75
+ end
76
+
73
77
  def self.parse_json(json)
74
78
  message = json.delete 'message'
75
79
  json
@@ -2,4 +2,8 @@ class Notification < ApplicationRecord
2
2
  belongs_to :user
3
3
  belongs_to :organization
4
4
  belongs_to :target, polymorphic: true
5
+
6
+ def mark_as_read!
7
+ update read: true
8
+ end
5
9
  end
@@ -11,7 +11,7 @@ class Organization < ApplicationRecord
11
11
  serialize :settings, Mumuki::Domain::Organization::Settings
12
12
  serialize :theme, Mumuki::Domain::Organization::Theme
13
13
 
14
- markdown_on :description, :display_description, :page_description
14
+ markdown_on :description, :display_description, :page_description, :faqs
15
15
  teaser_on :display_description
16
16
 
17
17
  validate :ensure_consistent_public_login
@@ -138,6 +138,10 @@ class Organization < ApplicationRecord
138
138
  self[:progressive_display_lookahead] = lookahead.to_i.positive? ? lookahead : nil
139
139
  end
140
140
 
141
+ def activity_start_date(default_date)
142
+ [default_date, in_preparation_until&.to_date].compact.max
143
+ end
144
+
141
145
  # ==============
142
146
  # Display fields
143
147
  # ==============
data/app/models/user.rb CHANGED
@@ -3,6 +3,7 @@ class User < ApplicationRecord
3
3
  include WithProfile,
4
4
  WithUserNavigation,
5
5
  WithReminders,
6
+ WithNotifications,
6
7
  WithDiscussionCreation,
7
8
  Awardee,
8
9
  Disabling,
@@ -34,6 +35,8 @@ class User < ApplicationRecord
34
35
 
35
36
  has_many :exams, through: :exam_authorizations
36
37
 
38
+ has_many :certificates
39
+
37
40
  enum gender: %i(female male other unspecified)
38
41
  belongs_to :avatar, polymorphic: true, optional: true
39
42
 
@@ -51,6 +54,10 @@ class User < ApplicationRecord
51
54
  last_guide.try(:lesson)
52
55
  end
53
56
 
57
+ def messages_in_organization(organization = Organization.current)
58
+ messages.where('assignments.organization': organization)
59
+ end
60
+
54
61
  def passed_submissions_count_in(organization)
55
62
  assignments.where(top_submission_status: Mumuki::Domain::Status::Submission::Passed.to_i, organization: organization).count
56
63
  end
@@ -75,10 +82,6 @@ class User < ApplicationRecord
75
82
  assignments.where(status: Mumuki::Domain::Status::Submission::Passed.to_i)
76
83
  end
77
84
 
78
- def unread_messages
79
- messages.where read: false
80
- end
81
-
82
85
  def visit!(organization)
83
86
  update!(last_organization: organization) if organization != last_organization
84
87
  end
@@ -278,6 +281,26 @@ class User < ApplicationRecord
278
281
  end
279
282
  end
280
283
 
284
+ def formal_first_name
285
+ verified_first_name || first_name
286
+ end
287
+
288
+ def formal_last_name
289
+ verified_last_name || last_name
290
+ end
291
+
292
+ def formal_full_name
293
+ "#{formal_first_name} #{formal_last_name}"
294
+ end
295
+
296
+ def certificates_in_organization(organization = Organization.current)
297
+ certificates.where certificate_program: CertificateProgram.where(organization: organization)
298
+ end
299
+
300
+ def certificated_in?(certificate_program)
301
+ certificates.where(certificate_program: certificate_program).exists?
302
+ end
303
+
281
304
  private
282
305
 
283
306
  def welcome_to_new_organizations!
@@ -10,7 +10,39 @@ class UserStats < ApplicationRecord
10
10
  self.stats_for(user).exp
11
11
  end
12
12
 
13
+ def activity(date_range = nil)
14
+ date_filter = { submitted_at: date_range }.compact
15
+ {
16
+ exercises: {
17
+ solved_count: organization_exercises
18
+ .joins(:assignments)
19
+ .where(assignments: { top_submission_status: [:passed, :skipped], submitter: user }.merge(date_filter))
20
+ .count,
21
+ count: organization_exercises.count},
22
+
23
+ messages: messages_in_discussions_count(date_range)
24
+ }
25
+ end
26
+
13
27
  def add_exp!(points)
14
28
  self.exp += points
15
29
  end
30
+
31
+ private
32
+
33
+ def messages_in_discussions_count(date_range = nil)
34
+ date_filter = { date: date_range }.compact
35
+ result = Message.joins(:discussion)
36
+ .where({sender: user.uid, discussions: { organization: organization }}.merge(date_filter))
37
+ .group(:approved)
38
+ .count
39
+ unapproved = result[false] || 0
40
+ approved = result[true] || 0
41
+
42
+ { count: unapproved + approved, approved: approved }
43
+ end
44
+
45
+ def organization_exercises
46
+ @organization_exercises ||= organization.exercises
47
+ end
16
48
  end
@@ -0,0 +1,13 @@
1
+ class CreateCertificatePrograms < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :certificate_programs do |t|
4
+ t.string :title
5
+ t.string :template_html_erb
6
+ t.text :description
7
+ t.string :background_image_url
8
+ t.references :organization, index: true
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class CreateCertificates < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :certificates do |t|
4
+ t.references :user, index: true
5
+ t.references :certificate_program, index: true
6
+ t.datetime :start_date
7
+ t.datetime :end_date
8
+ t.string :code
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ class AddFAQsToOrganizations < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :organizations, :faqs, :text
4
+ end
5
+ end
@@ -2,6 +2,8 @@ require_relative './factories/api_client_factory'
2
2
  require_relative './factories/assignments_factory'
3
3
  require_relative './factories/avatar_factory'
4
4
  require_relative './factories/book_factory'
5
+ require_relative './factories/certificate_factory'
6
+ require_relative './factories/certificate_program_factory'
5
7
  require_relative './factories/chapter_factory'
6
8
  require_relative './factories/complement_factory'
7
9
  require_relative './factories/course_factory'
@@ -16,6 +18,7 @@ require_relative './factories/lesson_factory'
16
18
  require_relative './factories/login_settings_factory'
17
19
  require_relative './factories/medal_factory'
18
20
  require_relative './factories/message_factory'
21
+ require_relative './factories/notification_factory'
19
22
  require_relative './factories/organization_factory'
20
23
  require_relative './factories/term_factory'
21
24
  require_relative './factories/topic_factory'
@@ -4,4 +4,17 @@ FactoryBot.define do
4
4
  description { Faker::Lorem.sentence(word_count: 30) }
5
5
  slug { "mumuki/mumuki-test-book-#{SecureRandom.uuid}" }
6
6
  end
7
+
8
+ factory :book_with_full_tree, parent: :book do
9
+ transient do
10
+ children_factor { 3 }
11
+ exercises { create_list(:exercise, children_factor) }
12
+ lessons { create_list(:lesson, children_factor, exercises: exercises) }
13
+ chapters { create_list(:chapter, children_factor, lessons: lessons) }
14
+ end
15
+
16
+ after(:build) do |book, evaluator|
17
+ book.chapters = evaluator.chapters
18
+ end
19
+ end
7
20
  end
@@ -0,0 +1,8 @@
1
+ FactoryBot.define do
2
+ factory :certificate do
3
+ start_date { 1.month.ago }
4
+ end_date { 1.minute.ago }
5
+ user { build :user, first_name: 'Jane', last_name: 'Doe' }
6
+ certificate_program { build :certificate_program }
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ FactoryBot.define do
2
+ factory :certificate_program do
3
+ title { 'Test' }
4
+ description { 'Certificate program to test' }
5
+ organization { Organization.current }
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ FactoryBot.define do
2
+ factory :notification do
3
+ organization { Organization.current }
4
+ end
5
+ end
@@ -29,7 +29,8 @@ FactoryBot.define do
29
29
  book { create(:book, name: 'test', slug: 'mumuki/mumuki-the-book') }
30
30
  end
31
31
 
32
- factory :another_test_organization, parent: :test_organization, traits: [:skip_unique_name_validation] do
32
+ factory :another_test_organization, parent: :test_organization do
33
+ name { 'another-test' }
33
34
  book { create(:book, name: 'another-test', slug: 'mumuki/mumuki-another-book') }
34
35
  end
35
36
 
@@ -8,6 +8,6 @@ module Mumuki::Domain::Helpers::Course
8
8
  ## API Exposure
9
9
 
10
10
  def to_param
11
- slug
11
+ canonical_code
12
12
  end
13
13
  end
@@ -90,6 +90,9 @@ module Mumuki::Domain
90
90
  def visit!(*)
91
91
  end
92
92
 
93
+ def currently_in_exam?
94
+ false
95
+ end
93
96
  # ========
94
97
  # Progress
95
98
  # ========
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '8.4.0'
3
+ VERSION = '9.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.0
4
+ version: 9.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '6.1'
131
+ version: '7.0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '6.1'
138
+ version: '7.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: mumukit-sync
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +170,28 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '5.0'
173
+ version: '6.0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '5.0'
180
+ version: '6.0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: mumukit-inspection
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '5.1'
187
+ version: '6.0'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '5.1'
194
+ version: '6.0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: sprockets
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -249,6 +249,8 @@ files:
249
249
  - app/models/assignment.rb
250
250
  - app/models/avatar.rb
251
251
  - app/models/book.rb
252
+ - app/models/certificate.rb
253
+ - app/models/certificate_program.rb
252
254
  - app/models/chapter.rb
253
255
  - app/models/complement.rb
254
256
  - app/models/concerns/assistable.rb
@@ -280,12 +282,14 @@ files:
280
282
  - app/models/concerns/with_discussions.rb
281
283
  - app/models/concerns/with_editor.rb
282
284
  - app/models/concerns/with_expectations.rb
285
+ - app/models/concerns/with_generated_code.rb
283
286
  - app/models/concerns/with_language.rb
284
287
  - app/models/concerns/with_layout.rb
285
288
  - app/models/concerns/with_locale.rb
286
289
  - app/models/concerns/with_medal.rb
287
290
  - app/models/concerns/with_messages.rb
288
291
  - app/models/concerns/with_name.rb
292
+ - app/models/concerns/with_notifications.rb
289
293
  - app/models/concerns/with_number.rb
290
294
  - app/models/concerns/with_preferences.rb
291
295
  - app/models/concerns/with_profile.rb
@@ -650,7 +654,10 @@ files:
650
654
  - db/migrate/20210118180941_create_exam_authorization_request.rb
651
655
  - db/migrate/20210118194904_create_notification.rb
652
656
  - db/migrate/20210119160440_add_prevent_manual_evaluation_content_to_organizations.rb
657
+ - db/migrate/20210119174504_create_certificate_programs.rb
658
+ - db/migrate/20210119174835_create_certificates.rb
653
659
  - db/migrate/20210119190204_create_exam_registration_exam_join_table.rb
660
+ - db/migrate/20210302181654_add_faqs_to_organizations.rb
654
661
  - lib/mumuki/domain.rb
655
662
  - lib/mumuki/domain/area.rb
656
663
  - lib/mumuki/domain/engine.rb
@@ -679,6 +686,8 @@ files:
679
686
  - lib/mumuki/domain/factories/assignments_factory.rb
680
687
  - lib/mumuki/domain/factories/avatar_factory.rb
681
688
  - lib/mumuki/domain/factories/book_factory.rb
689
+ - lib/mumuki/domain/factories/certificate_factory.rb
690
+ - lib/mumuki/domain/factories/certificate_program_factory.rb
682
691
  - lib/mumuki/domain/factories/chapter_factory.rb
683
692
  - lib/mumuki/domain/factories/complement_factory.rb
684
693
  - lib/mumuki/domain/factories/course_factory.rb
@@ -693,6 +702,7 @@ files:
693
702
  - lib/mumuki/domain/factories/login_settings_factory.rb
694
703
  - lib/mumuki/domain/factories/medal_factory.rb
695
704
  - lib/mumuki/domain/factories/message_factory.rb
705
+ - lib/mumuki/domain/factories/notification_factory.rb
696
706
  - lib/mumuki/domain/factories/organization_factory.rb
697
707
  - lib/mumuki/domain/factories/term_factory.rb
698
708
  - lib/mumuki/domain/factories/topic_factory.rb