sitefarm_seed icon indicating copy to clipboard operation
sitefarm_seed copied to clipboard

Refactor lock_sitefarm_features custom module into a contrib module

Open rickvug opened this issue 7 years ago • 2 comments

Rick from Acquia here. I was talking to Shawn at BADCamp about how SiteFarm was managing features. He mentioned that SiteFarm is able to selectively "lock" certain base distribution configuration while allowing the rest of the configuration to be altered on a per site basis. This sounds like an excellent approach to many site governance so I searched for the Contrib module and couldn't find it. I now realize that this capability comes from the custom module lock_sitefarm_features. This sounds like the perfect candidate to rename (and maybe slightly refactor?) as a contributed module. Consider this issue a request!

rickvug avatar Oct 26 '17 21:10 rickvug

Thanks, Rick, you're probably right. In fact, it might simply be a good addition to the Features module itself, rather than a separate module.

dearmond avatar Oct 27 '17 21:10 dearmond

I'll look into this. Concerning the features module, this doesn't actually have anything to do with the Features module. It was named that way simply because we were packaging code with Features and we wanted to lock parts of them down. The module locks items based off of their machine name prefix. In our case it was sf_. However that can be edited or added to in the config. Additional non-prefixed machine names can also be flagged individually.

The one thing that might be a little tough in making this a contrib module is that we were locking stuff down for our specific use case. There isn't a mechanism yet for locking down paths/ui/config to areas that we haven't explicitly declared. Currently it only locks down the following areas:

  • node types
  • block content types
  • filter formats
  • pathauto patterns
  • taxonomy vocabularies
  • views
  • image styles

mrkmiller avatar Oct 30 '17 17:10 mrkmiller