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

Add guest_meeting_registration gem and execute install steps #297

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gem 'decidim-templates', DECIDIM_VERSION
gem 'decidim-anonymous_codes', github: 'openpoke/decidim-module-anonymous_codes'
gem 'decidim-antivirus', github: 'mainio/decidim-module-antivirus', branch: 'release/0.27-stable'
gem 'decidim-decidim_awesome', github: 'decidim-ice/decidim-module-decidim_awesome'
gem 'decidim-guest_meeting_registration', github: 'alecslupu-pfa/guest-meeting-registration', branch: 'release/0.27-stable'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Rubocop] reported by reviewdog 🐶
[Correctable] Layout/LineLength: Line is too long. [123/120]

gem 'decidim-jitsi_meetings', github: 'puzzle/decidim-module-jitsi-meetings', branch: DECIDIM_VERSION
gem 'decidim-question_captcha', github: 'OpenSourcePolitics/decidim-module-question_captcha', branch: 'release/0.27-stable'
gem 'decidim-reporting_proposals', github: 'openpoke/decidim-module-reporting-proposals', branch: 'main'
Expand Down
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ GIT
decidim-admin (>= 0.27, < 0.28)
decidim-core (>= 0.27, < 0.28)

GIT
remote: https://github.com/alecslupu-pfa/guest-meeting-registration.git
revision: 9610e6da08535083e4abb3db185a834aba9d3456
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.git
revision: 2a34c57248150d7c7eae77bd1ba7c64f211d60b7
Expand Down Expand Up @@ -1019,6 +1029,7 @@ DEPENDENCIES
decidim-conferences (= 0.27.5)
decidim-decidim_awesome!
decidim-dev (= 0.27.5)
decidim-guest_meeting_registration!
decidim-initiatives (= 0.27.5)
decidim-jitsi_meetings!
decidim-navigation_maps!
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
37 changes: 36 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_06_25_091114) do
ActiveRecord::Schema.define(version: 2024_10_22_104754) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
enable_extension "pg_trgm"
enable_extension "plpgsql"
enable_extension "fuzzystrmatch"
enable_extension "postgis_tiger_geocoder"
enable_extension "postgis_topology"

create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
Expand Down Expand Up @@ -858,6 +861,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_hashtags", force: :cascade do |t|
t.bigint "decidim_organization_id"
t.string "name"
Expand Down Expand Up @@ -2295,6 +2327,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_identities", "decidim_organizations"
add_foreign_key "decidim_initiatives_settings", "decidim_organizations"
add_foreign_key "decidim_navigation_maps_blueprint_areas", "decidim_navigation_maps_blueprints"
Expand Down
Loading