| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2010-04-07 | Merge bharat_dev rest implementation | Tim Almdal | |
| 2010-04-06 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| 2010-03-31 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| Conflicts: modules/rest/controllers/rest.php | |||
| 2010-03-30 | Rest -> REST | Bharat Mediratta | |
| 2010-03-30 | Rename "access_token" to "access_key" in the code for consistency. | Bharat Mediratta | |
| 2010-03-30 | Rename "user_access_tokens" table to "user_access_keys" as step 1 of a | Bharat Mediratta | |
| multi step process to refer to REST access keys as "access_key" everywhere. Bump the rest module to version 2. | |||
| 2010-03-21 | If the access token is not set, then look in the post data. | Tim Almdal | |
| 2010-03-13 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| 2010-03-13 | Whitespace correction | Tim Almdal | |
| 2010-03-13 | Changes to support updating the child elements within an album. In this ↵ | Tim Almdal | |
| change the urls of the children are sent up asan array of post fields children[0].... children[n]. If an existing child is not included it is deleted. Including a url to an child in another album will move the child. Changing the order of the children will respect the order of the children, if the sort column is 'weight' | |||
| 2010-03-13 | Update tests to reflect the fact that you have to be logged in to do anything. | Bharat Mediratta | |
| 2010-03-13 | Guests don't get access to the REST API. | Bharat Mediratta | |
| 2010-03-05 | Update tests to reflect the fact that you have to be logged in to do anything. | Bharat Mediratta | |
| 2010-03-03 | Guests don't get access to the REST API. | Bharat Mediratta | |
| 2010-03-03 | Update the copyright to 2010. It's only 3 months into the year :-) | Bharat Mediratta | |
| 2010-02-24 | Remove redundant print statement. rest::reply() does the print so having the ↵ | Tim Almdal | |
| extra print statement could lead to problems. | |||
| 2010-02-20 | When using rest::reply(), don't call var_export() if the response is empty. | Bharat Mediratta | |
| 2010-02-19 | Refactor away the "display_all" construct in User_Profile_Controller. | Bharat Mediratta | |
| "display_all" is too coarse, and we should be letting event handlers make the appropriate decision on what to display and when. This duplicates some code, but it's now very clear in the event handlers what's getting shown. Throw a 404 if we try to view the user profile for a missing user. The only feature change in this should be that we now display the name, full name and website for a user to any other registered user, which makes sense since these are typically public fields. Don't show any of the edit buttons unless identity::is_writable() | |||
| 2010-02-14 | If the return object is empty still return the empty object in the json ↵ | Tim Almdal | |
| response. | |||
| 2010-02-07 | Create the concept of a "failed authentication" as semantically | Bharat Mediratta | |
| separate from a successful or failed login. 1) Rename user_login_failed event to user_authenticate_failed 2) Rename failed_logins table to failed_auth (bump Gallery module to v27 to rename the table) 3) auth::too_many_failed_logins -> auth::too_many_failures 4) auth::record_failed_auth_attempts -> auth::record_failed_attempts auth::clear_failed_auth_attempts -> auth::clear_failed_attempts | |||
| 2010-01-31 | Fix lots of warnings that pop up when we're in E_STRICT mode. They're | Bharat Mediratta | |
| 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-30 | Refactory auth::too_many_failed_logins() out of | Bharat Mediratta | |
| auth::validate_too_many_failed_logins() to conceptually separate the two. | |||
| 2010-01-30 | Protect REST login controller from brute force attacks too. | Andy Staudacher | |
| And make the REST auth token less predictable by using a better source for randomness. | |||
| 2010-01-29 | Use ? or & as appropriate when appending output=html. | Bharat Mediratta | |
| 2010-01-29 | Use var_export instead of print_r for better clarity. | Bharat Mediratta | |
| 2010-01-28 | Do all the html::clean|purify calls in the views and not the controller. ↵ | Tim Almdal | |
| Also clean the subject line and email message body of the contact user email. | |||
| 2010-01-25 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| Conflicts: modules/gallery/libraries/MY_ORM.php | |||
| 2010-01-24 | Add the active notifications and rest api key to user profile page. | Tim Almdal | |
| 2010-01-23 | Update tests for recent REST changes. | Bharat Mediratta | |
| 2010-01-22 | output_type --> output | Bharat Mediratta | |
| 2010-01-22 | Reshape the rest code to be more consistent with regards to | Bharat Mediratta | |
| relationships. Now when you view a resource, it has 4 top level elements: url: the url of this resource resource: array of key value pairs describing the resource members: array of urls to members of this collection relationships: array of array of members. Relationships are a special type of collection that links two different resources together. To remove a relationship, just DELETE its url. To create a relationship, POST to its collection. Individual modules can add their own relationships to any resource via a callback mechanism. Example: Array( [url] => http://g3.com/rest/item/1 [resource] => Array ( [id] => 1 [album_cover_item_id] => 4 [captured] => [created] => 1264056417 [description] => [height] => ... ) [members] => Array( [0] => http://g3.com/rest/item/2 [1] => http://g3.com/rest/item/3 [2] => http://g3.com/rest/item/4 [3] => http://g3.com/rest/item/5 ... ) [relationships] => Array( [tags] => Array ( [0] => http://g3.com/rest/tag_item/2,1 [1] => http://g3.com/rest/tag_item/23,1 ) ) ) | |||
| 2010-01-21 | whitespace. | Bharat Mediratta | |
| 2010-01-20 | Improve robustness in resolve() against bad urls.. | Bharat Mediratta | |
| 2010-01-20 | Rewrite the tests to be simpler and more direct. | Bharat Mediratta | |
| 2010-01-20 | Move access key creation into a helper function. | Bharat Mediratta | |
| 2010-01-19 | Let the Rest_Controller functions throw a Rest_Exception since | Bharat Mediratta | |
| the Kohana framework will handle it properly. | |||
| 2010-01-19 | Move rest::send_headers back into Rest_Exception. | Bharat Mediratta | |
| 2010-01-19 | Make Rest_Exception extend Kohana_Exception so that we can let it | Bharat Mediratta | |
| bubble to the top and then in sendHeaders have it send the right response code. | |||
| 2010-01-19 | Extend Gallery_Unit_Test_Case instead of Unit_Test_Case. | Bharat Mediratta | |
| 2010-01-19 | Don't send headers if they're already sent. | Bharat Mediratta | |
| 2010-01-19 | Use $input instead of Input::instance() | Bharat Mediratta | |
| 2010-01-19 | Use an appropriate json content type | Bharat Mediratta | |
| 2010-01-19 | Change rest::url() to take a module name and a resource. The module | Bharat Mediratta | |
| does the rest. This function is symmetrical to rest::resolve. | |||
| 2010-01-19 | Have the rest calls return an array and print it out in the | Bharat Mediratta | |
| controller. This is a clearer workflow; controllers generate output, not helpers. It's also easier to test. | |||
| 2010-01-19 | Add rest::url() for convenience. | Bharat Mediratta | |
| 2010-01-17 | Catch ORM_Validation_Exception and turn it into a 400 Bad Request with | Bharat Mediratta | |
| appropriate error output. | |||
| 2010-01-10 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| 2010-01-09 | Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any where | Tim Almdal | |
| clauses and deletes all the entries in the table unless an array of id's are passed as the parameter. This fix used the Database_builder to specify any where conditions. Thanks psvo for find the first one. :-) | |||
| 2010-01-08 | Change url parsing in resolve() to ignore the query string. | Bharat Mediratta | |
| 2010-01-04 | Further progress on refining the REST server side code. | Bharat Mediratta | |
| 1) Deal in fully qualified URL resources through the rest interface. All rest methods are now passed the complete url in request->url. 2) Create rest::resolve() which lets individual resource definition code convert a full url into the appropriate matching resource. Implement gallery_rest::resolve() and tag_rest::resolve() 3) Reimplement tag_rest's get() and post() methods. They're much simpler now. 4) Implement the tags_rest helper which supports working with the entire tags collection. | |||
