-
Notifications
You must be signed in to change notification settings - Fork 260
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
Interface mount #562
Interface mount #562
Conversation
Merge remote-tracking branch 'upstream/master' into interface_mount # Conflicts: # R/plumber.R # man/plumber.Rd
Lots of small changes. Trying to future-safeguard external "contracts" with other packages as we won't be able to update them when we want. |
Co-authored-by: Barret Schloerke <[email protected]>
Co-authored-by: Barret Schloerke <[email protected]>
Merge remote-tracking branch 'upstream/master' into interface_mount # Conflicts: # DESCRIPTION # R/plumber.R # man/plumber.Rd
Merge remote-tracking branch 'upstream/master' into interface_mount # Conflicts: # R/plumber.R
Co-authored-by: Carson Sievert <[email protected]>
Co-authored-by: Carson Sievert <[email protected]>
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.
LGTM pending comments
R/plumber.R
Outdated
swaggerCallback = getOption('plumber.swagger.url', NULL) | ||
swaggerCallback, | ||
..., | ||
callback = getOption('plumber.ui.callback', getOption('plumber.swagger.url', NULL)) |
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.
Received more feedback from the Connect team. I'd like to remove this argument and make it a R6 router method.
The default return value for the R6 method should still be getOption('plumber.swagger.url')
.
I'd also like to do this for debug
. Where the default value is interactive()
.
This makes it so the $run()
method has NOTHING in the parameters except for host
and port
.
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.
I've done as you suggested.
Also added a callback argument to setUI and added a setDebug method.
Note : @cpsievert previously requested to add back the arguments to the run
method as they were removed originally.
It looks like Line 871 in dcc178e
set_ui but still uses setUI in plumber/inst/server/plumber.service Line 5 in 13f8134
|
@muschellij2 Fixed in 69e5011. 🙌 |
Decouple ui mounting from the run method and generalize interface
PR task list:
devtools::document()