Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
9e81d4a
initial commit of refactor
bcwu May 4, 2022
544ab0a
change some functions into RSConnectServer methods
bcwu May 6, 2022
ae8b90c
change make_bundle to be a dependency injection
bcwu May 6, 2022
50b02c6
change initialization
bcwu May 9, 2022
bf01943
move functions from server to executor
bcwu May 9, 2022
cdb1c58
add get method that allows overwrites
bcwu May 11, 2022
9bf2220
remove state setter since it doesn't allow setting kwargs
bcwu May 11, 2022
5affba4
update and use get method
bcwu May 11, 2022
45b6b44
use built-in deprecation warnings
bcwu May 11, 2022
b7ccea1
update formatting
bcwu May 11, 2022
c942f78
refactor make_deployment_name
bcwu May 11, 2022
d42b9e9
move RSConnectException into its own file
bcwu May 11, 2022
718ec45
move _to_server_check_list & _default_title
bcwu May 11, 2022
fdc6b0f
remove cli_feedback from make_bundle
bcwu May 11, 2022
e51ef47
setup Connect automatically from kwargs
bcwu May 11, 2022
2e20028
refactor html_bundle
bcwu May 11, 2022
664d310
correct dictionary being passed to make_bundle
bcwu May 11, 2022
371f71e
various small updates
bcwu May 12, 2022
aa4198e
deploy_bundle; TODO: save deploy info in app_store
bcwu May 12, 2022
7ffb0e5
add pipe operator
bcwu May 12, 2022
72a9cb3
fix non-self error
bcwu May 13, 2022
c3cea61
add save_deployed_info
bcwu May 13, 2022
2839ed0
update example in main
bcwu May 13, 2022
661fbd5
update formatting
bcwu May 13, 2022
c9cb92c
various refactor to use single session
bcwu May 13, 2022
a6db24e
change make bundle back to operate mainly on args
bcwu May 16, 2022
40f1824
use initial kwargs directly for bundle info
bcwu May 17, 2022
9207f94
merge verify_server into server_settings
bcwu May 17, 2022
cfe307f
move some functions to instrumentation
bcwu May 18, 2022
0d059ec
initial fastapi refacotr
bcwu May 18, 2022
3af28f9
use internal state instead of kwargs for bundle
bcwu May 18, 2022
2ca1c1e
pass app mode
bcwu May 19, 2022
fedd8c8
switch to generate_deploy_python_refactor
bcwu May 19, 2022
1b51278
Merge branch 'master' into bcwu-refactor
bcwu May 19, 2022
e1696eb
clear up instrumentation errors
bcwu May 19, 2022
dfdae3e
import updates
bcwu May 20, 2022
79df993
prepare to relocate output of incoming server logs
bcwu May 20, 2022
6e47e87
initial commit of new logger
bcwu May 20, 2022
4cd2cbe
update to use new logger
bcwu May 20, 2022
3f2355b
update to use new logger
bcwu May 20, 2022
b58732c
Merge branch 'bcwu-refactor' of github.com:rstudio/rsconnect-python i…
bcwu May 20, 2022
0dedbb6
refactor pipe
bcwu May 20, 2022
36f6305
remove unused import
bcwu May 20, 2022
c4f2df6
add ability to select logger with partial
bcwu May 23, 2022
8eb7e5a
add a generic logger
bcwu May 23, 2022
813f362
use console_logged
bcwu May 23, 2022
63ee61c
refactor emit_task_log
bcwu May 23, 2022
2df7d2e
fix ConsoleFormatter symbol collision error
bcwu May 23, 2022
8b35b08
move console_logged et al. to log
bcwu May 23, 2022
01a1f53
Merge branch 'master' into bcwu-refactor
bcwu May 24, 2022
1f0487d
remove default_app_mode
bcwu May 24, 2022
592dd03
minor updates in main to minor api
bcwu May 24, 2022
553af7d
move some manifest related functions into bundle
bcwu May 24, 2022
fa187c1
refactor deploy manifest
bcwu May 24, 2022
0022cb2
remove unused import
bcwu May 24, 2022
2ea998c
more remove unused import
bcwu May 24, 2022
0a80f54
Merge branch 'sagerb-switch-image-to-optional-at-public-api-layer' in…
bcwu May 31, 2022
1905fbb
Merge branch 'master' into bcwu-refactor
bcwu May 31, 2022
aca7587
refactor deploy_notebook
bcwu May 31, 2022
79c8933
refactor deploy quarto
bcwu May 31, 2022
2e070be
update deploy_html to unpack directly from Click
bcwu May 31, 2022
05d7196
update deploy_app to unpack directly from Click
bcwu May 31, 2022
2da6fd6
Merge branch 'master' into bcwu-refactor
bcwu May 31, 2022
cbb7d68
move bundle & manifest related functions to bundle
bcwu May 31, 2022
bf273a0
remove duplicate bundle functions
bcwu May 31, 2022
e9f38b2
fix image not being passed
bcwu Jun 2, 2022
66ac4ae
move bundle & manifest related functions to bundle
bcwu Jun 2, 2022
7078a0f
add image to deploy_app refactor
bcwu Jun 3, 2022
410fce5
refactor & move create_python_environment to bundle
bcwu Jun 3, 2022
fbcc9e1
remove unsused imports
bcwu Jun 3, 2022
b961ec7
add ability to use saved server name
bcwu Jun 3, 2022
d816f4d
update tests for refactor
bcwu Jun 3, 2022
ad18334
clean up and misc.
bcwu Jun 3, 2022
40757ed
change emit_task_log parameter validation order to allow overwrite
bcwu Jun 3, 2022
14e3cd9
update executor to have named arguments
bcwu Jun 3, 2022
6f3b884
fix server not passed as url
bcwu Jun 7, 2022
0fa6835
move tests from actions to bundle
bcwu Jun 7, 2022
1d7611d
clean up import
bcwu Jun 7, 2022
7554b0e
aggressive gc for dropping large bundles
bcwu Jun 9, 2022
66df3b1
update to not use executor state in main
bcwu Jun 9, 2022
b8e7d05
update details
bcwu Jun 9, 2022
fa2ade4
update content and build to use new api
bcwu Jun 10, 2022
b25256a
move test_to_server_check_list
bcwu Jun 10, 2022
4274dbd
move test_make_deployment_name
bcwu Jun 10, 2022
3e06791
add test_executor_init
bcwu Jun 10, 2022
533fa61
update imports
bcwu Jun 10, 2022
96e1f49
rename self.connect to self.client
bcwu Jun 13, 2022
d47a941
remove old generate_deploy_python, _deploy_bundle, _deploy_by_framework
bcwu Jun 13, 2022
4c98277
shorten RSConnectExecutor abbreviation
bcwu Jun 13, 2022
148f97c
specify parameter in get
bcwu Jun 13, 2022
2ec51b0
specify parameter function type
bcwu Jun 13, 2022
12838ac
add type annotations to emit_task_log
bcwu Jun 13, 2022
33253c4
remove server name persistence since it is run time resolved
bcwu Jun 13, 2022
b5deb6e
Revert & update "add type annotations to emit_task_log"
bcwu Jun 13, 2022
9efd24b
update type annotation for abort_func
bcwu Jun 13, 2022
6ea2cba
add sys.stdout to StreamHandler
bcwu Jun 13, 2022
bb46ff7
add default log_callback to emit_task_log
bcwu Jun 13, 2022
a7143cf
add class logger, which uses self.logger
bcwu Jun 14, 2022
2649f06
switch api over to cls_logged
bcwu Jun 14, 2022
a734376
suppress logging in content commands
bcwu Jun 14, 2022
e73eb4e
Revert "add sys.stdout to StreamHandler"
bcwu Jun 14, 2022
e121fb1
add type annotations for api deploy_bundle
bcwu Jun 14, 2022
b7cb656
rename variable to mirror title_is_default
bcwu Jun 14, 2022
0c1096b
various small polishes
bcwu Jun 15, 2022
d4c792c
add cli_exception_handler
bcwu Jun 15, 2022
52d2ae3
update cli_exception_handler
bcwu Jun 15, 2022
eb1b829
add exception for no name and no server url
bcwu Jun 15, 2022
bc9465a
clarify cacert to ca_data process
bcwu Jun 16, 2022
d7527eb
add fromConnectServer classmethod
bcwu Jun 16, 2022
5f1ba9f
fix static mode not being considered in deploy notebook
bcwu Jun 16, 2022
8fb3e2c
fix notebook static deploy
bcwu Jun 16, 2022
96d55b6
validate_extra_files should happen outside create_python_environment
bcwu Jun 16, 2022
5cd14b9
remove unused import
bcwu Jun 16, 2022
fda2db1
fix app mode check for Python apps
bcwu Jun 17, 2022
caf7644
fix a circular import reference with RSConnectException
bcwu Jun 17, 2022
397b700
AppStore needs to be initialized from module_file
bcwu Jun 17, 2022
c9c9e72
init app_store with module_file if it doesn't exist
bcwu Jun 17, 2022
f61bf8c
re-use resolved app_id for redeployments
bcwu Jun 20, 2022
31794e0
save validated entrypoint in generate_deploy_python
bcwu Jun 20, 2022
a95d21e
Merge branch 'master' into bcwu-refactor
bcwu Jun 20, 2022
42742a7
add file_or_directory to path resolution
bcwu Jun 20, 2022
9c05711
add guard to extra_files being None
bcwu Jun 23, 2022
b5f6f5c
update api cls method
bcwu Jun 23, 2022
6193b3c
add filter_out_server_info
bcwu Jun 23, 2022
b6e75d5
add deploy_html as an action & unify its implementation across main a…
bcwu Jun 23, 2022
49de7fd
update type annotations
bcwu Jun 23, 2022
b535f11
update Dashboard content URL & Direct content URL logging level to info
bcwu Jun 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 105 additions & 36 deletions rsconnect/actions.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion rsconnect/actions_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

import semver

from .api import RSConnect, RSConnectException, emit_task_log
from .api import RSConnect, emit_task_log
from .log import logger
from .models import BuildStatus, ContentGuidWithBundle
from .metadata import ContentBuildStore
from .exception import RSConnectException

_content_build_store = None # type: ContentBuildStore

Expand Down
Loading