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

Completed ListModel and list level provision #829

Closed
SubPointSupport opened this issue Apr 12, 2016 · 1 comment
Closed

Completed ListModel and list level provision #829

SubPointSupport opened this issue Apr 12, 2016 · 1 comment

Comments

@SubPointSupport
Copy link
Contributor

SPMeta2Model.NewListModel() and list level provision should be completed and covered by the regression testing for both CSOM/SSOM.

That enables provision process from the list level avoiding unnecessary web level model construction.

Based on the community feedback:
https://www.yammer.com/spmeta2feedback/#/Threads/show?threadId=687838954

@SubPointSupport
Copy link
Contributor Author

Added new DeployListModel extension methods for CSOM/SSOM:

  • DeployListModel(this CSOMProvisionService modelHost, ClientContext context, List list, ModelNode model)
  • DeployListModel(this SSOMProvisionService modelHost, SPList list, ModelNode model)

Added CanDeploy_ListModel_WithFolders to ensure CSOM/SSOM deployments:

var model = SPMeta2Model.NewListModel(list =>
            {
                list.AddFolder(ModelGeneratorService.GetRandomDefinition<FolderDefinition>());
                list.AddFolder(ModelGeneratorService.GetRandomDefinition<FolderDefinition>());
                list.AddFolder(ModelGeneratorService.GetRandomDefinition<FolderDefinition>());
            });

            TestModel(model);

SubPointSupport added a commit that referenced this issue May 26, 2016
+ buld fix over failed DefaultDiagnosticInfoService_ShouldHaveAllProperties test
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