spgo icon indicating copy to clipboard operation
spgo copied to clipboard

Feature Request: PublishWorkspaceOptions 'improvements'

Open ianoel230982 opened this issue 5 years ago • 5 comments

Note: for support questions, please use stackoverflow and tag the post with #spgo. Edit - sorry it has added the 'bug' label. It's not a bug.

  • I'm submitting a ...

    • [ x] feature request
  • What is the current behavior?

I don't believe you can currently do this, please accept my apologies if i have missed it. When 'publishing workspace', I do not believe the glob pattern allows for multiple specific files to be published. I can use "globPattern": "*.aspx" which would publish all aspx files, or i can choose all files in a specific folder etc, but if i have a lot of files in my project, i don't want to have to publish everything again if i have only been working on a couple of files.

  • What is the expected behavior?

Ideally it would be nice to declare an array of some type where i can use a glob pattern that can specify a subset of files, e.g.

[
 "/folder/js/file1.js", 
 "/folder/css/file1.css", 
 "/folder/*.aspx",
"/folder/images/*.*"
]

I hope that makes sense.

Thanks for your continued support with this amazing extension.

  • Please tell us about your environment:

    • OS and Version Windows 8.1
    • SharePoint Location (2013 On Premise)
    • Authentication Type - NTLM

ianoel230982 avatar Jun 11 '20 15:06 ianoel230982

Hello again @ianoel230982!

Thanks for the great feature idea

I like the idea of letting publishWorkspaceOptions.globPattern also take either an array of objects, or just a single object, as a feature enhancement. This way you could specify the list above directly.

Would this feature meet your requirements?

chrishasz avatar Jun 13 '20 06:06 chrishasz

@chrishasz Hi,

Yes that sounds like it would be a great idea and meet my requirements.

ianoel230982 avatar Jun 15 '20 09:06 ianoel230982

Sounds good! I'm working on support for Addin-only auth right now, but I will prioritize this feature for the subsequent release.

chrishasz avatar Jun 15 '20 22:06 chrishasz

Hi, just a further note to add to this. I'm not sure whether it would be possible to include this extra feature with the above enhancement. If the array of files can be implemented when publishing the workspace, is it also possible to include a 'checkInMessage' for each individual file? Currently, each file gets the same message, but i may have done different changes to different files so it would make sense to be able to add a message on a per file basis. That would be a 'nice to have' though, so please don't feel like you have to do that. Just thought i'd ask.

Thanks :-)

ianoel230982 avatar Jun 19 '20 09:06 ianoel230982

Hello @ianoel230982 - I have just released Addin-only support with SPGo 1.7.0, so this will be my next major feature.

chrishasz avatar Dec 17 '20 06:12 chrishasz