[ckan-changes] [okfn/ckanjs] 779caf: Added support for Dataset model having a collectio...

noreply at github.com noreply at github.com
Mon Jul 11 17:36:25 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckanjs

  Commit: 779caf1f0cdc815d59717b60f3bc51b7db104768
      https://github.com/okfn/ckanjs/commit/779caf1f0cdc815d59717b60f3bc51b7db104768
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Added support for Dataset model having a collection of Resources. Ticket #5


  Commit: 5289ea9679c422da80a92c0af47893aa79ccbf37
      https://github.com/okfn/ckanjs/commit/5289ea9679c422da80a92c0af47893aa79ccbf37
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Implemented .toJSON() in Base model to convert models/collections to objects


  Commit: dff868e540d4fe7c19a393370a6453817ef49a72
      https://github.com/okfn/ckanjs/commit/dff868e540d4fe7c19a393370a6453817ef49a72
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Fixed an issue where new Datasets did not have resource collections


  Commit: 3a8b43dd68ad424e165cd005575a6ad0fc635ab6
      https://github.com/okfn/ckanjs/commit/3a8b43dd68ad424e165cd005575a6ad0fc635ab6
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Resource models now have a "dataset" attribute. Ticket #5


  Commit: 848676b9076dd64f08292fea0aa41c381a0ee022
      https://github.com/okfn/ckanjs/commit/848676b9076dd64f08292fea0aa41c381a0ee022
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Resource model now has .fetch() .save() and .destroy() methods. Ticket #5


  Commit: b6eb81f6de8551f9f117aa28068a8ccada8e703f
      https://github.com/okfn/ckanjs/commit/b6eb81f6de8551f9f117aa28068a8ccada8e703f
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Dataset is now appended to the Resource in the .set() method

This means that when creating manual resources a Dataset model must always
be provided. We did this because the Resource is unable to easily create
new Dataset instances without the possibility of duplication.


  Commit: cb069f8800422e7cbf18a79c0f9f4edb1ee06c72
      https://github.com/okfn/ckanjs/commit/cb069f8800422e7cbf18a79c0f9f4edb1ee06c72
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/client.js
  M test/client-test.js

  Log Message:
  -----------
  Added .getDatasetById() to Client


  Commit: d218b630213e919082dc5d08a0de537840f54885
      https://github.com/okfn/ckanjs/commit/d218b630213e919082dc5d08a0de537840f54885
  Author: Aron Carroll <self at aroncarroll.com>
  Date:   2011-07-11 (Mon, 11 Jul 2011)

  Changed paths:
    M lib/model.js
  M test/model-test.js

  Log Message:
  -----------
  Fixed the .toJSON() method on the Resource model


Compare: https://github.com/okfn/ckanjs/compare/8b00470...d218b63




More information about the ckan-changes mailing list