-
Notifications
You must be signed in to change notification settings - Fork 226
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
Replication page update #669
Conversation
3d632e0
to
97f1171
Compare
5ab3b92
to
f4079ab
Compare
8a897c3
to
51fe845
Compare
Hey @justin-mcdavid-ibm, thanks for the feedback. Mind taking a look at this PR and seeing what you think? All feedback has been done (see below), except for this one:
Yeah you're right. I was able to replicate a publicly available db without specifying credentials. What do you suggest for the help blurb? Right now it explicitly mentioned creds.(https://$REMOTE_USERNAME:$REMOTE_PASSWORD@$REMOTE_SERVER/$DATABASE). Done
|
ed459f6
to
e4943f8
Compare
Hey Ben, I'm testing this, and it's awesome. Great work on this. It's a big improvement. There are a couple of things I'm seeing that we probably should tweak. The "Select source" and "Select target" in-field explanatory test should be gray, though values selected through those dropdowns should remain the color of regular text. When you specify a custom replication doc ID, it has to be a new ID (folks might think they can specify an existing doc-- which causes a conflict), so we should elaborate on the explanatory text as [Custom, new ID (optional)]. Also, because you can't use the same custom ID for multiple jobs, can we add a clear (x) inside the custom ID field, so that after starting a replication job, users can easily clear just that field if they're reusing selected dbs or remote creds? If possible, we should remove the verification step where the account password is entered. I'm not sure why it's a requirement. If we do keep it, the button should be "Start Replication" rather than "Continue Replication," and we should specify which password is required, because it could be interpreted as a remote account's password. Icing, but after selecting from a dropdown, can we make focus automatically change to the following object? If there are illegal characters (spaces, prohibited symbols), or if the db name starts with something other than a lower-case letter in new-database-name field, can we disable the replicate button? I was able to "trigger" a replication from a local db to a new one called "spa ces" which then failed. Thanks for your work on this. |
Thanks @justin-mcdavid-ibm! Just emailed you - sorry, didn't realize you responded here. |
4782891
to
6ee4d60
Compare
6ee4d60
to
b357fd4
Compare
Hey @garrensmith / @robertkowalski - took a thousand years, but could I get one of you to review this sucker? Hope all is well on your ends. |
}); | ||
promise.fail(errorHandler); | ||
}, | ||
promise.done(function () { |
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.
promise.done
should be promise.then
that is more semantic.
Hey @benkeen this is making good progress. The basic functionality looks great. Just some code clean ups needed. We will need some nightwatch tests before we can merge this in. |
Nice, thanks @garrensmith! |
6610123
to
b4bcf38
Compare
}, | ||
|
||
updateTypeahead: function () { | ||
$(ReactDOM.findDOMNode(this.refs.field)).typeahead({ |
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.
we are removing the jquery typeahed and are using react-select instead.
it is very easy to integrate, here is an example: https://github.com/apache/couchdb-fauxton/blob/5be261085761c5f1d0510f2d28117775ea3e0da2/app/addons/documents/components/jumptodoc.react.jsx
good work! agree with garren on smaller components. using |
3639c15
to
2830341
Compare
Thanks again for the feedback, guys. All fixed up except for the NW test. @garrensmith did you ever get NW running locally? Not sure what I'm missing but I get a "Connection refused! Is selenium server started?" error when running |
} | ||
FauxtonAPI.navigate('/'); | ||
}); | ||
promise.fail(errorHandler); |
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.
This needs to be changed to the .then
Too cool about Docker. Sheesh! Step away for 2 months and all this activity happens when you're gone. Can't say I approve! ;) |
34d462a
to
b974110
Compare
Hey @robertkowalski or @garrensmith, I think I need an extra pair of eyes on this. This ticket has dragged onnnnn and on and I have supremely limited time to work on it. I just can't get the NW tests to run reliably. Running just the one replication.js file works fine both locally & on travis, but when running all of them, it fails every time on Travis. Possibly it's actually a couch error silently failing to create the new replicated DB...? Maybe you can see something I can't. I left all the debugging code in. |
@benkeen you have done an awesome job. Thanks. I can take a look. I can replicate the failing test locally. I'll try and fix it. |
@benkeen this worked was merged in with the other PR. Could you close this PR. |
No problem. Hope all's going well, @garrensmith! |
This PR refactors the replication page for a simpler wizard-like structure. Advanced replication options are coming down the pipe in a different PR.
Replication scenarios now working:
Yaaaaaaaayyyyyyyyy.