Commit Graph

5057 Commits

Author SHA1 Message Date
localizer 2d61459620 updated translation resources 2014-02-04 11:25:37 +00:00
localizer f2ce85a212 updated translation resources 2014-02-04 11:24:32 +00:00
localizer b209c58dbf updated translation resources 2014-02-04 10:32:05 +00:00
Naomi Aro c04e33cbfd Merge branch '2.6.x' of github.com:sourcefabric/Airtime into 2.6.x 2014-02-03 21:57:26 -05:00
Naomi 2feac41af7 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
creating context menus for the media in their own services.
2014-02-03 18:33:11 -05:00
drigato 63ec20d9f1 CC-5681: I18N: Fail to switch language
Check if Zend_Auth class exists with the autoloader
2014-02-03 12:33:35 -05:00
localizer 5d19a22b2d updated translation resources 2014-02-03 12:35:10 +00:00
Naomi Aro 8e2215c58d CC-5450 : Refactor Media Management (Classes/DB) in Airtime
working on jplayer
2014-02-01 21:41:34 -05:00
Naomi 86b5f68c67 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
trying to fix chrome lag issue with inline jPlayer.
2014-01-31 17:32:45 -05:00
drigato ba84e609e7 Moved commit hook scripts to dev_tools directory 2014-01-31 16:42:53 -05:00
drigato 6d63b81f76 Testing commit triggers.... 2014-01-31 15:56:59 -05:00
drigato a00ab8bc79 Added comment for phpunit 2014-01-31 15:31:40 -05:00
drigato f71909d255 CC-5651: Unit Test the Scheduler
Some fine tuning
2014-01-31 15:22:19 -05:00
drigato b7c79df6ec Merge branch 'unittests' into 2.5.x 2014-01-31 15:02:41 -05:00
drigato e24d25e398 CC-5651: Unit Test the Scheduler
Log results in xml file for junit parser
2014-01-31 12:41:15 -05:00
drigato 5c01234445 CC-5651: Unit Test the Scheduler
Small fix to runtests script
2014-01-31 11:18:46 -05:00
drigato 4beb06a1d9 CC-5651: Unit Test the Scheduler
Creat a rabbitmq vhost and user before running tests so airtime doesn't have to be installed
2014-01-31 11:09:22 -05:00
localizer 4a39097daf updated translation resources 2014-01-31 07:52:07 +00:00
localizer 5730c13da6 updated translation resources 2014-01-30 20:37:06 +00:00
drigato 484f1d9502 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2014-01-30 12:38:49 -05:00
drigato 883e8885c7 CC-5677: Library -> Scheduled column gets updated on incorrect file 2014-01-30 12:38:18 -05:00
root 91c89e91f3 Merge branch '2.5.x' of https://github.com/sourcefabric/Airtime into 2.5.x 2014-01-30 17:07:52 +00:00
drigato ce7eddf563 CC-5678: Scheduler: Show's contents won't follow show's scheduled time change
Fixed by storing original cc_show_day object by value
2014-01-30 12:07:24 -05:00
root 3f15bf6e80 updated translation resources 2014-01-30 17:06:38 +00:00
Naomi fbe0b0a75d CC-5450 : Refactor Media Management (Classes/DB) in Airtime
creating service function for column datatables settings script.
context menu on right click, dblclick event now used for adding to shows/playlist.
2014-01-29 18:03:44 -05:00
Daniel James eb35dcac5f Added Serbian Cyrillic, Serbian Latin and Croatian, thanks Zsolt! 2014-01-29 17:54:28 +00:00
drigato 7a04f7d98e CC-5672: Webstream warnings on SaaS
Don't parse/use header info if get_headers returns false
2014-01-29 12:09:05 -05:00
Naomi eea17b9dcd CC-5450 : Refactor Media Management (Classes/DB) in Airtime
new code for getting the dashboard json.
2014-01-28 18:38:31 -05:00
Naomi 1f0d44de02 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
working on new query for prev/current/next
2014-01-27 17:52:45 -05:00
Naomi 1516f916eb CC-5450 : Refactor Media Management (Classes/DB) in Airtime
fixed column sorting problem
2014-01-27 17:52:19 -05:00
drigato a59453cde5 CC-5651: Unit Test the Scheduler 2014-01-27 17:17:03 -05:00
drigato 55665fb246 CC-5651: Unit Test the Scheduler
Added test for weekly repeat show R&R show creation
2014-01-27 15:10:42 -05:00
Albert Santoni c9d98e4e10 Small Airtime Pro fix for ShowFormService 2014-01-27 14:31:33 -05:00
drigato 697e50c50d CC-5651: Unit Test the Scheduler
Added test for non-repeating record and rebroadcast shows
2014-01-27 13:23:28 -05:00
drigato 6da493110f CC-5651: Unit Test the Scheduler
Fixed linked show test
2014-01-27 12:23:46 -05:00
Naomi 6e7f9d3232 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
testing sending audio file and webstream schedules.
Seems to be bugs with pypo around message passing and possibly noticing a track that
should be currently playing.
2014-01-24 17:52:39 -05:00
drigato d6aabfdc88 CC-5651: Unit Test the Scheduler
Added some linked show tests
2014-01-24 17:25:40 -05:00
drigato 2bbc42f532 CC-5651: Unit Test the Scheduler
Moved test data outside of services
2014-01-24 16:08:38 -05:00
drigato e0650fb840 CC-5651: Unit Test the Scheduler
Overlapping show tests
2014-01-24 15:14:31 -05:00
drigato 2076b3c069 CC-5651: Unit Test the Scheduler
Add logging class to bootstrap
2014-01-24 11:39:15 -05:00
drigato c04d8714bb Merge branch 'unittests' of github.com:sourcefabric/Airtime into unittests 2014-01-23 17:06:34 -05:00
drigato ca09ad2896 CC-5593: Overlapping Show Bug
Added tests for checking if shows overlap
2014-01-23 17:06:27 -05:00
Albert Santoni ab96e1e0b2 CC-5651: Unit Test the Scheduler
* Temporarily disabling the one Preferences unit test that's failed
  until I fix it.
2014-01-23 17:06:13 -05:00
Albert Santoni 162a873f9d CC-5651: Unit Test the Scheduler
* Continued refactoring of the database creation.
* Database now persists after running tests but most of the tables are
  cleared.
* The unit tests run WAY faster now. :-)
2014-01-23 17:04:29 -05:00
Albert Santoni aa2e084a09 Merge branch 'unittests' of github.com:sourcefabric/Airtime into unittests 2014-01-23 13:10:41 -05:00
Albert Santoni 5d2aae4525 Updated readme for unit testing 2014-01-23 12:51:53 -05:00
drigato fc4dfd5cb0 CC-5651: Unit Test the Scheduler
Moved common database setup functions to helper class
2014-01-23 11:37:20 -05:00
Albert Santoni 52c3971fc6 Fixed a bug in Application_Model_SetShowsPopulatedUntil 2014-01-22 17:58:25 -05:00
Albert Santoni 3826a88d1f Disable code coverage report because autoloader is not working 2014-01-22 17:00:23 -05:00
Naomi 3ec0d1db8e CC-5450 : Refactor Media Management (Classes/DB) in Airtime
fixing scheduling for webstreams.
2014-01-22 16:27:41 -05:00
Naomi 56be00a399 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
missed changing a variable when moving files.
commenting out standingredraw of lib, this can be improved later.
2014-01-22 16:10:43 -05:00
Naomi 9a6783f622 Merge branch '2.5.x' into 2.6.x 2014-01-22 15:51:54 -05:00
Naomi dd0092171c CC-5450 : Refactor Media Management (Classes/DB) in Airtime
redoing show builder to use propel well. making only 1 database request with propel and hydrating related rows.
2014-01-22 15:47:35 -05:00
drigato e9d1a1fd91 CC-5651: Unit Test the Scheduler 2014-01-21 16:56:01 -05:00
drigato 56a2c37c11 CC-5651: Unit Test the Scheduler 2014-01-21 16:55:52 -05:00
drigato c14640c81e CC-5651: Unit Test the Scheduler
Added database test
2014-01-21 16:43:45 -05:00
drigato b2cff12569 CC-5651: Unit Test the Scheduler
Typo
2014-01-21 15:58:05 -05:00
drigato 78120a69e8 CC-5651: Unit Test the Scheduler
Added comments about why all show dates are hard coded and not relative
2014-01-21 15:55:05 -05:00
drigato 63087610dc CC-5651: Unit Test the Scheduler
Added more database tests
2014-01-21 12:29:56 -05:00
drigato d5112f0368 Added comments for a show_service function 2014-01-20 17:05:37 -05:00
drigato 2faa2db55d CC-5651: Unit Test the Scheduler
Added 2 unit tests
2014-01-20 17:03:29 -05:00
drigato e9d2874e83 CC-5651: Unit Test the Scheduler
Fixed show_service unit tests so they can access private/protected methods
2014-01-20 12:20:05 -05:00
Naomi f744f52a8c CC-5450 : Refactor Media Management (Classes/DB) in Airtime
making shift select work.
2014-01-16 18:23:12 -05:00
Naomi 819b4f1326 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
fixing up the JS button class, can select things properly per tab.
2014-01-16 18:15:34 -05:00
drigato bdf5dc4982 CC-5651: Unit Test the Scheduler 2014-01-16 17:16:29 -05:00
drigato c329d54252 CC-5651: Unit Test the Scheduler 2014-01-16 17:01:22 -05:00
Naomi 2815cf773f CC-5450 : Refactor Media Management (Classes/DB) in Airtime
adding checkboxes to the media tables.
2014-01-16 12:03:31 -05:00
Naomi 3bcea22e93 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
working towards swapping out how scheduling information is gotten using the new classes.
2014-01-15 16:41:53 -05:00
drigato 01ec611ae2 CC-5651: Unit Test the Scheduler
Reorganized tests
2014-01-15 11:51:20 -05:00
drigato 005d4b9b6d CC-5651: Unit Test the Scheduler
Added test for deleting an entire repeating show
2014-01-14 16:40:11 -05:00
drigato 59f0e63763 CC-5651: Unit Test the Scheduler
Added test for editing a repeating show instance
2014-01-14 16:08:11 -05:00
drigato 0b4ae6b94d CC-5651: Unit Test the Scheduler
Added test for deleting repeating show instances
2014-01-14 14:16:37 -05:00
drigato a658dbf27c Merge branch 'unittests' of github.com:sourcefabric/Airtime into unittests
Conflicts:
	airtime_mvc/tests/application/models/ShowTest.php
2014-01-13 12:00:16 -05:00
drigato 8457a3403b CC-5651: Unit Test the Scheduler 2014-01-13 11:53:00 -05:00
drigato 8e8f59a83c CC-5651: Unit Test the Scheduler
Added test for deleting a show instance
2014-01-13 11:43:17 -05:00
drigato 8c720d8802 CC-5651: Unit Test the Scheduler
Added new test for creating a weekly repeating show
Renamed xml files to better reflect which test it belongs to
2014-01-13 11:43:17 -05:00
drigato b076e86844 CC-5651: Unit Test the Scheduler
Removed unused code
2014-01-13 11:43:17 -05:00
drigato 75eb76062f CC-5651: Unit Test the Scheduler
Added test for a non-repeat and non-record show
Added a helper class
2014-01-13 11:43:17 -05:00
drigato 60f80dbb57 Added missing ShowData.php thingy for unit testing 2014-01-13 11:43:17 -05:00
drigato a7dcfe000c CC-5651: Unit Test the Scheduler
Created file that returns test data
Added a non-repeating, non-record&rebroadcast show creation test (not working yet)
Updated the cc_show_seed.xml file to include all 5 show tables
2014-01-13 11:43:17 -05:00
Albert Santoni fe9beec778 CC-5651: Unit Test the Scheduler
* Added runtests.sh script for unit tests
* Use the airtime_test database config in Config.php, propel
* First unit test passes! :-)
2014-01-13 11:43:17 -05:00
drigato 72da8be2f2 CC-5651: Unit Test the Scheduler
First test passes!
2014-01-13 11:43:17 -05:00
drigato da05426bca CC-5651: Unit Test the Scheduler
Got test to run!
2014-01-13 11:43:17 -05:00
Albert Santoni c94f51b9f6 CC-5651: Unit Test the Scheduler
* Fixed the test airtime.conf a bit
* Create the database tables and db properly
2014-01-13 11:43:17 -05:00
Albert Santoni 32e9edf644 CC-5651: Unit Test the Scheduler
* Mock config for database connections
2014-01-13 11:43:17 -05:00
drigato e5d23ca900 CC-5651: Unit Test the Scheduler
Remove zend session stuff
Add services, install scripts to include path
2014-01-13 11:43:17 -05:00
Albert Santoni 3c9b0c0cb2 CC-5651: Unit Test the Scheduler
* Comments
2014-01-13 11:43:17 -05:00
Albert Santoni e4cdce9ff2 CC-5651: Unit Test the Scheduler
* Improved bootstrapping, fixed a bunch of errors
* Start a session, got Zend_Application working
2014-01-13 11:43:17 -05:00
Albert Santoni 37a95519c1 CC-5651: Unit Test the Scheduler
* More database connection stuff
2014-01-13 11:43:17 -05:00
Albert Santoni 6026ec58db CC-5651: Unit Test the Scheduler
* Got the database connection working in our unit test
2014-01-13 11:43:17 -05:00
Albert Santoni 42aebe50af CC-5651: Unit Test the Scheduler
* README.txt update for unit tests
2014-01-13 11:43:16 -05:00
Albert Santoni 6cb38d021e CC-5651: Unit Test the Scheduler
* Updated README
2014-01-13 11:43:16 -05:00
drigato 947a093e29 CC-5651: Unit Test the Scheduler
Added xml cc_show seed file and cc_show creation test file
2014-01-13 11:43:16 -05:00
drigato 8485e136fe CC-5651: Unit Test the Schedule
Remove Zend library from tests folder
2014-01-13 11:43:16 -05:00
Albert Santoni ae6efc8fc8 CC-5651: Unit Test the Scheduler
* Unit test bootstrapping work.
* Added a README.txt for the unit testing environment
2014-01-13 11:43:16 -05:00
drigato 0f107dbad3 Initial unit test configuration 2014-01-13 11:43:16 -05:00
drigato 9e5cfe0d39 CC-5666: Deleting a show instance can revert the 'no end' option 2014-01-13 11:41:44 -05:00
drigato 0f4099e481 CC-5651: Unit Test the Scheduler
Added test for deleting a show instance
2014-01-09 16:58:56 -05:00
drigato 4e668b9d77 CC-5651: Unit Test the Scheduler
Added new test for creating a weekly repeating show
Renamed xml files to better reflect which test it belongs to
2014-01-09 14:38:03 -05:00
drigato a648f7fa2d CC-5665: Timeout can occur when scheduling large playlists into linked shows
Added a temporary fix by extending the php time limit
2014-01-09 11:57:32 -05:00
drigato 71022b1413 CC-5651: Unit Test the Scheduler
Removed unused code
2014-01-08 15:52:46 -05:00
drigato ef13d5966f CC-5651: Unit Test the Scheduler
Added test for a non-repeat and non-record show
Added a helper class
2014-01-08 15:51:11 -05:00
drigato 3baf7929ce Added missing ShowData.php thingy for unit testing 2014-01-07 13:03:34 -05:00
drigato 94912ed445 CC-5651: Unit Test the Scheduler
Created file that returns test data
Added a non-repeating, non-record&rebroadcast show creation test (not working yet)
Updated the cc_show_seed.xml file to include all 5 show tables
2014-01-06 18:09:13 -05:00
drigato 2cdad4932a CC-5660: Unable to create shows with a rebroadcast
Used wrong formating for minutes
2014-01-06 14:04:18 -05:00
drigato 11284d0d41 CC-5660: Unable to create shows with a rebroadcast
Two variables that are needed for the rebroadcast validation were deleted
before the 2.5.1 release. Just had to add them back in.
2014-01-06 13:51:06 -05:00
Naomi 6f73a034d9 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
copy/paste error with setting samplerate
2013-12-20 17:30:19 -05:00
Naomi 0a7c259e72 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
fixing up presentation of playlist items.
2013-12-20 17:01:57 -05:00
Naomi d1904cbba4 CC-5450 : Refactor Media Management (Classes/DB) in Airtime
HEAD won't work for actual streams, just m3u etc.
2013-12-20 13:03:20 -05:00
Albert Santoni fea3f4073a CC-5651: Unit Test the Scheduler
* Added runtests.sh script for unit tests
* Use the airtime_test database config in Config.php, propel
* First unit test passes! :-)
2013-12-19 16:58:11 -05:00
Naomi 690b025e32 Merge branch '2.5.x' into refactor_merge_251 2013-12-19 16:20:09 -05:00
Naomi 6ac87cf441 AirtimeCC-5450 : Refactor Media Management (Classes/DB) in Airtime
need sample rate and bitrate to be either null or numeric.
2013-12-19 16:14:34 -05:00
drigato 298a9e6b7c CC-5651: Unit Test the Scheduler
First test passes!
2013-12-19 16:03:16 -05:00
Naomi fd56ffb2df CC-5450 : Refactor Media Management (Classes/DB) in Airtime
making sure now playing page can load.
2013-12-19 15:55:59 -05:00
Naomi ba47bd3db4 Merge branch 'memcached' into refactor_merge_251 2013-12-19 15:34:39 -05:00
drigato 3b27e74ca0 CC-5651: Unit Test the Scheduler
Got test to run!
2013-12-19 15:31:12 -05:00
Albert Santoni c4adbab04e CC-5651: Unit Test the Scheduler
* Fixed the test airtime.conf a bit
* Create the database tables and db properly
2013-12-19 12:01:32 -05:00
Albert Santoni b95fb38164 CC-5651: Unit Test the Scheduler
* Mock config for database connections
2013-12-19 11:40:35 -05:00
drigato 6512f033d1 CC-5651: Unit Test the Scheduler
Remove zend session stuff
Add services, install scripts to include path
2013-12-19 11:16:06 -05:00
Albert Santoni 585d62bfef CC-5651: Unit Test the Scheduler
* Comments
2013-12-19 11:11:26 -05:00
Albert Santoni a7353ba6ca CC-5651: Unit Test the Scheduler
* Improved bootstrapping, fixed a bunch of errors
* Start a session, got Zend_Application working
2013-12-19 11:09:49 -05:00
Albert Santoni 813043f52a CC-5651: Unit Test the Scheduler
* More database connection stuff
2013-12-18 18:59:42 -05:00
Albert Santoni 1cf5d3489e CC-5651: Unit Test the Scheduler
* Got the database connection working in our unit test
2013-12-18 17:40:13 -05:00
Albert Santoni 083ca601c9 CC-5651: Unit Test the Scheduler
* README.txt update for unit tests
2013-12-18 16:42:32 -05:00
Albert Santoni dbc83d37d6 Merge branch 'unittests' of github.com:sourcefabric/Airtime into unittests 2013-12-18 16:26:42 -05:00
Albert Santoni bc7f83c9ff CC-5651: Unit Test the Scheduler
* Updated README
2013-12-18 16:26:22 -05:00
drigato 73130f02e5 CC-5651: Unit Test the Scheduler
Added xml cc_show seed file and cc_show creation test file
2013-12-18 16:11:03 -05:00
drigato 6aaa2c83aa CC-5651: Unit Test the Schedule
Remove Zend library from tests folder
2013-12-18 16:07:01 -05:00
Albert Santoni 84c7e21bea CC-5651: Unit Test the Scheduler
* Unit test bootstrapping work.
* Added a README.txt for the unit testing environment
2013-12-18 16:05:31 -05:00
drigato e638101a97 Initial unit test configuration 2013-12-18 15:48:32 -05:00
drigato dc05d9ddaf CC-5649: Remove unused function, Application_Model_Show::populateAllShowsInRange 2013-12-17 17:09:59 -05:00
Naomi Aro f128621f78 Merge branch '2.5.x' into memcached 2013-12-17 16:26:54 -05:00
Naomi Aro 885503c624 CC-5645 : Replace PHP APC 2013-12-17 15:52:32 -05:00
Albert Santoni 653f0e02a4 CC-5648: Events are shifted down in the month view
* Fixed it.
2013-12-17 15:25:43 -05:00
Naomi Aro 41205dec79 CC-5645 : Replace PHP APC 2013-12-17 13:05:39 -05:00
Naomi 8daca16fac Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-16 17:14:55 -05:00
Naomi 424de61a11 CC-5619 : Browser caching can produce unexpected behaviour in the 'Listen Now' window.
upgrading to jPlayer 2.5.0
2013-12-16 17:14:00 -05:00
drigato 27c3637591 CC-5640: End time does not get updated when editing the current playing show
Was checking if the start time was in the past, but we should check if the
end time is in the past. This way you can extend or shrink shows that are currently playing.
2013-12-16 15:27:51 -05:00
Albert Santoni 0afaeadb15 CC-5641: Can Create Zero or Negative Length Shows
* Fixed two underlying causes of zero or negative length shows
  that could be created over DST time changes:
    - Fixed incorrect end time arithmetic which did not preserve the
      show duration.
    - Fixed a desynchronization issue due to FullCalendar handling
      events over DST differently from Airtime.
2013-12-14 22:38:33 -05:00
Albert Santoni f16d8ca2ea Fixed a bunch of annoying/major graphical issues with the calendar
* Fixed a bug where the calendar would keep shrinking smaller and
  smaller as you resized the window.
* Fixed the size and alignment of the time span combobox in the corner,
  which fixes a bug where the text was cut off.
* Fixed a bug where the schedule header would grow as you flipped
  to the next or previous week.
* Dropped javascript from the resizing of the calendar (for the most
  part).
2013-12-14 00:05:13 -05:00
Albert Santoni 15370702a4 Use the user timezone, not the station timezone in the Add Show form (by
default)

* Fixes really annoying problem where you click on the calendar, and it
  adds your show in the wrong spot.
2013-12-13 18:27:36 -05:00
Albert Santoni 6a468ff549 Fix a rendering problem if a zero length show happens 2013-12-13 18:27:14 -05:00
Albert Santoni 346036a9ca Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x
Conflicts:
	airtime_mvc/application/models/Show.php
2013-12-13 16:12:26 -05:00
Albert Santoni fa0a190277 Prevent division by zero if show lengths end up being zero 2013-12-13 16:10:36 -05:00
Naomi 99902bc10c CC-5627 : Check all Application_Common_DateHelper calculations that use timezone. 2013-12-13 15:16:51 -05:00
Naomi 445f1ebe4f CC-5627 : Check all Application_Common_DateHelper calculations that use timezone.
removing old crappy method.
2013-12-13 15:14:38 -05:00
Naomi 7a51b8d2ad CC-5627 : Check all Application_Common_DateHelper calculations that use timezone. 2013-12-13 15:06:52 -05:00
Naomi a45235d39b CC-5627 : Check all Application_Common_DateHelper calculations that use timezone 2013-12-13 15:03:02 -05:00
drigato 1dfcfd3e34 CC-5639: Repeating show's instances will vanish when editing single instance with overlapping warning
The wrong action was getting set when there were errors in the show form
2013-12-13 14:20:43 -05:00
drigato d841f11de3 CC-5638: Shows become unlinked when moving the end time back
Disabled linked checkbox field in show form while the show is playing
Added a warning message if the user attempts to change this value
Update .po and .mo files with the warning message string
2013-12-13 13:06:14 -05:00
drigato e8a8aeaf00 CC-5636: Php 5.5: Cannot update repeating show's name if that instance is updated
Made all show fields readonly when editing a repeating instance
2013-12-13 12:13:58 -05:00
Naomi bbccc2e7d3 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-12 17:18:17 -05:00
Naomi 87ac5dc294 CC-5627 : Check all Application_Common_DateHelper calculations that use timezone 2013-12-12 17:18:03 -05:00
drigato d0474f4247 Changed function title when editing a repeating instance
Removed a function call we don't need when editing a repeating instance
2013-12-12 16:47:55 -05:00
Albert Santoni 1577b7c41e CC-5627: Check all Application_Common_DateHelper calculations that use
timezone.

* Use the user timezone in eventFeedAction(), will fix a bug where
  shows at the edge of a week can disappear from the calendar if
  the user timezone is not the same as the station timezone.
2013-12-12 16:39:20 -05:00
Albert Santoni 27f0fa27e9 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-12 13:32:25 -05:00
Albert Santoni a96c2551ef CC-5627 : Check all Application_Common_DateHelper calculations that use
timezone.

* Fixed GetPlayOrderRange to be consistently return everything in UTC.
* ApiController liveInfoAction now returns everything consistently in
  the station timezone. This fixes negative remaining time that could
  occur in the embeddable JS Airtime widgets if you were logged in to
  Airtime while you viewed your website. (The widgets display in
  the browser's local time.)
* ScheduleController getCurrentPlaylistAction() returns everything
  consistently in the user timezone now.
2013-12-12 13:28:51 -05:00
drigato f37b9a3796 CC-5634: Can add/remove content to a linked show while one instance is currently playing
small logic fix
2013-12-12 13:23:20 -05:00
drigato fb793ff3e1 CC-5634: Can add/remove content to a linked show while one instance is currently playing
Fixed by removing option from context menu
2013-12-12 13:01:33 -05:00
drigato 974be86691 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-12 11:48:11 -05:00
drigato 9bbc3cf713 CC-5633: Can schedule overlapping shows
The overlapping show check was returning false too early
2013-12-12 11:48:00 -05:00
Albert Santoni f2fe04ba1d Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-12 11:33:28 -05:00
Albert Santoni 8986f1bc4f CC-5627 : Check all Application_Common_DateHelper calculations that use
timezone.

* Changed getRangeStartAndEnd() to use UTC explictly
2013-12-12 11:32:40 -05:00
Naomi 37ea29380b Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 18:56:29 -05:00
Naomi 67031a75fe CC-5627 : Check all Application_Common_DateHelper calculations that use timezone. 2013-12-11 18:56:19 -05:00
Albert Santoni abf3a50694 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 18:22:08 -05:00
Albert Santoni a9bd34fbcb CC-5627: Check all Application_Common_DateHelper calculations that use
timezone.

* Eliminate more strtotime usage, could fix on air light weirdness in
  some circumstances.
2013-12-11 18:20:40 -05:00
Naomi e6c971387b Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 17:35:47 -05:00
Naomi e6d28b250e CC-5629 : Smart Block timestamps aren't saved in UTC time 2013-12-11 17:35:31 -05:00
drigato 3a50f7a6dc Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 16:55:47 -05:00
drigato cfb6195523 CC-5632: System preferences don't get saved 2013-12-11 16:55:35 -05:00
Albert Santoni d575a478b5 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 15:56:03 -05:00
Albert Santoni 4d77d14d33 CC-5627: Check all Application_Common_DateHelper calculations that use
timezone.

* Removed strtotime usage from AddShowRepeats.php
2013-12-11 15:54:13 -05:00
Naomi c5f30c2b54 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 15:20:40 -05:00
Naomi b13d12eaac CC-5627 : Check all Application_Common_DateHelper calculations that use timezone. 2013-12-11 15:20:19 -05:00
drigato 8aa838bb34 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-11 14:45:28 -05:00
drigato 9237692782 CC-5630: Shows created on a DST border get scheduled an extra hour longer
The show start and end time need to be in the show's local timezone when adding
or subtracting time to the start and end time (in case of DST crossings). In this
case the end time was already converted to UTC when we tried to change the time.
2013-12-11 14:45:16 -05:00
Naomi 3d1f0b0d0e CC-5627 : Check all Application_Common_DateHelper calculations that use timezone. 2013-12-10 17:41:59 -05:00
Naomi 3a2f9a24b5 CC-5627 : Check all Application_Common_DateHelper calculations that use timezone.
working on getting widgets to work properly returning station local time.
2013-12-10 16:45:05 -05:00
Albert Santoni 0919915c6b Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-09 16:27:06 -05:00
drigato 310cfddd3a CC-5626: Context menu -> Edit -> Doesn't populate show forms properly 2013-12-09 14:53:58 -05:00
Naomi 0f28e0f1aa Merge branch '2.5.x' into cc-5594-date_default 2013-12-06 18:18:17 -05:00
Naomi a1a9ec34cc CC-5594 : Remove all date_default_timezone_get()
moving var serverTimezoneOffset to bootstrap,
also creating a var for userTimezoneOffset.
Utilities.js uses the userTimezoneOffset to calculate time in forms.
2013-12-06 18:17:30 -05:00
Albert Santoni d056ee8c2e Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-06 17:14:35 -05:00
Albert Santoni 2c7db0e83c CC-5555: Fix user preferences logic in preferences cache
* Fixes stream settings not dislaying
2013-12-06 17:11:07 -05:00
drigato cdfdbc4da2 Removed unused code 2013-12-06 16:51:13 -05:00
Naomi 7e9ca3e950 CC-5594 : Remove all date_default_timezone_get()
updating move show code to work with the user's timezone.
unified method signature for updateScheduleStartTime to always use the $diff param.
2013-12-06 12:33:36 -05:00
Naomi 061897a58b CC-5594 : Remove all date_default_timezone_get()
never rely on this method.
2013-12-05 16:00:52 -05:00
Naomi ec6a991090 CC-5594 : Remove all date_default_timezone_get()
missed a place to set show timezone,
setting UTC timezone in CcSchedule, very important!!
2013-12-05 15:57:00 -05:00
Naomi b1842fff34 Merge branch '2.5.x' into cc-5594-date_default 2013-12-05 15:13:54 -05:00
Naomi 39063aaadb CC-5594 : Remove all date_default_timezone_get()
using the user selected timezone in the form to calculate duration.
2013-12-05 15:12:01 -05:00
Naomi c732b44903 CC-5594 : Remove all date_default_timezone_get()
must allow 24 hours, but nothing greater to match old usage.
2013-12-05 13:11:36 -05:00
Naomi eb4cefa3ff CC-5594 : Remove all date_default_timezone_get()
DateTime here was relying on a timezone that wasn't what the user selects in the timezone drop down on the form.
2013-12-05 13:04:02 -05:00
Naomi ed74470803 CC-5594 : Remove all date_default_timezone_get()
updating dashbaord information for timezone.
2013-12-04 17:54:28 -05:00
Naomi 8f1e73edf5 CC-5594 : Remove all date_default_timezone_get()
fixing up controllers
2013-12-04 16:26:11 -05:00
Naomi 20b32bab80 CC-5594 : Remove all date_default_timezone_get()
simplifying code, removing unnecessary calculations.
2013-12-04 16:05:18 -05:00
Naomi e508d141ed CC-5594 : Remove all date_default_timezone_get()
resizing must calculate from displayed calendar settings.
2013-12-04 15:48:32 -05:00
Naomi e71f306c7d CC-5594 : Remove all date_default_timezone_get()
setting display time using user timezone.
last played was never converted properly for display previously.
2013-12-04 15:24:27 -05:00
Naomi 10d8351f93 CC-5594 : Remove all date_default_timezone_get()
setting display timezone to be user's timezone for library utime and mtime.
2013-12-04 15:16:07 -05:00
Naomi aafeeb6aed CC-5594 : Remove all date_default_timezone_get()
replacing timezone with the user timezone pref.
2013-12-04 15:11:40 -05:00
Naomi c8cfdadb90 CC-5594 : Remove all date_default_timezone_get()
removing unused old methods, changing listener stats to use the user timezone for display.
2013-12-04 15:06:07 -05:00
drigato 86ed77a106 CC-5599: Can drag and drop an edited repeating instance on calendar
Fixed by properly checking if a show is repeating or not
2013-12-04 15:02:14 -05:00
drigato ab435ce3ec CC-5598: Deleting an edited, repeated instance deletes the entire show
Fixed by setting the correct url action
2013-12-04 14:50:22 -05:00
Naomi 82b40f52e7 Merge branch '2.5.x' into cc-5594-date_default 2013-12-04 14:42:30 -05:00
Naomi 447ad4e3c6 CC-5594 : Remove all date_default_timezone_get()
correcting show contents timezone.
2013-12-04 14:39:56 -05:00
drigato 320cecd339 Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-12-04 14:36:30 -05:00
Albert Santoni 79af606418 Merge branch '2.5.x' of https://github.com/danielhjames/Airtime into 2.5.x 2013-12-04 14:33:53 -05:00
Naomi e6808b0c12 CC-5594 : Remove all date_default_timezone_get()
removing now unused old methods
2013-12-04 14:31:23 -05:00
drigato 49ed0cf0f1 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
Removed redundant function call to update last_scheduled column on a cc_show_instance
2013-12-04 14:28:16 -05:00
drigato 7f8f084c98 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
Refactored cc_show_day->getLocalEndDateAndTime() function
2013-12-04 14:17:19 -05:00
Naomi c9773d2a0e CC-5594 : Remove all date_default_timezone_get() 2013-12-04 14:13:19 -05:00
drigato 463d286ac5 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
Refactored cc_show->isRepeating() function
2013-12-04 14:00:31 -05:00
drigato b78fa994f7 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
Removed redundant timestamp var
Removed redundant DateTime object creation
2013-12-04 12:20:16 -05:00
drigato 22595c1098 CC-5596: Can Recreate an Instance in a Location that has been modified
Fixed by updating the modified instance's start/end time and leaving as a placeholder
for future show updates
2013-12-04 11:36:38 -05:00
drigato 6c71b17024 CC-5595: Improper day of week comparison
Need to convert show instance start time to the show's local timezone before getting
the repeat day of week
2013-12-04 10:05:32 -05:00
drigato 02453c52ee Copy/paste error
Was setting cc_show_days twice
2013-12-04 09:00:43 -05:00
drigato a164416c84 Fixed minor bugs 2013-12-04 09:00:43 -05:00
drigato ef8af1b724 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
- Fixed resizing repeating shows to not include edited instances
- Fixed context menu on repeating shows with edited instances
- Fixed populated the show form when editing a single instance
2013-12-04 09:00:43 -05:00
drigato a465b5a770 CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show
Create a new cc_show_day rule instead of a new cc_show
2013-12-04 09:00:43 -05:00
drigato 4253608948 Small fix to overlapping show check 2013-12-03 15:14:53 -05:00
drigato c18d53f403 CC-5593: Overlapping Show Bug
Get instance depending on whether instance id is provided or not
2013-12-03 15:07:40 -05:00
drigato d49131db48 CC-5593: Overlapping Show Bug
Need to check if the show instance has been deleted
2013-12-03 14:39:53 -05:00
drigato eae93008b4 CC-5589: SQL error when adding/moving a scheduled item
Error was occuring when a moved item didn't exist in a linked show instance
Error was also occuring when trying to insert item into a schedule localtion
that does not exist in a linked instance.

Fixed by skipping the move action if the file does not exist in a linked instance,
cleaning up the position numbers after deleting schedule items, and by
setting the insert time to the show start time in a linked instance is empty
2013-12-02 16:40:15 -05:00
Naomi c4872ccd0f CC-5450 : Refactor Media Management
using a propel aggregate column causes circular reference problems.
2013-11-28 18:02:26 -05:00
Naomi 116a0aedbc CC-5450 : Refactor Media Management
adding back aggregate column behaviour for playlist lengths based on media_content entries.
dynamic blocks will have a different way to calculate duration.
2013-11-28 15:28:37 -05:00
Naomi cf34a030de CC-5450 : Refactor Media Management
fixing up services so controllers will just use one instance.
2013-11-27 18:21:22 -05:00
Naomi 152f44e093 CC-5450 : Refactor Media Management
playlist buttons are all implemented.
2013-11-27 18:14:05 -05:00
Naomi 9118f942cc CC-5450 : Refactor Media Management
some basic saving going on.
2013-11-27 16:49:37 -05:00
Naomi 7a07cc4510 CC-5450 : Refactor Media Management
small fixes for webstream items in playlists
2013-11-27 15:46:25 -05:00
Naomi 017e7e274b CC-5450 : Refactor Media Management
dialog for adding webstreams mostly done, just need to redraw webstream datatable and disable the UI while the request is processing.
2013-11-27 15:16:45 -05:00
Naomi 0bda9e5d30 CC-5450 : Refactor Media Management
replacing proper length formatter for playout history
creating a dialog for adding/editing web streams.
dialog currently seems to have some weird creation problem.
2013-11-27 14:04:51 -05:00
Naomi b26dbd0af5 CC-5450 : Refactor Media Management
refactoring playlists
-presentation class for media types
-playlist cues, fades, moving, deleting only saved now when save button is pressed.
-updating context menu js
2013-11-26 17:16:34 -05:00
drigato f571000657 Fixed updating single show instance problem where it wasn't fetching
the current instance
2013-11-26 12:32:05 -05:00
drigato 6ea0cb5918 CC-5571: Overlapping show check in wrong sometimes
The incorrect number of days we're getting added to create repeat instances
because we were checking the start week day in UTC instead of local time
2013-11-22 10:51:16 -05:00
drigato 89feb3d0fb Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x 2013-11-22 09:39:37 -05:00
drigato 52f0d5a13b CC-5570: Tracks get scheduled ahead of their show start time 2013-11-22 09:39:19 -05:00
Daniel James e9362e6429 Corrections to Hungarian localization 2013-11-20 10:55:34 +00:00
Naomi 59f4a6c988 CC-5450 : Refactor Media Management
only search string columns for now.
2013-11-12 16:22:17 -05:00
Naomi 38cf2fa38e CC-5450 : Refactor Media Management
retrieving results for playlist table.
2013-11-12 15:26:09 -05:00
Naomi 44492ee207 CC-5450 : Refactor Media Management
configuring audiofile and webstream datatable.
2013-11-12 15:01:20 -05:00
Daniel James d30ee4ecc5 Refined Hungarian translation, thanks Zsolt! 2013-11-12 15:06:26 +00:00
Naomi a686b46920 CC-5450 : Refactor Media Management
using recursion to build nested json responses.
2013-11-11 19:02:10 -05:00
Naomi 9a7abff738 Merge branch '2.5.x' into propel16test 2013-11-11 17:23:26 -05:00
Naomi 757e35aaf9 CC-5555 : Implement simple caching for preferences
comment out logging to not flood logs.
2013-11-11 17:22:55 -05:00
Naomi c20bff93bc Merge branch '2.5.x' into propel16test 2013-11-11 17:16:45 -05:00
Naomi b8a084998e CC-5555 : Implement simple caching for preferences
cache key creation change.
2013-11-11 17:08:15 -05:00
Naomi 0bae60138f CC-5555 : Implement simple caching for preferences
forgot to get rid of user id here.
2013-11-11 16:50:35 -05:00
Naomi f615e176e2 CC-5555 : Implement simple caching for preferences
better to include the key in the error message
2013-11-11 16:36:21 -05:00
Naomi f69dd123ca CC-5555 : Implement simple caching for preferences
making sure locale/timezone is returned properly in generic calls.
2013-11-11 16:32:43 -05:00
Naomi 06323a40fd CC-5555 : Implement simple caching for preferences
fixing up code so user id is never passed in manually to a preference getter.
2013-11-11 16:20:51 -05:00