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
[Feature] Enable Ruby Proc for require_confirm_worker_params
#32
[Feature] Enable Ruby Proc for require_confirm_worker_params
#32
Conversation
The However, it looks like the CI build failed? |
Yes, the |
@khoaanguyenn Can we not commit the lock file and try, because you specified |
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.
Thanks for the contribution, and fixing some styling issues! There're just some texts to fix in the specs. Could you also help to update the README https://github.com/gohkhoonhiang/sidekiq_adhoc_job/blob/master/README.md#usage section to include the various ways to configure the require_confirm_worker_params
?
Background
require_confirm_worker_params
to also accept Ruby callable object in the configuration as followsFrom the PR Add prompted confirmation #30 , confirmation feature was added. However, when input incorrect challenge keyword, nothing happens but closing the prompt. This is not a good user experience, because they might not know that the inputed keyword is incorrect.
The Sidekiq upgrade 6.1.3 -> 6.2.0, causes
Sidekiq::Web needs a valid Rack session for CSRF protection.
to every requests to server, thus requests test suite eventually fail and print out the following error messageshow_spec
, since it addedid
attribute for the corresponding<form>
to attachsubmit
event on top of it.Design
#require_confirm_worker_params
to accept Ruby callable object.Gemfile.lock
to this repository.Impact
#require_confirm_worker_params
to accept Ruby callable object such as Proc, lambda or any Ruby class that implements#call
method.Caveats
None.
Testing
Install this branch to test the new behaviors.
bundle exec rspec
Your confirmation input is incorrect, try again.
should be displayed.#require_confirm_worker_params
.Docs