-
Notifications
You must be signed in to change notification settings - Fork 66
Bootstrap and wipe granularity and #538 Fix #567
Conversation
@@ -949,7 +955,7 @@ def load_data(dir, options = {}) | |||
batch = @environment != "local" && batch_override.blank? || batch_override.to_b | |||
|
|||
options[:batch_commit] = batch | |||
options[:permissions] = permissions(@properties['ml.app-role'], Roxy::ContentCapability::ER) unless options[:permissions] | |||
options[:permissions] = permissions(@properties['ml.app-role'], Roxy::ContentCapability::ERU) unless options[:permissions] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are a few redundant changes in this PR. Did you start off with upstream/dev, and did you fetch and rebase against that as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did an upstream fetch from dev and then rebased against that. After that I began to make changes. Im dont think my other pull request for dev with this fix was accepted which may be why it was still lingering in my tree?
The change looks relatively simple. Can we do the same trick with wipe? That would be useful for testing this too.. |
Great idea! I'll build that in along with your suggested cleanup for checking the options. |
I added in three more commits which make the changes you recommended as well as add identical functionality to wipe. |
Here's what I usually do to fix up these kinds of rebase issues:
If that doesn't correctly isolate your commits, you may need to create a new branch and cherry-pick your commits specifically. |
No luck, unfortunately :\
Any other ideas? I can take a look tonight at carefully constructing a cleaner branch. |
Yeah, it looks like you'll need to. There's some good answers here: https://stackoverflow.com/questions/1994463/how-to-cherry-pick-a-range-of-commits-and-merge-into-another-branch. I favor the three argument form of |
I sometimes get unexpected commits appearing after squashing commits with git rebase -i. I usually get rid of them by doing another git rebase (without -i) |
All fixed now? I made one additional change to fix a merge conflict with this branch and the branch merged in yesterday (the #514 fix was not included in the branch merged in yesterday) Full commit history for the branch seems clean: https://github.com/RobertSzkutak/roxy/commits/rob |
I'm still seeing some older commits (like 4a276a from rloupre)... You want to create a new branch from the latest |
…o apply to MarkLogic instead of applying all configurations every time
…etup.xqy to specifically determine which configuration changes to apply
Third try is the charm? Thank you for patience with me. I really appreciate your help. |
Bump. Any chance of merging this in soon? One of our largest clients is using this pretty heavily right now and have been asking about when/if my changes will be "officially" supported. |
Looks good to me. @grtjn have you already tested this? |
FYI, the bulk of the changes in |
Just ran a test.
This successfully removes
This restores |
Should this work?
I get
I think "wipe forests" should detach and remove and "bootstrap forests" should create and attach. |
and
should show the --apply-changes option, complete with what options are available. That's a pretty simple change in deploy/Help.rb. |
@RobertSzkutak, thanks for persisting with this, looks like a handy capability. |
Thanks for testing! We've been mostly focused on roles, users, and index usage at my client and I hadn't spotted these yet. I'll continue to improve this branch and have some new commits soon. |
Created a seperate branch of logic to handle user and role association.
Added documentation for --apply-changes flag for wipe and bootstrap
Added help documentation courtesy of @jmeekhof |
…ed in the properties file
Pushed in a fix for this issue: #538 My client has been using this branch heavily and needed the fix immediately. |
This passes my tests now. Thanks for submitting, @RobertSzkutak |
Bootstrap and wipe granularity and #538 Fix
The purpose of this pull request is to allow users to specify which parts of their applications to bootstrap using the bootstrap command.
Examples:
./ml local bootstrap --apply-changes=indexes,users,roles
(will only bootstrap the indexes, users, and roles)
./ml local wipe --apply-changes=databases,forests,appservers
(will only wipe databases, forests, and app servers)
This pull request accomplishes several things to make this possible:
I haven't tested everything and would appreciate a second set of eyes to test as well as feedback on any ways that the code could be improved.
Additionally, this branch fixes this bug with CORB: #538