effective_events 2.32.0 → 2.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3223873d60e5a87ebb821f5391790d9bb6dda6608fc6ba41486a86cd7493213e
4
- data.tar.gz: 06530ad6b719394263b1ea04a390fe005805a0dcadd958366be172474cc0796e
3
+ metadata.gz: 68169fa558aa77fd2b9ea8194f8017091fde10073004fbb596f80dcb22e6d29b
4
+ data.tar.gz: c9197e50d7dbe855011c92fb96e0c93bc0a0491ce673b2e12d26d12919cd2b1c
5
5
  SHA512:
6
- metadata.gz: e87489f886cb481cba03048e308742d0491eb91e908016c8e4e6320a41ea7024aae5b4b923367f30f30695d05ac40145a52d551ef4d5389324ab197c248fcf60
7
- data.tar.gz: 624814beee258a2d25176ab2635f6b3f8747702667c58a78bd14686e4cce7905583b54659a78381e4abf2dc57020bb5dc44a451b2aecaaa15513b76a1000a312
6
+ metadata.gz: 4149adf30e8f5dfd1af424d0da684eda25600d911ee521a7b701e34046a187a8694696eed4d5b22455759aae7e9d106d16265e5051af4d3c4ac39a73387b89c9
7
+ data.tar.gz: a831818688445301584adee6c60c600986a7ae47a2308e51738ef13cac236d3db39bca9709c999280cb630962941e3e20a099b675ced621aff2cd5a0e5b8d826
@@ -22,7 +22,7 @@ module Admin
22
22
  if attributes[:event_id]
23
23
  col :event_product, search: Effective::EventProduct.where(event: event).all
24
24
  else
25
- col :event_product, search: :string
25
+ col :event_product
26
26
  end
27
27
 
28
28
  col :purchased_order, visible: false
@@ -11,7 +11,7 @@ module Admin
11
11
  end
12
12
 
13
13
  datatable do
14
- order :registered_at, :asc
14
+ order :registered_at, :desc
15
15
 
16
16
  col :updated_at, visible: false
17
17
  col :created_at, visible: false
@@ -33,7 +33,7 @@ module Admin
33
33
  if attributes[:event_id]
34
34
  col :event_ticket, search: Effective::EventTicket.where(event: event).all
35
35
  else
36
- col :event_ticket, search: :string
36
+ col :event_ticket
37
37
  end
38
38
 
39
39
  col :waitlisted do |registrant|
@@ -10,11 +10,11 @@ class Admin::EffectiveEventRegistrationsDatatable < Effective::Datatable
10
10
  col :submitted_at, label: 'Submitted', as: :date
11
11
  col :completed_at, label: 'Completed', as: :date
12
12
 
13
- col :event, search: :string
13
+ col :event
14
14
  col :owner
15
15
 
16
- col :event_registrants, search: :string, visible: false
17
- col :event_addons, search: :string, visible: false
16
+ col :event_registrants, visible: false
17
+ col :event_addons, visible: false
18
18
  col :orders, label: 'Order'
19
19
 
20
20
  actions_col
@@ -48,17 +48,17 @@ module Admin
48
48
  col :delayed_payment_date, visible: false
49
49
 
50
50
  # These show too much information to be useful to admins, rely on the edit screen
51
- # col :event_tickets, search: :string
52
- # col :event_products, search: :string
53
- # col :event_registrants, search: :string
54
- # col :event_addons, search: :string
51
+ # col :event_tickets
52
+ # col :event_products
53
+ # col :event_registrants
54
+ # col :event_addons
55
55
 
56
56
  col :allow_blank_registrants, visible: false
57
57
  col :roles, visible: false
58
58
  col :authenticate_user, visible: false
59
59
 
60
60
  col :qb_item_names,
61
- search: { fuzzy: true, collection:Effective::ItemName.sorted.map(&:to_s) },
61
+ search: { fuzzy: true, collection: Effective::ItemName.sorted.map(&:to_s) },
62
62
  label: qb_item_names_label,
63
63
  visible: false do |event|
64
64
  event.qb_item_names.map { |qb_item_name| content_tag(:div, qb_item_name) } .join.html_safe
@@ -7,7 +7,7 @@ class EffectiveEventAddonsDatatable < Effective::Datatable
7
7
  "#{er.first_name} #{er.last_name}<br><small>#{mail_to(er.email)}</small>"
8
8
  end
9
9
 
10
- col :event_product, search: :string, label: 'Add-on' do |er|
10
+ col :event_product, label: 'Add-on' do |er|
11
11
  [
12
12
  er.event_product.to_s,
13
13
  (content_tag(:span, 'Archived', class: 'badge badge-warning') if er.event_product&.archived?)
@@ -7,7 +7,7 @@ class EffectiveEventRegistrantsDatatable < Effective::Datatable
7
7
  col :full_name, label: 'Name'
8
8
  col :id, visible: false
9
9
 
10
- col :event_ticket, search: :string, label: 'Ticket' do |er|
10
+ col :event_ticket, label: 'Ticket' do |er|
11
11
  [er.event_ticket.to_s, er.details.presence].compact.join('<br>').html_safe
12
12
  end
13
13
 
@@ -10,16 +10,16 @@ class EffectiveEventRegistrationsDatatable < Effective::Datatable
10
10
  er.submitted_at&.strftime('%F') || 'Incomplete'
11
11
  end
12
12
 
13
- col :event, search: :string do |er|
13
+ col :event do |er|
14
14
  link_to(er.event.to_s, effective_events.event_path(er.event))
15
15
  end
16
16
 
17
- col :owner, visible: false, search: :string
17
+ col :owner, visible: false
18
18
  col :status, visible: false
19
- col :event_registrants, label: 'Registrants', search: :string
19
+ col :event_registrants, label: 'Registrants'
20
20
 
21
- col :event_addons, label: 'Add-ons', search: :string
22
- col :orders, action: :show, visible: false, search: :string
21
+ col :event_addons, label: 'Add-ons'
22
+ col :orders, action: :show, visible: false
23
23
 
24
24
  actions_col(actions: []) do |er|
25
25
  if er.draft? || er.submitted?
@@ -30,7 +30,7 @@ class EffectiveEventsDatatable < Effective::Datatable
30
30
  end
31
31
  end
32
32
 
33
- col :event_tickets, visible: false, search: :string
33
+ col :event_tickets, visible: false
34
34
  col :early_bird_end_at, label: 'Early bird ends', visible: false
35
35
 
36
36
  actions_col show: false do |event|
@@ -49,9 +49,9 @@ module Effective
49
49
  registered_at :datetime # When the order is deferred or purchased
50
50
 
51
51
  # Question Responses
52
- question1 :text
53
- question2 :text
54
- question3 :text
52
+ response1 :text
53
+ response2 :text
54
+ response3 :text
55
55
 
56
56
  archived :boolean
57
57
 
@@ -292,6 +292,10 @@ module Effective
292
292
 
293
293
  # Admin update event registrant action
294
294
  def save_and_update_orders!
295
+ if event_ticket_id_changed?
296
+ assign_attributes(response1: nil, response2: nil, response3: nil)
297
+ end
298
+
295
299
  save!
296
300
 
297
301
  orders.reject(&:purchased?).each { |order| order.update_purchasable_attributes! }
@@ -64,6 +64,9 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
64
64
  t.timestamps
65
65
  end
66
66
 
67
+ add_index :event_tickets, :event_id, if_not_exists: true
68
+ add_index :event_tickets, :title, if_not_exists: true
69
+
67
70
  create_table :event_registrants do |t|
68
71
  t.integer :event_id
69
72
  t.integer :event_ticket_id
@@ -110,6 +113,12 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
110
113
  t.timestamps
111
114
  end
112
115
 
116
+ add_index :event_registrants, [:user_type, :user_id, :owner_type, :owner_id], if_not_exists: true
117
+ add_index :event_registrants, :event_registration_id, if_not_exists: true
118
+ add_index :event_registrants, :event_ticket_id, if_not_exists: true
119
+ add_index :event_registrants, :archived, if_not_exists: true
120
+ add_index :event_registrants, :registered_at, if_not_exists: true
121
+
113
122
  create_table :event_products do |t|
114
123
  t.integer :event_id
115
124
 
@@ -127,6 +136,9 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
127
136
  t.timestamps
128
137
  end
129
138
 
139
+ add_index :event_products, :event_id, if_not_exists: true
140
+ add_index :event_products, :position, if_not_exists: true
141
+
130
142
  create_table :event_addons do |t|
131
143
  t.integer :event_id
132
144
  t.integer :event_product_id
@@ -152,6 +164,9 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
152
164
  t.timestamps
153
165
  end
154
166
 
167
+ add_index :event_addons, :event_registration_id, if_not_exists: true
168
+ add_index :event_addons, :event_product_id, if_not_exists: true
169
+
155
170
  create_table :event_registrations do |t|
156
171
  t.string :token
157
172
 
@@ -178,6 +193,10 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
178
193
  t.datetime :created_at
179
194
  end
180
195
 
196
+ add_index :event_registrations, [:owner_id, :owner_type]
197
+ add_index :event_registrations, :status
198
+ add_index :event_registrations, :token
199
+
181
200
  create_table :event_ticket_selections do |t|
182
201
  t.integer :event_registration_id
183
202
  t.string :event_registration_type
@@ -189,9 +208,7 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
189
208
  t.datetime :created_at
190
209
  end
191
210
 
192
- add_index :event_registrations, [:owner_id, :owner_type]
193
- add_index :event_registrations, :status
194
- add_index :event_registrations, :token
211
+ add_index :event_ticket_selections, :event_registration_id, if_not_exists: true
195
212
 
196
213
  create_table :event_notifications do |t|
197
214
  t.references :event
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '2.32.0'.freeze
2
+ VERSION = '2.32.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.0
4
+ version: 2.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-22 00:00:00.000000000 Z
11
+ date: 2025-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails