Commit graph

675 commits

Author SHA1 Message Date
James Mason
43bef689fc Rubocop autocorrections 2018-11-16 09:06:05 -08:00
James Mason
b11001cdba Every campaign has an end.
Drop ahoy, because it's more trouble than it's worth. This means dropping
visits, campaigns, targets.

Campaigns are better run to analytics, such as:
* https://matomo.org/docs/tracking-campaigns/
* https://matomo.org/docs/tracking-goals-web-analytics/
* https://support.google.com/analytics/answer/1012040?hl=en
2018-10-16 21:34:04 +02:00
Henne Vogelsang
fb2612ecaf Simplify set_week callbacks
Changes to :week are already ignored py paper_trail. No need to wrap this in a
`without_versioning`. Also drop the reader in `Registration` and the tests. Why
write this into the DB but never read it again? Why test standard
ruby/activerecord stuff.
2018-09-04 21:12:46 +02:00
James Mason
64ceaf50f4 Update Admin user datatables to use AJAX 2018-08-30 16:50:42 +02:00
Stella Rouzi
9908f88570 Add survey with target after_event 2018-07-03 08:46:15 +03:00
Stella Rouzi
683f62a27c Add more options for surveys
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00
Stella Rouzi
c278e547ce Add survey related tests 2018-07-03 08:46:15 +03:00
Stella Rouzi
9f3c0eff5d Add surveys; custom generated by admins
Available during registration or after conference

Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
2018-07-03 08:46:15 +03:00
Stella Rouzi
3bb73f27cf Fix ahoy tracking and visits 2018-07-02 09:42:40 -06:00
James Mason
24396d35c2 Use Ruby safe navigation over Rails try
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/SafeNavigation
2018-06-01 09:15:57 -07:00
Stella Rouzi
d01d15ba5e Update paper_trail, show ticket price with currency in versions 2018-06-01 09:05:21 -07:00
Zach Kemp
3f2f35283c improve template readability 2018-05-09 10:07:08 -07:00
Zach Kemp
7d5d935a65 optimize queries 2018-05-09 10:07:08 -07:00
James Mason
6d31dfeef4 Add frozen_string_literal magic comment
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
2018-05-09 06:54:26 -07:00
James Mason
03ef28e74d Require code of conduct acceptance on registration 2018-05-08 13:23:00 +02:00
James Mason
95196c7f80 Include code of conduct on conference 2018-05-08 13:23:00 +02:00
James Mason
217ec1a46f Show code of conduct on organizations 2018-05-08 13:23:00 +02:00
James Mason
98defe2d0f Use role caching for Rolify to avoid N+1 queries
Resolves #2018

See https://github.com/RolifyCommunity/rolify#cached-roles-to-avoid-n1-issue
2018-04-04 07:36:29 -07:00
Michael Klimenko
111812025b Ignore changes of updated_at in Ticket and EventType models 2018-03-28 08:32:45 -07:00
Michael Klimenko
58cb62dd6d Fix tickets turnover calculation 2018-03-27 07:52:25 -07:00
ViditChitkara
33d32b9294 currency of a single ticket could be updated now
closes #1913

fixed travis faliures

minor changes

removed empty file

added tests regarding currency updation
2018-03-15 13:19:59 +02:00
James Mason
a2ed9c0074 Move events index datatable row to a partial
- clean up columns
- tag unregistered submitters & speakers
- implement caching
2018-03-14 18:00:37 -07:00
Marie-Elise
b1960c08ef Added name uniqueness validation for organization model. 2018-02-27 12:16:52 -08:00
Carlos Coelho
5f7029d28e Make calculate_event_distribution use state to group events
Signed-off-by: Carlos Coelho <carlos@vinta.com.br>
2018-02-19 01:02:30 +02:00
ViditChitkara
9c322d682f fixed csv export bug 2018-02-19 00:53:32 +02:00
namangupta01
7326bd132f Ability of user to create registration is fixed Closes #1628
Speaker's ability to create registration and corresponding tests are improved
2018-02-10 19:19:02 +02:00
ViditChitkara
66a2777677 changes for test faliures 2018-01-23 18:26:03 -08:00
ViditChitkara
6d67e9c959 minor changes 2018-01-23 18:26:03 -08:00
ViditChitkara
0ec937e43e fixed failing tests 2018-01-23 18:26:03 -08:00
ViditChitkara
86cab52f52 fixed ticket turnover bug
closes #1918
2018-01-23 18:26:03 -08:00
Rishabh Singh
61fcc262c8 Fixed org_admin administration dashboard error.
Fixed error accessing admin dashboard by passing
organization_id attribute.

Fixes #1933
2018-01-08 15:41:55 +01:00
Jan-Frederik Rieckers
e1e0bdb4fc Add possibility to link to mastodon 2018-01-06 18:55:27 +01:00
Christina Anagnostou
979377f2df Add unregistered speakers scope to program
And use it in Conference#registration_limit_exceeded?

Also change self.registered(conference) to registered(conference) to fix failures in linters
2018-01-05 10:38:15 +02:00
James Mason
fa55224163 Break up the one-query-of-doom
The single query was producing a tremendously large ActiveRecord allocation.

While this isn't nearly as cool as one query, it's still a significant
reduction in SQL trips, and now has the bonus of only loading what is
actually going to be displayed.
2017-12-22 10:48:55 -08:00
James Mason
995176ffe5 Fewer queries for for Conference#show
Reduces SQL wait times by >90% on splash pages.
2017-12-22 10:48:55 -08:00
Naman Gupta
6eb8c8d6ae Added tests for program#any_event_for_this_date? 2017-12-21 21:17:00 +02:00
David Sedeño
57e596c67e Use distinct instead of uniq because deprectation. 2017-12-15 23:08:21 +02:00
ViditChitkara
83053f4626 added email presence validation to openid
closes #1658

added test for openid

fixed robocup offences

written tests for email presence validation

minor changes

shifted omniauth callback tests to rspec controllers

fixed linting bug

minor changes

minor changes
2017-12-15 23:07:03 +02:00
Stella Rouzi
4289f699ac Add enabled to event_schedules
To show scheduled events that have been cancelled/withdrawn as 'cancelled', and consequently also show when an event is their replacement.

admin/schedules#show does not show events that were scheduled and then cancelled/withdrawn, however a record in event_schedules exists for those events, but event_schedule.enabled = false
2017-12-15 12:31:58 -08:00
Naman Gupta
ac8b187f1f Speaker is also able to see the proposal and able to modify it 2017-12-12 18:57:12 +02:00
Stella Rouzi
32fa0bde6b Add mass import of commercials
Fix #1055
2017-12-12 12:23:16 +02:00
AEtherC0r3
efaf07178f Upgrade to Rails 5
Update config with rails app:update
Update schema.rb rails db:migrate
Add puma
Make jobs and models inherit from ApplicationJob and ApplicationRecord
Update acts_as_list to 0.9.7 in order to fix
"undefined method `sanitize_sql_hash_for_conditions'" error
Update web-console to 2.3.0 to fix a 500 internal server error
Replace before_filter with before_action
Add rails-controller-testing gem
Add prepend: :true to protect_from_forgery in ApplicationController to
avoid ActionController::InvalidAuthenticityToken exceptions
Remove activeuuid
Update formtastic to 3.1.5 to fix deprecation warnings and issues
with the Input class
Update ahoy_matey to 1.6.0
Update cancancan to 2.0.0 to fix issues with malformed sql queries
Fix program spec
Fix issue with the picture being nil in admin/Organizations#new and #edit
and Organizations#show
Fix ActiveRecord::Base.raise_in_transactional_callbacks= deprecation
warning by removing an unnecessary line in application.rb
Fix failing versions specs
2017-12-11 20:58:04 +02:00
ViditChitkara
38342cd557 fixed tickets turnover bug
closes #1473
2017-11-21 13:24:47 +05:30
Naman Gupta
ada0f814a7 linting error is fixed 2017-11-09 02:00:49 +05:30
Naman Gupta
90edc648f8 programs.speakers is fixed 2017-11-09 01:40:56 +05:30
James Mason
aca8adf6e8
Merge branch 'master' into include_speaker_email_in_events 2017-11-07 17:19:42 -08:00
James Mason
714f89f6ba
Fix missing link on public organizations page
When viewing a conference, the Instance Name in the header points to
/organizations. On the organizations index, there's a button to see
conferences, but it does nothing. This makes it easy for public users to
get lost.

This commit:
* Adds a function to the organizations controller to show child
  conferences
* Adds a public permission to see conferences through an organization
* Represents a subset of conferences, reusing conferences/index view,
  for the organization
2017-11-07 14:11:13 -08:00
Your Name
6c8ebe586c speakers_names is made in sentense using join 2017-11-07 23:02:01 +05:30
Your Name
52a5cb2391 speakers email field is added to pdf 2017-11-07 23:02:01 +05:30
Your Name
5b7aa56f6b minor changes 2017-11-07 23:02:01 +05:30