| Age | Commit message (Collapse) | Author | 
|---|
|  | failure of some kind we can restart the upgrade and it'll continue.
Fixes ticket #1325. | 
|  |  | 
|  |  | 
|  |  | 
|  | key.  This is useful if you think it's been compromised in some way.
Fixes ticket #1226. | 
|  | Fixes ticket #1205. | 
|  | simple, actually.  Fixes ticket #1173. | 
|  | method to set the content type header and encode the response as a json object | 
|  | in my last change. | 
|  | returns just the access key string for the active user.  That's how we
use the API, so keep it simple. | 
|  |  | 
|  | which sucks, but it's totally unobtrusive because it's a header so
that's ok.  Decided that the current version is "3.0" although it will
surely change before the final 3.0 release.
Fixes ticket #1148 | 
|  | as they are no longer valid. (i.e. all the related users have been deleted.) | 
|  | REST entities. | 
|  |  | 
|  |  | 
|  | multi step process to refer to REST access keys as "access_key"
everywhere.  Bump the rest module to version 2. | 
|  |  | 
|  |  | 
|  |  | 
|  | "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() | 
|  | response. | 
|  | 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. | 
|  | And make the REST auth token less predictable by using a better source for randomness. | 
|  |  | 
|  |  | 
|  | Conflicts:
	modules/gallery/libraries/MY_ORM.php | 
|  |  | 
|  |  | 
|  | 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
      )
    )
  ) | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | does the rest.  This function is symmetrical to rest::resolve. | 
|  |  | 
|  |  | 
|  | 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. :-) | 
|  |  | 
|  | 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. | 
|  | 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 | 
|  |  | 
|  | so as not to impact other tests. | 
|  |  | 
|  | instead of calling rest::forbidden and other rest helper error messages. | 
|  | 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. | 
|  |  | 
|  | converting the rest API to Kohana 2.4 |