| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2010-01-08 | Remove debug code. | Bharat Mediratta | |
| 2010-01-08 | Add item::random() to return a random Item_Model. | Bharat Mediratta | |
| 2010-01-08 | Allow the "name" param in get() so that you can restrict the query to ↵ | Bharat Mediratta | |
| children with a given name. | |||
| 2010-01-07 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| 2010-01-05 | Improve REST tag support. | Bharat Mediratta | |
| - Add support for retrieving a list of members from a collection - Implement put(), post() and delete() for tags. - Use tag_rest::delete() as a way to remove members from the tag collection | |||
| 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. | |||
| 2010-01-04 | Fix the logout link to send you back to the current url. The old | Bharat Mediratta | |
| approach depended on having an $item, which is not the case on all pages (eg: tag pages). Also, check the CSRF in the logout controller, else you can use the logout link as a blind forwarder. | |||
| 2010-01-03 | Simplify the REST API code. Here's what I did: | Bharat Mediratta | |
| 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-02 | Remove the Rest_Exception::trigger method. | Tim Almdal | |
| 2009-12-31 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| 2009-12-31 | A more thorough fix for #745 and #940. Stop using the referer to | Bharat Mediratta | |
| guess how to send the user back. Instead, proxy the originating item id through the edit forms so that we can tell exactly what page we were on when we began editing. If we were viewing the item, then redirect to its new url (in case it changed) to fix ticket #745. But if we were viewing some other item, then just stay on the current page to fix #940. The page_type approach didn't work because you'd have the same "collection" page_type when doing a context menu edit for an album. | |||
| 2009-12-31 | Create a Rest_Exception class and use it to convey status to the client ↵ | Tim Almdal | |
| instead of calling rest::forbidden and other rest helper error messages. | |||
| 2009-12-31 | Change the gallery_rest::_validate() method to use the form rules in ↵ | Tim Almdal | |
| Item_Model. Change the Duplicate errors to sentence case. And generally clean up the flow in _validate(). | |||
| 2009-12-30 | 1) Remove the rest::not_found method and replace it with "throw new ↵ | Tim Almdal | |
| 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 | Rollback the refactoring of the update into a helper method. Also remove the ↵ | Tim Almdal | |
| refactoring for check for commits | |||
| 2009-12-30 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| 2009-12-29 | Another holdover from the K2.4 conversion. In R2.4 the url::current(true) ↵ | Tim Almdal | |
| was returning an empty string. This fixes ticket #955. | |||
| 2009-12-27 | Clean up validation the check for duplicate names or slugs, finish ↵ | Tim Almdal | |
| converting the rest API to Kohana 2.4 | |||
| 2009-12-26 | Forgot to commit local changes to item helper for K2.4 | Tim Almdal | |
| 2009-12-26 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| Conflicts: modules/gallery/controllers/albums.php modules/gallery/controllers/movies.php modules/gallery/controllers/photos.php | |||
| 2009-12-24 | indentation fix. | Bharat Mediratta | |
| 2009-12-24 | whitespace fix | Bharat Mediratta | |
| 2009-12-23 | When normalizing the rest request don't assume that the additional arguments ↵ | Tim Almdal | |
| are acutall a path. Leave it up to the handler to determine. | |||
| 2009-12-23 | Updated the unit tests to match the current API | Tim Almdal | |
| Corrected a problem identified with the unit tests... failed if the path was empty on PUT. | |||
| 2009-12-22 | Fix where tuple sent to descendant_counts() -- it needs to be wrapped in an ↵ | Bharat Mediratta | |
| array | |||
| 2009-12-22 | Add merge_or_where() to MY_Datatabase_Builder and use that instead of | Bharat Mediratta | |
| or_where() for compatibility and convenience. Caught by failing unit tests. | |||
| 2009-12-22 | ORM::factory() in K24 does not allow you to specify an alternate key | Bharat Mediratta | |
| for lookup. So instead of doing: ORM::factory("foo", array("some_key" => "some_value")) you have to do: ORM::factory("foo"->where("some_key", "=" "some_value")->find() | |||
| 2009-12-22 | Update the api so it allows images to be uploaded. | Tim Almdal | |
| 2009-12-21 | Added validation to the edit functionality, since we can't trust any input | Tim Almdal | |
| 2009-12-18 | Add the parent path to the resource | Tim Almdal | |
| 2009-12-18 | Add the name field to remote interface. | Tim Almdal | |
| 2009-12-17 | In Kohana 2.4, ORM no longer does the find_all() call for us when we | Bharat Mediratta | |
| retrieve related ORMs. If we tack a find_all() on the end, it breaks the User_Definition interface so create User_Model::groups() and Groups_Model::users() as glue. | |||
| 2009-12-17 | Convert some database queries. | Bharat Mediratta | |
| 2009-12-17 | Update all database queries such that we can run "php index.php | Bharat Mediratta | |
| package" and generate the same SQL as before. | |||
| 2009-12-16 | Make sure we always return a children array for albums. | Tim Almdal | |
| 2009-12-15 | Include the thumb, resize and fullsize sizes (height & width) in the ↵ | Tim Almdal | |
| resource contents returned via the rest interface. | |||
| 2009-12-15 | Change what is used as the url to the item. | Tim Almdal | |
| 2009-12-15 | Add the resize url to returned resource. | Tim Almdal | |
| 2009-12-15 | Updates the the interface based on actually using it. | Tim Almdal | |
| 2009-12-14 | Merge branch 'master' into talmdal_dev | Tim Almdal | |
| 2009-12-13 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| Conflicts: modules/gallery/helpers/identity.php | |||
| 2009-12-10 | Log the entire stack trace when we catch an exception. | Bharat Mediratta | |
| 2009-12-09 | Add the REST delete processing for albums/photos/movies | Tim Almdal | |
| 2009-12-09 | Implement the RESTful interface for albums/photos/movies | Tim Almdal | |
| 2009-12-09 | Refactor the code to check for name or slug conflicts and to update code out ↵ | Tim Almdal | |
| of {Albums|Photos|Movies)_Controller and into the item helper so we can reuse it from the rest put handler. | |||
| 2009-12-09 | Use the relative url cache to look up resources instead of the relative ↵ | Tim Almdal | |
| path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage. | |||
| 2009-12-08 | Add the REST get handler for albums/photos/movies | Tim Almdal | |
| 2009-12-08 | Add another error handler "not found" to the rest API. | Tim Almdal | |
| Implement the get_album rest request handler. | |||
| 2009-12-06 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| 2009-12-06 | Update database queries. | Bharat Mediratta | |
