Bharat Mediratta
d45a737779
Update copyright to 2013. Fixes #1953 .
2013-01-21 01:22:01 -05:00
Bharat Mediratta
bf2bb3e1ea
Update copyright to 2012. #1822
2012-02-27 09:48:23 -08:00
Bharat Mediratta
5e6a6d58c2
Follow on to c101151616 -- delete all
...
tags in setup so that we have a blank slate, otherwise create_tag()
will fail because sometimes there'll be other tags in the system. #1628
2011-05-24 20:49:09 -07:00
Andy Lindeman
c101151616
Allow tags to be merged by renaming
...
* Fixes #1628
2011-04-23 12:04:43 -04:00
Bharat Mediratta
423daa52d5
Update copyright to 2011.
2011-01-21 23:01:06 -08:00
Bharat Mediratta
1ba9d079bf
post_test() should be using admin, not guest.
2010-06-19 15:00:33 -07:00
Bharat Mediratta
af71df3d0f
Update tests to reflect recent changes to the REST API.
2010-04-17 15:35:09 -07:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Bharat Mediratta
d4423eb349
Reset the active user to admin in all test cases where we change the
...
user to something else.
2010-02-23 13:50:57 -08:00
Bharat Mediratta
c050acf30a
Fix lots of warnings that pop up when we're in E_STRICT mode. They're
...
mostly issues around uninitialized variables, calling non-static
functions in a static context, calling Session functions directly
instead of on its singleton, passing non-variables by reference, and
subclasses not using the same interface as the parent class.
2010-01-31 16:07:41 -08:00
Bharat Mediratta
359f6108b9
Remove edit permissions across the board.
2010-01-30 23:42:32 -08:00
Bharat Mediratta
a04d0d2789
Add missing permission checks.
...
Make the tag relationship an associative array.
2010-01-29 19:42:38 -08:00
Bharat Mediratta
ec0f89f10a
Change "resource" to "entity" in REST responses. They're all
...
resources, but we differentiate resources as collections and entities.
2010-01-27 21:40:48 -08:00
Bharat Mediratta
7667864d61
Minor test-only fixes.
2010-01-27 09:55:00 -08:00
Bharat Mediratta
a609694018
Update tests for recent REST changes.
2010-01-23 12:13:14 -08:00
Bharat Mediratta
ca909a49ae
New tests for tag_item_rest
2010-01-22 01:09:38 -08:00
Bharat Mediratta
10dfe9767d
Updated tests to pass after recent refactor of tag_rest.
2010-01-22 00:59:37 -08:00
Bharat Mediratta
27acb156bc
Updated tests to pass after recent refactor of tags_rest.
2010-01-22 00:51:23 -08:00
Bharat Mediratta
6be5a71cc2
Actually deny permissions in delete_item_from_tag_fails_without_permissions_test()..
2010-01-21 20:16:57 -08:00
Bharat Mediratta
697d84457f
Rewrite and greatly simplify the tests for the new tag_rest implementation.
2010-01-20 21:15:11 -08:00
Bharat Mediratta
8bf73d4b4c
New test for tags_rest.php
2010-01-20 00:52:32 -08:00
Bharat Mediratta
276d7de5b6
Simplify and update for model based validation.
2010-01-20 00:14:05 -08:00
Bharat Mediratta
76da85a1a0
Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.
2010-01-19 22:38:19 -08:00
Bharat Mediratta
ebb909625c
Merge branch 'master' into bharat_dev
2010-01-18 12:54:26 -08:00
Bharat Mediratta
9384f987bb
Coerce some integers to strings now that ORM isn't typecasting anymore.
2010-01-18 12:52:52 -08:00
Bharat Mediratta
0e3327bca7
Simplify the REST API code. Here's what I did:
...
1) Simplify gallery_rest to return flat models, no children and do no
validation for now.
2) Flatten the REST replies and use HTTP codes to indicate
success/failure instead of additional status messages.
3) Use the message and error code support in the base Exception class,
instead of brewing our own in Rest_Exception.
4) Get rid of rest::success() and rest::fail() -- we only need
rest::reply() since all failures are covered by throwing an
exception.
5) Get rid of /rest/access_key and just use /rest for authentication.
6) Inline and simplify rest::normalize_request since we only use it once
7) Change rest::set_active_user to succeed or throw an exception
8) Extract Rest_Exception::sendHeaders into rest::send_headers()
Here's what's currently broken:
1) Data validation. There currently is none
2) Logging. That's gone too
3) image block and tag code is broken
4) Tests are broken
5) No movie support
2010-01-03 20:30:35 -08:00
Tim Almdal
ff95c4079e
Fix the tag_rest helper tests
2010-01-02 15:48:54 -08:00
Tim Almdal
28597ba533
Correct file structure tests, Have the tests delete the userid they create so as not to impact other tests.
2010-01-02 14:31:59 -08:00
Tim Almdal
40d496edee
Remove extra debug statement in rest_controller::access_key() and restructure the Rest_Tag_Helper_Test to only create items as required for test in each test.
2009-12-31 13:24:00 -08:00
Tim Almdal
11792a12bb
1) Remove the rest::not_found method and replace it with "throw new Kohana_404_Exception
...
2) Don't use the input path to lookup the item via relative_path_cache. Instead use url::get_item_from_uri method.
2009-12-30 17:08:01 -08:00
Tim Almdal
bccb6fc021
Clean up validation the check for duplicate names or slugs, finish converting the rest API to Kohana 2.4
2009-12-27 08:32:12 -08:00
Tim Almdal
3060a6f662
Merge branch 'master' into talmdal_dev
...
Conflicts:
modules/gallery/controllers/albums.php
modules/gallery/controllers/movies.php
modules/gallery/controllers/photos.php
2009-12-26 11:24:50 -08:00
Tim Almdal
586f2d78b8
Add the functionality to add, delete and rename tags via the Gallery3 remote interface.
2009-12-24 19:25:14 -08:00
Bharat Mediratta
1fd0e14359
Convert all DB where() calls to take 3 arguments.
...
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26 12:09:04 -08:00
Bharat Mediratta
5495037a3d
Gee it's May already. Update copyright to 2009.
2009-05-13 20:04:58 +00:00
Bharat Mediratta
5713e3c66e
Change photo::create() and album::create() to take ORM instances
...
instead of ids.
2008-12-23 04:36:09 +00:00
Tim Almdal
dfd0281512
Remove test since the method to be tested was removed
2008-11-26 15:18:09 +00:00
Tim Almdal
de56a33c9c
Clean tag creation
2008-11-26 06:37:12 +00:00
Tim Almdal
03bf3a6af2
Remove the more or less links
2008-11-26 05:08:43 +00:00
Tim Almdal
d554adc484
1) Changed how the test tags are generated to be able to create a better distribution
...
2) Added a new helper function "load_buckets" assign the class suffix to each tag
3) Created a unit test to test the load_buckets function
2008-11-25 18:14:52 +00:00
Tim Almdal
b2af9ed470
Modify the test controller to call tag_installer::install and uninstall
...
Created the first tag unit test
2008-11-25 07:05:03 +00:00
Tim Almdal
f81a9879be
Moved the creation of tags into the tag helper library. Added a count field to the tags table. Bharat, I know you said not to worry about caching, but I want to explore what are some of the issues with keeping track of the counts as we go. (i.e. is it a pain in the a__)
2008-11-24 23:18:32 +00:00