Skip to content

Commit

Permalink
Install GuestMeetingRegistration module (#615)
Browse files Browse the repository at this point in the history
* Install GuestMeetingRegistration module

* Update registration module
  • Loading branch information
alecslupu authored Oct 30, 2024
1 parent 73b3c6f commit be3a496
Show file tree
Hide file tree
Showing 15 changed files with 944 additions and 508 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ gem "decidim-spam_detection", git: "https://github.com/OpenSourcePolitics/decidi
gem "decidim-survey_multiple_answers", git: "https://github.com/OpenSourcePolitics/decidim-module-survey_multiple_answers"
gem "decidim-term_customizer", git: "https://github.com/OpenSourcePolitics/decidim-module-term_customizer.git", branch: "fix/email_with_precompile"

gem "decidim-guest_meeting_registration", git: "https://github.com/alecslupu-pfa/guest-meeting-registration.git", branch: DECIDIM_BRANCH, ref: "532de9e"
# Omniauth gems
gem "omniauth-france_connect", git: "https://github.com/OpenSourcePolitics/omniauth-france_connect"
gem "omniauth_openid_connect"
Expand Down
12 changes: 12 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@ GIT
decidim-proposals (~> 0.27)
deface (>= 1.9)

GIT
remote: https://github.com/alecslupu-pfa/guest-meeting-registration.git
revision: 532de9e87ecb8b2959c0013c6408d4c092abce87
ref: 532de9e
branch: release/0.27-stable
specs:
decidim-guest_meeting_registration (0.27.7)
decidim-core (~> 0.27)
decidim-meetings (~> 0.27)
deface (>= 1.9)

GIT
remote: https://github.com/decidim-ice/decidim-module-decidim_awesome
revision: 51bc593da8fb72d14c2e5b5df55dbb686be1fbbe
Expand Down Expand Up @@ -1181,6 +1192,7 @@ DEPENDENCIES
decidim-extra_user_fields!
decidim-friendly_signup!
decidim-gallery!
decidim-guest_meeting_registration!
decidim-half_signup!
decidim-homepage_interactive_map!
decidim-initiatives (~> 0.27.0)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021907)

class CreateGuestMeetingRegistrationSettings < ActiveRecord::Migration[6.0]
def change
create_table :decidim_guest_meeting_registration_settings do |t|
t.boolean :enable_guest_registration, default: false
t.references :decidim_organization, foreign_key: true, index: { name: :index_guest_meeting_registration_settings_on_organization_id }

t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021908)

class AddConfirmationSettings < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_settings, :enable_registration_confirmation, :boolean, default: false, after: :enable_guest_registration
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021909)

class CreateGuestMeetingRegistrationRegistrationRequests < ActiveRecord::Migration[6.0]
def change
create_table :decidim_guest_meeting_registration_registration_requests do |t|
t.references :decidim_organization, foreign_key: true, index: { name: :index_guest_meeting_registration_rr_on_organization_id }
t.references :decidim_meetings_meetings, foreign_key: true, index: { name: :index_guest_meeting_registration_mm_on_organization_id }
t.integer :decidim_user_id, index: { name: :index_guest_meeting_registration_uid_on_organization_id }

t.jsonb :form_data
t.string :email, null: false
t.string :name

t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021910)

class AddConfirmationToRegisterRequests < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_registration_requests, :confirmation_token, :string, after: :name
add_column :decidim_guest_meeting_registration_registration_requests, :confirmed_at, :datetime, after: :confirmation_token
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021911)

class AddCancellationSettings < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_settings, :enable_cancellation, :boolean, default: false, after: :enable_guest_registration
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021912)

class AddCancellationToRegisterRequests < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_registration_requests, :cancellation_token, :string, after: :name
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021913)

class AddSessionTokenToRegisterRequests < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_registration_requests, :session_token, :string, after: :name, unique: true
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240820021914)

class AddDisableNormalAccountToRegisterSettings < ActiveRecord::Migration[6.0]
def change
add_column :decidim_guest_meeting_registration_settings, :disable_account_confirmation, :boolean, default: false
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true
# This migration comes from decidim_guest_meeting_registration (originally 20240926224810)

class AddFieldsToMeetings < ActiveRecord::Migration[6.0]
def change
add_column :decidim_meetings_meetings, :enable_guest_registration, :boolean, default: false
add_column :decidim_meetings_meetings, :enable_registration_confirmation, :boolean, default: false
add_column :decidim_meetings_meetings, :enable_cancellation, :boolean, default: false
add_column :decidim_meetings_meetings, :disable_account_confirmation, :boolean, default: false
end
end
39 changes: 38 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_10_10_092645) do
ActiveRecord::Schema.define(version: 2024_10_28_094242) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
enable_extension "pg_trgm"
Expand Down Expand Up @@ -881,6 +882,35 @@
t.index ["user_id"], name: "index_decidim_gamification_badge_scores_on_user_id"
end

create_table "decidim_guest_meeting_registration_registration_requests", force: :cascade do |t|
t.bigint "decidim_organization_id"
t.bigint "decidim_meetings_meetings_id"
t.integer "decidim_user_id"
t.jsonb "form_data"
t.string "email", null: false
t.string "name"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "confirmation_token"
t.datetime "confirmed_at"
t.string "cancellation_token"
t.string "session_token"
t.index ["decidim_meetings_meetings_id"], name: "index_guest_meeting_registration_mm_on_organization_id"
t.index ["decidim_organization_id"], name: "index_guest_meeting_registration_rr_on_organization_id"
t.index ["decidim_user_id"], name: "index_guest_meeting_registration_uid_on_organization_id"
end

create_table "decidim_guest_meeting_registration_settings", force: :cascade do |t|
t.boolean "enable_guest_registration", default: false
t.bigint "decidim_organization_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.boolean "enable_registration_confirmation", default: false
t.boolean "enable_cancellation", default: false
t.boolean "disable_account_confirmation", default: false
t.index ["decidim_organization_id"], name: "index_guest_meeting_registration_settings_on_organization_id"
end

create_table "decidim_half_signup_auth_settings", force: :cascade do |t|
t.boolean "enable_partial_sms_signup", default: false
t.boolean "enable_partial_email_signup", default: false
Expand Down Expand Up @@ -1138,6 +1168,10 @@
t.string "state"
t.integer "iframe_access_level", default: 0
t.integer "iframe_embed_type", default: 0
t.boolean "enable_guest_registration", default: false
t.boolean "enable_registration_confirmation", default: false
t.boolean "enable_cancellation", default: false
t.boolean "disable_account_confirmation", default: false
t.index ["decidim_author_id", "decidim_author_type"], name: "index_decidim_meetings_meetings_on_author"
t.index ["decidim_author_id"], name: "index_decidim_meetings_meetings_on_decidim_author_id"
t.index ["decidim_component_id"], name: "index_decidim_meetings_meetings_on_decidim_component_id"
Expand Down Expand Up @@ -2137,6 +2171,9 @@
add_foreign_key "decidim_debates_debates", "decidim_scopes"
add_foreign_key "decidim_editor_images", "decidim_organizations"
add_foreign_key "decidim_editor_images", "decidim_users", column: "decidim_author_id"
add_foreign_key "decidim_guest_meeting_registration_registration_requests", "decidim_meetings_meetings", column: "decidim_meetings_meetings_id"
add_foreign_key "decidim_guest_meeting_registration_registration_requests", "decidim_organizations"
add_foreign_key "decidim_guest_meeting_registration_settings", "decidim_organizations"
add_foreign_key "decidim_half_signup_auth_settings", "decidim_organizations"
add_foreign_key "decidim_identities", "decidim_organizations"
add_foreign_key "decidim_initiatives_settings", "decidim_organizations"
Expand Down
Loading

0 comments on commit be3a496

Please sign in to comment.