From e14619e15669f5638afae780922189d26e83483f Mon Sep 17 00:00:00 2001 From: Naren Ranjit Date: Fri, 9 Mar 2018 11:42:57 -0800 Subject: [PATCH] udate docs and changelog --- CHANGELOG.md | 5 +++++ src/managers/auth-manager.js | 7 +++++++ src/service/run-api-service.js | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08895283..2fd3a93d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ #### Bug Fixes: - `reuse-last-initialized` strategy used to select the last initialized run even if it was trashed; now it ignores trashed runs. + +#### Improvements: +- `reuse-last-initialized`, `reuse-last-unsaved`, `reuse-across-sessions` only query for the last run, instead of querying for every run and picking the last one. Should have no practical impact, except it'll be faster if you have a lot of runs. + +#### Features: - For Vensim models you can now pass in `cinFiles` as an option while creating a run. e.g. ``` diff --git a/src/managers/auth-manager.js b/src/managers/auth-manager.js index 71f7a829..3b1ad245 100644 --- a/src/managers/auth-manager.js +++ b/src/managers/auth-manager.js @@ -336,6 +336,13 @@ AuthManager.prototype = $.extend(AuthManager.prototype, { /** * Helper method to check if you're currently logged in + * + * **Example** + * + * var amILoggedIn = authMgr.isLoggedIn(); + * + * **Parameters** + * @param {none} none * @return {Boolean} true if you're logged in */ isLoggedIn: function () { diff --git a/src/service/run-api-service.js b/src/service/run-api-service.js index 05d5e57d..d239c835 100644 --- a/src/service/run-api-service.js +++ b/src/service/run-api-service.js @@ -321,6 +321,10 @@ module.exports = function (config) { /** * Removes specified runid from memory * + * **Example** + * + * rs.removeFromMemory('bb589677-d476-4971-a68e-0c58d191e450'); + * * See [details on run persistence](../../../run_persistence/#runs-in-memory) * @param {String} [runID] id of run to remove * @param {Object} [filters] (Optional) Object containing filters and operation modifiers. Use key `include` to list model variables that you want to include in the response. Other available fields include: `startrecord`, `endrecord`, `sort`, and `direction` (`asc` or `desc`).