Giter Club home page Giter Club logo

fluently-sharepoint's People

Contributors

albertmoravec avatar filipjakab avatar ondrejvalenta avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

fluently-sharepoint's Issues

Add logger logging literally everywhere

Add logging method calls to extension methods.

The logic should be like this

  • Operations modifying data/structure or execution of context as Info level types of log entries
  • Operations simply fetching data or having second level purpose like setting up timeouts or FailHandlers as Debug level of log entries
  • Everything else including performance log entries as Trace types of log entries

Move CorrelationId from NLogLogger class to CSOMOperation class

So it can be set on an existing CSOMOperation through an extension method at any time.

Something like this:

var op = "https://keenmate.sharepoint.com/sites/demo/manufacturingfacility"
		.Create(new NlogLogger())
		.SetOnlineCredentials(username, password)
		.SetCorrelationId(Guid.NewGuid())
		.LoadList("Stock Items")
		.Execute()
		.SetCorrelationId(Guid.NewGuid()) // new operation group
		.CreateList(....)
		.Execute();

Provide methods to update list settings and add columns after it was created

Provide methods to update field settings and list settings to CSOMOperation.

op.GetList("Test list")
    .ModifyField<NumberField>("NumberField1", field => {
              field.Required = false; // property is made up use the proper one
              field.DefaultValue = 3.14; // property is made up use the proper one
     }

ModifyField method should be generic, if possible, to provide user with proper field properties without a need to convert the object to specific field type.

Corrections in field extension methods

  • AddNumberField
    • min, max values should be of type double
    • default value should be of type string
  • AddTextField
    • add missing max length parameter
  • AddChoiceField
    • parameter choices change to IEnumerable so it can accept other collection types
    • choice items are not created properly, they are all combined into one value
  • AddLookupField
    • add new overload methods to use list guid instead of list title and to use web guid and list guid so we can create cross web lookups

Messages.resx is broken

Messages.resx is broken in the project. Code throws an error complaining about missing resources.

GetItems method needs an "include" parameter

Add "include" parameter so user is able to include custom fields while fetching data from SharePoint.

Be aware that once .Include method is used CSOM stops retrieving FieldValues and whole collection will be empty. User won't be able to used listItem["MyColumn"] unless it's included in the include parameter

CreateWeb needed enhancements

Add these options to CreateWeb method to make it more usable

  • option to define web language
  • option to select web template from predefined templates enum, keep the text option as well
  • option to define title of the web

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.