Commit graph

327 commits

Author SHA1 Message Date
Rahul
bf7a7932ba add booth in alias
Booth can be replaced with any alias by replacing it in alias.en.yml.
2019-08-10 21:40:25 +05:30
Henne Vogelsang
e6049adc52
Fix gigitty link
The modal didn't really work on mobiles. On mobiles you also need the schedule
link because it's hard to point your mobile to a QR code on your mobile...
2019-05-24 15:19:37 +02:00
Ana María Martínez Gómez
a8d2f8caa4
Drop halt_callback_chains_on_return_false
ActiveSupport.halt_callback_chains_on_return_false= is deprecated and
will be removed in Rails 5.2. Stop using it and return `throw(:abort)`
instead in the callbacks which need it.
2019-05-05 09:40:49 +02:00
Henne Vogelsang
55edd8a571
Change how we start puma
Puma is integrated with rails server, no need to start it manually.
Takes care of logging etc. We also shouldn't run multiple workers
unless we absolutely want to.
2019-05-04 21:36:34 +02:00
Henne Vogelsang
7b56370e90
Disable X-Sendfile default
There are people deploying this in heroku, on nginx, standalone etc. etc.
Do not set web server specific defaults in the code...
2019-03-22 11:29:25 +01:00
Henne Vogelsang
959d5af1e4
Drop rails_12factor gem
Use the proposed rails 5 environment variables instead.
2019-03-11 17:42:54 +01:00
Ana María Martínez Gómez
0aa49e9c64 Get rid of vagrant
We are using Docker now instead.

Closes https://github.com/openSUSE/osem/issues/1213
2019-02-26 16:30:56 +01:00
Ana María Martínez Gómez
e03f9dc5fe Add /conferences/:conference_id/program/proposal/:id
We changed this route (because of renaming proposal to proposals in):
daf1f805bd

Keep the old route for compatibility.

Fixes https://github.com/openSUSE/osem/issues/2330
2019-02-21 17:09:56 +01:00
Henne Vogelsang
4bf0c02763 Use our env naming convention for memcached
Also do not set memore_store in the production environment if
there is no memcached. File based cache is default for a reason,
it even works for most normal traffic pages
2019-02-16 01:00:22 +01:00
Henne Vogelsang
228190396c Add the files we use for production deployments
We are using apache as reverse proxy and two systemd units
(puma & delayed job) for events.opensuse.org. Track them
also in this project, might be useful for others.
2019-02-16 00:40:47 +01:00
Henne Vogelsang
e523c2631e Make the device ichain base url configurable 2019-02-15 17:09:03 +01:00
Henne Vogelsang
c07cc6c844 Update mina and adopt the configuration 2019-02-15 17:09:03 +01:00
Henne Vogelsang
216cf632b8 Change project id/key to not be the same setting 2019-02-14 23:50:59 +01:00
James Mason
516e53d9df Use chartkick globally
* Clean up legacy charting imports
* Update existing donut and line charts
* Create helpers for parsing out existing chart data
* Move chart partials to a more common path
2018-12-30 16:57:22 -08:00
James Mason
ac3be77219 Required changes for consistent controller & feature results 2018-11-20 17:30:56 -08:00
James Mason
7835d887f2
Clean up a couple deprecations in test. 2018-11-19 15:47:08 -08:00
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
James Mason
f3757fd4e7 Update chart-js-rails to version 0.1.6
Supercedes #2152 with required code changes.
2018-10-10 21:23:28 +02:00
James Mason
84d60f4f3e Set application timezone in ENV 2018-09-25 22:13:22 +02:00
Henne Vogelsang
d61b4253df Configure MATOMO from the environment
We try to be a 12factor app right? :-)
2018-09-24 10:59:42 -07:00
Henne Vogelsang
f8b7233404 Put database.yml into the code base
It works by default, we have a mechanism to configure it (dotenv.example)
and we want to be a 12factor app, right? Let's do this...
2018-09-20 11:33:57 -07:00
Henne Vogelsang
6f061756ae Make the database.yml example file generic
So it works with environment variables (12 factory baby!). Enables
us to drop all enviroment specific 'special' example files.
2018-09-12 19:41:37 +02:00
James Mason
600e394cf8 Provide a base config for ajax-datatables-rails 2018-08-30 16:50:42 +02:00
James Mason
4a0142f6a6 Find source of queries
(cherry picked from commit 458392ef0d334173f65eac41eb23345e3201a024)
2018-07-13 09:10:44 -07:00
Stella Rouzi
e1adf28081 Show charts for survey replies 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
f22afe0644 Add ENV variable for production log level
(cherry picked from commit f8856da0fd3c9e41330fdd09c407eb7f61b078dc)
2018-06-07 10:58:00 +02:00
James Mason
217ec1a46f Show code of conduct on organizations 2018-05-08 13:23:00 +02:00
Naman Gupta
7d2afc623d Replaced hoptoad gem with airbrake gem 2018-03-26 21:40:31 +02:00
James Mason
73c5c3c97a Allow root URL to redirect to a conference via ENV var. 2018-03-15 01:24:49 +01:00
James Mason
f062f7f4ee Reduce deprecation warnings 2018-03-15 01:20:57 +01:00
James Mason
26b6902af3 Explicity compress assets 2018-01-12 08:01:45 -08:00
James Mason
7f2346650f Configure cache stores
rely on RAM caching for devel, and optionally a memcached server in production
2017-12-22 10:48:55 -08:00
rishabh92
4409610a89 Add database config examples for all supported databases
Example for MySQL and PostgreSQL added.
Fixes #1676

Update comments based on code review
2017-12-13 17:27:23 +02:00
Stella Rouzi
32fa0bde6b Add mass import of commercials
Fix #1055
2017-12-12 12:23:16 +02:00
AEtherC0r3
c21c9af60f Use environment variable for the redis url in cable.yml
Move redis url from cable.yml to dotenv.example
2017-12-11 20:58:04 +02:00
AEtherC0r3
de646019fb Performance tuning in config/puma.rb 2017-12-11 20:58:04 +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
James Mason
ee6040ffd6
Merge branch 'master' into ssl-opt 2017-11-16 18:13:38 -08:00
James Mason
207319ae57 Control config.force_ssl with an ENV variable 2017-11-14 14:12:23 -08:00
James Mason
ce4e993fe7
Merge branch 'master' into recaptcha 2017-11-08 09:33:03 -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
James Mason
0aa782711d
Use 'Feature's to toggle optional functionality
TODO: Wrap every incomplete project in a feature, and _turn it off_.
2017-11-03 20:40:36 -07:00
James Mason
7048a37eb6
Merge branch 'master' into master 2017-10-27 18:26:21 -07:00
Udit Jindal
613351378f Merge branch 'master' of https://github.com/openSUSE/osem 2017-10-19 01:46:15 +05:30
Udit Jindal
3d8b32d90b fixed doubly typed route 2017-10-19 01:41:40 +05:30
rishabhptr
568d89b620 Changed physical_ticket to plural 2017-10-02 09:53:10 +03:00
Tobias Brunner
f14d5926e1 explicitely set log_level for production
Without this setting there is a warning displayed:

DEPRECATION WARNING: You did not specify a `log_level`
in `production.rb`
2017-08-29 09:06:51 +02:00