Commit graph

2376 commits

Author SHA1 Message Date
TheAssassin
839d397223 Fix secret key generation 2017-07-09 15:48:09 +02:00
TheAssassin
9052c80692 Fix Git ignores 2017-07-09 15:47:24 +02:00
TheAssassin
1f9fcf7c66 Fix issue mentioned in osem/pull/1407
After the rebase (to update the PR with the latest changes), I had the
same issue @lguerard has had. I noticed that the rails server didn't
lisen on all interfaces any more, but bound the port to the loopback
device only. By adding the parameter `-b 0.0.0.0`, I restored the
previous behavior, and OSEM could be reached with the browser after it
started up (takes a few seconds).
2017-05-16 22:16:46 +02:00
TheAssassin
dd807e834c Use rails secret to generate the secret key 2017-05-16 21:53:47 +02:00
TheAssassin
ea68015357 Update ignores 2017-05-16 21:53:47 +02:00
TheAssassin
303f5def5b Remove MySQL config file again as soon as possible 2017-05-16 21:53:47 +02:00
TheAssassin
343701794f Switch to built in rails server 2017-05-16 21:53:47 +02:00
TheAssassin
104848dd5e Update Docker docs 2017-05-16 21:53:47 +02:00
TheAssassin
3f721f98d6 Add beginner guide for deploying OSEM with Docker 2017-05-16 21:53:47 +02:00
TheAssassin
2c4be2ce27 Add missing dependency to Dockerfile 2017-05-16 21:53:47 +02:00
TheAssassin
977769c255 Docker support for production use
This commit adds a Docker infrastructure that is ready for production
use. It is meant to simplify the deployment of OSEM for everyone who
wants to host their own instances.

It includes many features like data persistence, automatic secret key
generation and persistence and automatic database initialization and
upgrading. This should make updating the Docker container as easy as
possible.
2017-05-16 21:53:47 +02:00
Ana María Martínez Gómez
4a026c9dde Merge pull request #1487 from SergioAtSUSE/from_too_bright_to_matte
Change too bright color to matte
2017-05-15 16:29:19 +02:00
Sergio Lindo Mansilla
207b3611c6 Change too bright color to matte
- The bright colors makes the labels unreadable on some screens.
2017-05-15 15:49:19 +02:00
Chaitanya
008ccf8b6d Add user path to Attendee and Speaker avatar in registration show page
Avatars of attendee and speaker are not linked to respective attendee and speaker. Add user path to each avatar to give more information of attendee and speaker
2017-05-13 22:14:57 +03:00
Agrim Mittal
6c7e8bc8a1 Add rake task for resources 2017-05-13 18:30:30 +03:00
hitman
e73baa2754 add validation for name, used and quantity 2017-05-13 18:30:30 +03:00
Chaitanya
4b72d383ea Fix Travis-Ci errors
Rubocop offenses lead to failure of Travis-ci build. Offensive files are added as exclude files of respective offense in rubocop_todo.yml
2017-05-13 17:49:17 +03:00
Siddhant Bajaj
53a2246ff2 Fixed issue in notification drop down menu
Fixed an indentation issue in notification drop down layout.
2017-05-13 17:48:05 +03:00
AEtherC0r3
dbf7b73d1a Test ConferenceRegistration#new behaviour
Create shared example for when the user can create a new registration
Change older tests to use the shared example
Add tests for confirmed speakers
2017-05-13 17:47:22 +03:00
AEtherC0r3
fdff485b3e Allow confirmed speakers to register anytime
If the registration period is over then speakers of confirmed events
can't register anymore. They should be able to, since they are gonna be
there anyway.

* Allow the speakers of confirmed events to register regardless of the
registration period
* Provision for registrations of confirmed speakers, so as not to
exceed the registration limit
* Add scope for registered speakers

Fix #829 and fix #802
2017-05-13 17:47:22 +03:00
Siddhant Bajaj
1c12200003 Fixed paper trail inconsistent results for numeric values
There is a known issue in paper_trail that whenever we Query the
'versions.object' column it evaluates inconsistent results for numeric
values due to limitations of SQL wildcard matchers against the
serialized objects. So to fix this issue I have manually formed the where
query instead of using where_object and where_object_changes. I have
also added test for the same.
Fixes #1307
2017-05-11 14:01:52 +03:00
Ana María Martínez Gómez
3ae97eb889 Merge pull request #1486 from Ana06/fix-rubocop-haml
Fix haml-lint error
2017-05-11 12:55:42 +02:00
Ana María Martínez Gómez
0aff947f05 Fix haml-lint error
The error was introduced when merging

https://github.com/openSUSE/osem/pull/1469

as a offense was introduced since the tests there were run
and the PR got merged.
2017-05-11 11:59:33 +02:00
Ana María Martínez Gómez
52c90811a6 Merge pull request #1469 from agrim123/haml_lint
Add Haml lint
2017-05-11 09:58:15 +02:00
selini
8a0f3c99b0 Create links for speakers in admin/reports#index 2017-05-10 10:34:45 +03:00
Eugene Dubinin
93404d543f implement user creation by admin 2017-05-08 22:54:02 +03:00
divyanshumehta
f057900fb1 Added link to lodging section in splashpage's navbar 2017-05-08 15:28:28 +03:00
AEtherC0r3
95b88be061 Add tests for openid signup with every provider
The spec for omniauth doesn't test signup for every provider, and it
doesn't test if it has tests for all available providers
Also, we no longer use secrets

* Add model test to check if the omniauth providers have changed
* Test signup using every provider
* Replace secretswith environment variables
2017-05-06 10:37:58 +03:00
AEtherC0r3
9341edd9cb Change mock accounts credentials
The names and usernames don't follow a canonical pattern
And the emails point to a valid domain not owned by osem and not
reserved for illustration purposes

Normalize the users' names and usernames and change the domain of the
email addresses to example.com

Fix #1365
2017-05-06 10:37:58 +03:00
Agrim Mittal
681dfb7889 Add haml-lint to travis script 2017-04-26 20:11:38 +05:30
Agrim Mittal
b69eb7d262 generate haml-lint_todo
Automatically generated using --auto-gen-config and added haml-lint.yml which inherits from haml-lint_todo
2017-04-26 18:27:20 +05:30
Agrim Mittal
605a1a9c5f Add haml-lint gem
Added haml_lint gem v0.24.0
2017-04-26 18:27:20 +05:30
Ana María Martínez Gómez
5be1ad52ee Merge pull request #1334 from siddhantbajaj/DeleteEventSchedules
Fixed DeleteEventSchedules issue
2017-04-26 13:38:54 +02:00
Siddhant Bajaj
dc865abaaa Excluded conference_spec from block cop
Fixes #1333
2017-04-25 18:00:24 +05:30
Siddhant Bajaj
7ff34c5b23 Added relation between EventSchedule and program model
Program has many event_schedules through schedules
2017-04-25 18:00:24 +05:30
Siddhant Bajaj
7ce816e146 Fixed DeleteEventSchedules issue
Issues with DeleteEventSchedules method in conference controller:
1.It deletes EventSchedules of all the conferences that are not in the
hours range. Instead it should delete EventSchedules of those events
only that belong to that particular conference only.
2.If we set invalid start or end hour attribute of a conference then
also EventSchedules gets deleted even though conference is not
successfully updated.
Fixed both the issues and added test for the same.
2017-04-25 18:00:24 +05:30
David Sedeño
ec71b111fe Add description to xml. fixes #1435 2017-04-25 13:35:09 +03:00
Ana María Martínez Gómez
8dbe9ceb01 Merge pull request #1337 from siddhantbajaj/Validation
Added validation in EventSchedule model
2017-04-24 10:55:43 +02:00
Ana María Martínez Gómez
43d1d8f0a5 Merge pull request #1451 from agrim123/update_rubocop_0.48.1
update rubocop to 0.48.1
2017-04-24 10:53:41 +02:00
nasia
a6e8283bcf Fix commercial option for users in dashboard#show #1390 2017-04-24 10:16:39 +03:00
Siddhant Bajaj
23473e1476 Added hour transient attribute to event_scheduled factory
It allows event_scheduled to be created with custom time.
2017-04-22 01:28:49 +05:30
Siddhant Bajaj
95d459f058 Added validation in EventSchedule model and test in event_schedule_spec
EventSchedule start time should be in hours range of the conference.Therefore it adds validation on start_time attribute of event schedule model. It also adds test for the same.
2017-04-22 01:20:05 +05:30
Agrim Mittal
aaeca108a8 Add missed offenses to rubocop_todo
A known rubocop bug, solved by adding files manually
Closes #1450
2017-04-21 21:36:39 +05:30
Agrim Mittal
7a10d69f14 regenerate rubocop_todo
Automatically generated using --auto-gen-config
2017-04-21 21:36:21 +05:30
Agrim Mittal
c27ab2d4a9 update to rubocop v0.48.1
Updated other gems(nokogiri rails-dom-testing) to be able to update rubocop
2017-04-20 14:58:00 +05:30
Ana María Martínez Gómez
be33f345a1 Merge pull request #1306 from siddhantbajaj/Confirmed_Events
fixed Confirmed Scheduled Events issue
2017-04-18 15:37:54 +02:00
Ana María Martínez Gómez
dc190b5339 Merge pull request #1460 from nikhilgupta1211/imageschedule
Removed the extra condition for displaying the first speaker image
2017-04-18 15:20:43 +02:00
Siddhant Bajaj
cd9f329939 Fixed Confirmed Scheduled Events issue
Fixed issues with scheduled_event_distribution method in conference.rb
and added test in conference_spec.rb to confirm issue is fixed.
Fixes #1302
2017-04-18 18:30:42 +05:30
Ana María Martínez Gómez
7741d43d17 Merge pull request #1449 from sunny-b/master
Enable Performance/StringReplacement Rubocop cop
2017-04-18 10:55:10 +02:00
gotens1211
3ead7ef586 Removed the extra condition for displaying the first speaker image
Removed the if statement in schedule_item.html.haml file which was generating an extra img_tag for the first speaker

Fixes #1454
2017-04-17 17:40:23 +05:30