Commit graph

28 commits

Author SHA1 Message Date
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
AEtherC0r3
9c58397cd2 Enable Style/IndentationWidth cop
The offenses were fixed manually
2017-07-14 12:47:20 +03:00
divyanshumehta
4824537aeb Added Rails/Delegate Rubucop Cop 2017-05-23 10:31:40 +05:30
JewelSam
f6e74461ba Add schedule interval as attribute of a program
Also, the part of the schedule event is deleted and the length of the event types
changes to the nearest suitable after changing the length of the interval.

This closes #1220
2017-04-01 21:39:20 +03:00
gotens1211
ec1adbada8 Removed duplicate methods date_range_string and date_string.
Added tests for date_string function

corrections in the test
2017-03-01 15:39:10 +05:30
Ana
eee4e4f22c Add markdown to users biography
Closes https://github.com/openSUSE/osem/issues/1090
Closes https://github.com/openSUSE/osem/issues/701
2016-08-12 11:38:28 +02:00
Ana
72cd463dc7 Add markdown to events abstract 2016-08-12 11:38:28 +02:00
Ana
a578167cf5 Event model improvements
- Drop selected_event_schedule function
- Rename scheduled_room and scheduled_start_time to room and time as if there is no selected_schedule, the event is not scheduled.
2016-08-11 15:11:27 +02:00
Ana
a394293500 Do not use JS to initialize the schedule
- Only use JS for the drag&drop functionality and to the set/alter the time and rooms of the EventSchedule object.

- Introduce has_many :events, through: :event_schedules association to get unscheduled event easily
2016-08-11 15:11:27 +02:00
Ana
0b26ed5c35 EventSchedule validations
event, schedule, room and start_time are mandatory in EventSchedule.
2016-08-11 15:11:27 +02:00
Ana
c047ffd699 New associations and models: schedule versioning
For the schedule versioning in the admin interface (having multiple possible shcedules) we need to change some models and associations. It has also been create a rake:move_events_attributes task to migrate the data.

User Interface addapted to make use of the introduced associations and models
2016-08-11 15:06:52 +02:00
Ana
a0fc9dd950 Default value for length in as_json fixed
The default value for length in as_json should be a multiple of EventType::LENGTH_STEP.
2016-07-18 11:45:59 +02:00
Henne Vogelsang
40023044af Use PictureUploader on Conference 2016-04-27 17:40:23 +02:00
Aditya Prakash
d752cfdf7e Add conference serializer tests and remove unused functions 2016-04-03 11:21:57 +05:30
Aditya Prakash
0aa36b470e Add Eventserializer tests and fix undefined method `l' for Eventserializer
Solution of no method error pointed by @nishanthvijayan:
http://stackoverflow.com/a/11724935
2016-04-03 00:59:28 +05:30
Shriyansh
70b8fca197 Made use of Rails I18n data format in EventSerializer #598 2016-03-27 20:03:33 +05:30
Nishanth Vijayan
3da04c0f7c Update active_model_serializers.Fix conference serializer and api tests
The controllers are not using the serializers, because of a bug in active_model_serializer.
Hence the update.API tests are fixed to work with the new API response structure.
Fixes bugs in conference serializer.
2016-03-15 12:38:13 +05:30
Stella Rouzi
6be8d383b7 Remove unnecessary code 2016-01-21 21:49:48 +02:00
Stella Rouzi
ecef151f91 API with more options, includes #712 2016-01-21 21:49:48 +02:00
Chrisbr
c2a1ff1ffc Fix Hakiri issues 2014-08-27 16:18:35 +02:00
Henne Vogelsang
5aa0d58c57 Move Conference contact details to Contact 2014-08-01 14:30:10 +02:00
Stella Rouzi
fc753282d3 hound fixes 2014-06-30 15:46:51 +03:00
Stella Rouzi
9292b79c78 houndci fixes 2014-06-30 15:46:51 +03:00
Stella Rouzi
23bf55b66c User/Person models merge 2014-06-30 15:46:06 +03:00
Ancor Gonzalez Sosa
f905bb8f8f added Speaker#full_name to the JSON API 2013-07-22 11:54:27 +02:00
Ancor Gonzalez Sosa
0c20151de8 Changing date format in JSON API to match suseconferenceclient expectations 2013-07-17 13:10:50 +02:00
Ancor Gonzalez Sosa
d95d8f234b json API for suseconferenceclient 2013-07-08 10:07:12 +02:00
Ancor Gonzalez Sosa
27017a4823 WIP: first prototype of the JSON API.
* Tests not included, so I cannot prove that it works
2013-07-04 14:02:50 +02:00