Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement utility function for loading a context. #251

Closed
pmeijer opened this issue Mar 17, 2015 · 0 comments
Closed

Implement utility function for loading a context. #251

pmeijer opened this issue Mar 17, 2015 · 0 comments

Comments

@pmeijer
Copy link
Contributor

pmeijer commented Mar 17, 2015

/**
 * Opens the context specified by the parameters and returns a result object containing
 * data.
 * @param {object} storage - clientstorage, serveruserstorage or localstorage
 * @param {object} gmeConfig - global webgme configuration
 * @param {object} parameters
 * @param {string} [parameters.projectName] - name of project to open -> result.project
 * @param {string} [parameters.branchName] - name of branch to load root from. -> result.rootNode, result.commitHash
 * @param {string} [parameters.commitHash] - if branchName not given commitHash will be loaded. -> result.rootNode
 * @param {string} [parameters.nodeIds] - loads all specified node ids. -> result.nodes
 * @param {boolean} [parameters.meta] - loads all META-nodes. -> result.META
 * @param {object} [parameters.core] - Used if branchName or commitHash is specified (a new Core will be created
 *                                     if needed and not provided here). -> result.core
 * @param {function} callback
 */

var openContext = function (storage, gmeConfig, parameters, callback);

@pmeijer pmeijer self-assigned this Mar 17, 2015
@pmeijer pmeijer added this to the v0.9.0 milestone Mar 17, 2015
pmeijer pushed a commit that referenced this issue Mar 18, 2015
Place holder for loading nodes.
pmeijer pushed a commit that referenced this issue Mar 18, 2015
pmeijer pushed a commit that referenced this issue Mar 18, 2015
pmeijer pushed a commit that referenced this issue Mar 18, 2015
pmeijer pushed a commit that referenced this issue Mar 18, 2015
pmeijer pushed a commit that referenced this issue Mar 18, 2015
at least when all succeed.
@kecso kecso closed this as completed in 84dced6 Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant