diff --git a/NAMESPACE b/NAMESPACE index 65d159df..05cedfd6 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -97,7 +97,6 @@ export(get_groups) export(get_image) export(get_integration) export(get_integrations) -export(get_job) export(get_job_list) export(get_jobs) export(get_log) diff --git a/NEWS.md b/NEWS.md index 781fd9f1..64538994 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,12 @@ - Removed `prefix` argument to `connect()` function, which was a convenience utility for testing. (#477) +## Breaking changes + +- Removed `get_job()`, which was deprecated in 0.6.0. Instead, use `get_jobs()` + to get a data frame of jobs, use `get_job_list()` to get a list of job + objects, and use `get_log()` to get the log for a job (#491). + # connectapi 0.9.0 - New `set_integrations()` function to set the OAuth integration diff --git a/R/content.R b/R/content.R index 7b287eba..22efc210 100644 --- a/R/content.R +++ b/R/content.R @@ -152,19 +152,6 @@ Content <- R6::R6Class( ) } }, - #' @description Return a single job for this content. - #' @param key The job key. - job = function(key) { - warn_experimental("job") - guid <- self$content$guid - url <- unversioned_url("applications", guid, "job", key) - res <- self$connect$GET(url) - - purrr::map( - list(res), - ~ purrr::list_modify(.x, app_guid = guid) - )[[1]] - }, #' @description Terminate a single job for this content item. #' @param key The job key. register_job_kill_order = function(key) { @@ -804,31 +791,6 @@ get_jobs <- function(content) { parse_connectapi_typed(jobs, connectapi_ptypes$jobs, strict = TRUE) } -# TODO: Need to test `logged_error` on a real error -#' -#' Retrieve details about a server process -#' associated with a `content_item`, such as a FastAPI app or a Quarto render. -#' -#' @param content A Content object, as returned by `content_item()` -#' @param key The key for a job -#' -#' @family job functions -#' @family content functions -#' @export -get_job <- function(content, key) { - lifecycle::deprecate_warn("0.6", "get_job()", "get_log()") - scoped_experimental_silence() - validate_R6_class(content, "Content") - - job <- content$job(key = key) - # protect against becoming a list... - job$stdout <- strsplit(job$stdout, "\n")[[1]] - job$stderr <- strsplit(job$stderr, "\n")[[1]] - # a bit of an abuse - # since stdout / stderr / logged_error are here now... - parse_connectapi_typed(list(job), connectapi_ptypes$job) -} - #' Terminate Jobs #' #' Register a job kill order for one or more jobs associated with a content diff --git a/R/ptype.R b/R/ptype.R index 3600266a..269c88d5 100644 --- a/R/ptype.R +++ b/R/ptype.R @@ -194,25 +194,6 @@ connectapi_ptypes <- list( image = NA_character_, run_as = NA_character_, ), - job = tibble::tibble( - pid = NA_integer_, - key = NA_character_, - app_id = NA_integer_, - variant_id = NA_integer_, - bundle_id = NA_integer_, - tag = NA_character_, - finalized = NA, - hostname = NA_character_, - origin = NA_character_, - stdout = NA_list_, - stderr = NA_list_, - logged_error = NA_list_, - start_time = NA_datetime_, - end_time = NA_datetime_, - exit_code = NA_integer_, - app_guid = NA_character_, - variant_key = NA_character_ - ), bundles = tibble::tibble( id = NA_character_, content_guid = NA_character_, diff --git a/R/variant.R b/R/variant.R index 17cb55d1..4aa55be0 100644 --- a/R/variant.R +++ b/R/variant.R @@ -149,15 +149,6 @@ Variant <- R6::R6Class( ~ purrr::list_modify(.x, variant_key = self$key) ) }, - #' @description Return single job for this variant. - #' @param key The job key. - job = function(key) { - pre_job <- super$job(key = key) - purrr::map( - list(pre_job), - ~ purrr::list_modify(.x, variant_key = self$key) - )[[1]] - }, #' @description Return the URL for this variant. get_url = function() { base_content <- super$get_url() diff --git a/man/Content.Rd b/man/Content.Rd index c10a910a..12b08bd4 100644 --- a/man/Content.Rd +++ b/man/Content.Rd @@ -57,7 +57,6 @@ Other R6 classes: \item \href{#method-Content-get_url}{\code{Content$get_url()}} \item \href{#method-Content-get_dashboard_url}{\code{Content$get_dashboard_url()}} \item \href{#method-Content-jobs}{\code{Content$jobs()}} -\item \href{#method-Content-job}{\code{Content$job()}} \item \href{#method-Content-register_job_kill_order}{\code{Content$register_job_kill_order()}} \item \href{#method-Content-variants}{\code{Content$variants()}} \item \href{#method-Content-tag_set}{\code{Content$tag_set()}} @@ -223,23 +222,6 @@ Return the jobs for this content \if{html}{\out{
}}\preformatted{Content$jobs()}\if{html}{\out{
}} } -} -\if{html}{\out{
}} -\if{html}{\out{}} -\if{latex}{\out{\hypertarget{method-Content-job}{}}} -\subsection{Method \code{job()}}{ -Return a single job for this content. -\subsection{Usage}{ -\if{html}{\out{
}}\preformatted{Content$job(key)}\if{html}{\out{
}} -} - -\subsection{Arguments}{ -\if{html}{\out{
}} -\describe{ -\item{\code{key}}{The job key.} -} -\if{html}{\out{
}} -} } \if{html}{\out{
}} \if{html}{\out{}} diff --git a/man/ContentTask.Rd b/man/ContentTask.Rd index fa71fc34..c94e5a9d 100644 --- a/man/ContentTask.Rd +++ b/man/ContentTask.Rd @@ -61,7 +61,6 @@ Other R6 classes:
  • connectapi::Content$get_content_remote()
  • connectapi::Content$get_dashboard_url()
  • connectapi::Content$get_url()
  • -
  • connectapi::Content$job()
  • connectapi::Content$jobs()
  • connectapi::Content$packages()
  • connectapi::Content$permissions()
  • diff --git a/man/EnvironmentR6.Rd b/man/EnvironmentR6.Rd index 5fb5ceed..91bdc9c1 100644 --- a/man/EnvironmentR6.Rd +++ b/man/EnvironmentR6.Rd @@ -59,7 +59,6 @@ Other R6 classes:
  • connectapi::Content$get_content_remote()
  • connectapi::Content$get_dashboard_url()
  • connectapi::Content$get_url()
  • -
  • connectapi::Content$job()
  • connectapi::Content$jobs()
  • connectapi::Content$packages()
  • connectapi::Content$permissions()
  • diff --git a/man/Vanity.Rd b/man/Vanity.Rd index a4f87129..9782f493 100644 --- a/man/Vanity.Rd +++ b/man/Vanity.Rd @@ -57,7 +57,6 @@ Other R6 classes:
  • connectapi::Content$get_content_remote()
  • connectapi::Content$get_dashboard_url()
  • connectapi::Content$get_url()
  • -
  • connectapi::Content$job()
  • connectapi::Content$jobs()
  • connectapi::Content$packages()
  • connectapi::Content$permissions()
  • diff --git a/man/VariantR6.Rd b/man/VariantR6.Rd index b8ffe18a..67bd82d0 100644 --- a/man/VariantR6.Rd +++ b/man/VariantR6.Rd @@ -51,7 +51,6 @@ Other R6 classes: \item \href{#method-Variant-renderings}{\code{Variant$renderings()}} \item \href{#method-Variant-update_variant}{\code{Variant$update_variant()}} \item \href{#method-Variant-jobs}{\code{Variant$jobs()}} -\item \href{#method-Variant-job}{\code{Variant$job()}} \item \href{#method-Variant-get_url}{\code{Variant$get_url()}} \item \href{#method-Variant-get_url_rev}{\code{Variant$get_url_rev()}} \item \href{#method-Variant-get_dashboard_url}{\code{Variant$get_dashboard_url()}} @@ -249,23 +248,6 @@ Jobs for this variant. \if{html}{\out{
    }}\preformatted{Variant$jobs()}\if{html}{\out{
    }} } -} -\if{html}{\out{
    }} -\if{html}{\out{}} -\if{latex}{\out{\hypertarget{method-Variant-job}{}}} -\subsection{Method \code{job()}}{ -Return single job for this variant. -\subsection{Usage}{ -\if{html}{\out{
    }}\preformatted{Variant$job(key)}\if{html}{\out{
    }} -} - -\subsection{Arguments}{ -\if{html}{\out{
    }} -\describe{ -\item{\code{key}}{The job key.} -} -\if{html}{\out{
    }} -} } \if{html}{\out{
    }} \if{html}{\out{}} diff --git a/man/VariantSchedule.Rd b/man/VariantSchedule.Rd index b813ab11..252bd7ff 100644 --- a/man/VariantSchedule.Rd +++ b/man/VariantSchedule.Rd @@ -82,7 +82,6 @@ Other R6 classes:
  • connectapi::Variant$get_url()
  • connectapi::Variant$get_url_rev()
  • connectapi::Variant$get_variant_remote()
  • -
  • connectapi::Variant$job()
  • connectapi::Variant$jobs()
  • connectapi::Variant$remove_subscriber()
  • connectapi::Variant$render()
  • diff --git a/man/VariantTask.Rd b/man/VariantTask.Rd index 13d26485..6bb76580 100644 --- a/man/VariantTask.Rd +++ b/man/VariantTask.Rd @@ -81,7 +81,6 @@ Other R6 classes:
  • connectapi::Variant$get_url()
  • connectapi::Variant$get_url_rev()
  • connectapi::Variant$get_variant_remote()
  • -
  • connectapi::Variant$job()
  • connectapi::Variant$jobs()
  • connectapi::Variant$remove_subscriber()
  • connectapi::Variant$render()
  • diff --git a/man/content_delete.Rd b/man/content_delete.Rd index dec5f7f5..265aebe0 100644 --- a/man/content_delete.Rd +++ b/man/content_delete.Rd @@ -32,7 +32,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/content_item.Rd b/man/content_item.Rd index 9f4c472b..93881b02 100644 --- a/man/content_item.Rd +++ b/man/content_item.Rd @@ -38,7 +38,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/content_title.Rd b/man/content_title.Rd index 11109890..d6171f69 100644 --- a/man/content_title.Rd +++ b/man/content_title.Rd @@ -34,7 +34,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/content_update.Rd b/man/content_update.Rd index ef1254e8..d1b47642 100644 --- a/man/content_update.Rd +++ b/man/content_update.Rd @@ -54,7 +54,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/create_random_name.Rd b/man/create_random_name.Rd index 43efee7c..fdd9923a 100644 --- a/man/create_random_name.Rd +++ b/man/create_random_name.Rd @@ -31,7 +31,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/dashboard_url.Rd b/man/dashboard_url.Rd index b1215cb7..56cb8466 100644 --- a/man/dashboard_url.Rd +++ b/man/dashboard_url.Rd @@ -31,7 +31,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/delete_thumbnail.Rd b/man/delete_thumbnail.Rd index 51676a89..02650c86 100644 --- a/man/delete_thumbnail.Rd +++ b/man/delete_thumbnail.Rd @@ -42,7 +42,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/delete_vanity_url.Rd b/man/delete_vanity_url.Rd index 884fc0c8..7d4d857e 100644 --- a/man/delete_vanity_url.Rd +++ b/man/delete_vanity_url.Rd @@ -26,7 +26,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/deploy_repo.Rd b/man/deploy_repo.Rd index ff407cdc..3dc3fc79 100644 --- a/man/deploy_repo.Rd +++ b/man/deploy_repo.Rd @@ -69,7 +69,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/environment.Rd b/man/environment.Rd index 208f10b2..89c77fe6 100644 --- a/man/environment.Rd +++ b/man/environment.Rd @@ -51,7 +51,6 @@ Other content functions: \code{\link{get_associations}()}, \code{\link{get_bundles}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/get_associations.Rd b/man/get_associations.Rd index 3f71b91c..32537ab4 100644 --- a/man/get_associations.Rd +++ b/man/get_associations.Rd @@ -68,7 +68,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/get_bundles.Rd b/man/get_bundles.Rd index 1244ebbe..88e88895 100644 --- a/man/get_bundles.Rd +++ b/man/get_bundles.Rd @@ -31,7 +31,6 @@ Other content functions: \code{\link{get_associations}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, @@ -64,7 +63,6 @@ Other content functions: \code{\link{get_associations}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/get_image.Rd b/man/get_image.Rd index ca31f076..6a4b3a0e 100644 --- a/man/get_image.Rd +++ b/man/get_image.Rd @@ -41,7 +41,6 @@ Other content functions: \code{\link{get_associations}()}, \code{\link{get_bundles}()}, \code{\link{get_environment}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/get_job.Rd b/man/get_job.Rd deleted file mode 100644 index b194499a..00000000 --- a/man/get_job.Rd +++ /dev/null @@ -1,59 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/content.R -\name{get_job} -\alias{get_job} -\title{Retrieve details about a server process -associated with a \code{content_item}, such as a FastAPI app or a Quarto render.} -\usage{ -get_job(content, key) -} -\arguments{ -\item{content}{A Content object, as returned by \code{content_item()}} - -\item{key}{The key for a job} -} -\description{ -Retrieve details about a server process -associated with a \code{content_item}, such as a FastAPI app or a Quarto render. -} -\seealso{ -Other job functions: -\code{\link{get_jobs}()}, -\code{\link{get_log}()}, -\code{\link{terminate_jobs}()} - -Other content functions: -\code{\link{content_delete}()}, -\code{\link{content_item}()}, -\code{\link{content_title}()}, -\code{\link{content_update}()}, -\code{\link{create_random_name}()}, -\code{\link{dashboard_url}()}, -\code{\link{delete_thumbnail}()}, -\code{\link{delete_vanity_url}()}, -\code{\link{deploy_repo}()}, -\code{\link{get_associations}()}, -\code{\link{get_bundles}()}, -\code{\link{get_environment}()}, -\code{\link{get_image}()}, -\code{\link{get_jobs}()}, -\code{\link{get_log}()}, -\code{\link{get_thumbnail}()}, -\code{\link{get_vanity_url}()}, -\code{\link{git}}, -\code{\link{has_thumbnail}()}, -\code{\link{lock_content}()}, -\code{\link{permissions}}, -\code{\link{search_content}()}, -\code{\link{set_image_path}()}, -\code{\link{set_integrations}()}, -\code{\link{set_run_as}()}, -\code{\link{set_thumbnail}()}, -\code{\link{set_vanity_url}()}, -\code{\link{swap_vanity_url}()}, -\code{\link{swap_vanity_urls}()}, -\code{\link{terminate_jobs}()}, -\code{\link{verify_content_name}()} -} -\concept{content functions} -\concept{job functions} diff --git a/man/get_jobs.Rd b/man/get_jobs.Rd index 6d4d7983..7f98b8f9 100644 --- a/man/get_jobs.Rd +++ b/man/get_jobs.Rd @@ -93,7 +93,6 @@ job_list <- get_job_list(item) } \seealso{ Other job functions: -\code{\link{get_job}()}, \code{\link{get_log}()}, \code{\link{terminate_jobs}()} @@ -111,7 +110,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, \code{\link{get_vanity_url}()}, diff --git a/man/get_log.Rd b/man/get_log.Rd index 7d07cc78..e7bb0acb 100644 --- a/man/get_log.Rd +++ b/man/get_log.Rd @@ -40,7 +40,6 @@ log <- get_log(jobs[[1]]) } \seealso{ Other job functions: -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{terminate_jobs}()} @@ -58,7 +57,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_thumbnail}()}, \code{\link{get_vanity_url}()}, diff --git a/man/get_thumbnail.Rd b/man/get_thumbnail.Rd index e0414c37..cc563d9e 100644 --- a/man/get_thumbnail.Rd +++ b/man/get_thumbnail.Rd @@ -48,7 +48,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_vanity_url}()}, diff --git a/man/get_vanity_url.Rd b/man/get_vanity_url.Rd index 6cca4576..95c9848f 100644 --- a/man/get_vanity_url.Rd +++ b/man/get_vanity_url.Rd @@ -30,7 +30,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/git.Rd b/man/git.Rd index 3b39581a..b4d96130 100644 --- a/man/git.Rd +++ b/man/git.Rd @@ -55,7 +55,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/has_thumbnail.Rd b/man/has_thumbnail.Rd index 62704210..956139b7 100644 --- a/man/has_thumbnail.Rd +++ b/man/has_thumbnail.Rd @@ -44,7 +44,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/lock_content.Rd b/man/lock_content.Rd index 858fc5c7..5d909af9 100644 --- a/man/lock_content.Rd +++ b/man/lock_content.Rd @@ -57,7 +57,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/permissions.Rd b/man/permissions.Rd index 1af0aff9..8e480f64 100644 --- a/man/permissions.Rd +++ b/man/permissions.Rd @@ -77,7 +77,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/search_content.Rd b/man/search_content.Rd index 531fd25a..a12fd289 100644 --- a/man/search_content.Rd +++ b/man/search_content.Rd @@ -72,7 +72,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/set_image.Rd b/man/set_image.Rd index 1f4e485e..6697ec29 100644 --- a/man/set_image.Rd +++ b/man/set_image.Rd @@ -48,7 +48,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/set_integrations.Rd b/man/set_integrations.Rd index c9a1c906..db225068 100644 --- a/man/set_integrations.Rd +++ b/man/set_integrations.Rd @@ -69,7 +69,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/set_run_as.Rd b/man/set_run_as.Rd index dbf2e624..5c30b19c 100644 --- a/man/set_run_as.Rd +++ b/man/set_run_as.Rd @@ -50,7 +50,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/set_thumbnail.Rd b/man/set_thumbnail.Rd index b0162279..c5ff2c91 100644 --- a/man/set_thumbnail.Rd +++ b/man/set_thumbnail.Rd @@ -47,7 +47,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/set_vanity_url.Rd b/man/set_vanity_url.Rd index dc0d803f..2a4f3733 100644 --- a/man/set_vanity_url.Rd +++ b/man/set_vanity_url.Rd @@ -43,7 +43,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/swap_vanity_url.Rd b/man/swap_vanity_url.Rd index e9e2bc32..6dd5ab34 100644 --- a/man/swap_vanity_url.Rd +++ b/man/swap_vanity_url.Rd @@ -33,7 +33,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/swap_vanity_urls.Rd b/man/swap_vanity_urls.Rd index 934349cf..16e48965 100644 --- a/man/swap_vanity_urls.Rd +++ b/man/swap_vanity_urls.Rd @@ -32,7 +32,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/terminate_jobs.Rd b/man/terminate_jobs.Rd index 982670a1..e23af41b 100644 --- a/man/terminate_jobs.Rd +++ b/man/terminate_jobs.Rd @@ -42,7 +42,6 @@ result <- terminate_jobs(item) } \seealso{ Other job functions: -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()} @@ -60,7 +59,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/man/verify_content_name.Rd b/man/verify_content_name.Rd index fb0b5b0a..bd8b6d26 100644 --- a/man/verify_content_name.Rd +++ b/man/verify_content_name.Rd @@ -35,7 +35,6 @@ Other content functions: \code{\link{get_bundles}()}, \code{\link{get_environment}()}, \code{\link{get_image}()}, -\code{\link{get_job}()}, \code{\link{get_jobs}()}, \code{\link{get_log}()}, \code{\link{get_thumbnail}()}, diff --git a/tests/integrated/test-variant.R b/tests/integrated/test-variant.R index ca8c1d35..de393947 100644 --- a/tests/integrated/test-variant.R +++ b/tests/integrated/test-variant.R @@ -59,9 +59,4 @@ test_that("get_jobs works", { all_jobs <- get_jobs(vr) expect_gt(nrow(all_jobs), 1) - - sel_key <- all_jobs$key[[1]] - one_job <- get_job(vr, sel_key) - expect_equal(nrow(one_job), 1) - expect_equal(one_job$key[[1]], sel_key) }) diff --git a/tests/testthat/test-parse.R b/tests/testthat/test-parse.R index d6c91758..e6e3d3ee 100644 --- a/tests/testthat/test-parse.R +++ b/tests/testthat/test-parse.R @@ -305,34 +305,3 @@ test_that("converts length one list", { hm <- ensure_column(tibble::tibble(one = "hi"), NA_list_, "one") expect_type(hm$one, "list") }) - -# specific errors - PR 192 -test_that("works for bad inputs", { - job <- list( - ppid = 12345, - pid = 67890, - key = "abckey", - app_id = 1234, - variant_id = 0, - bundle_id = 1234, - tag = "run_app", - finalized = TRUE, - hostname = "host", - origin = format(Sys.time(), format = "%Y-%m-%dT%H:%M:%SZ"), - stdout = "one-entry", - stderr = c("one-entry", "two-entry"), - logged_error = NULL, - exit_code = 0, - start_time = as.numeric(format(Sys.time(), format = "%s")), - end_time = NULL, - app_guid = uuid::UUIDgenerate() - ) - res <- connectapi:::parse_connectapi_typed( - list(job), - connectapi:::connectapi_ptypes$job - ) - expect_type(res$stdout, "list") - expect_type(res$origin, "character") - expect_s3_class(res$start_time, "POSIXct") - expect_s3_class(res$end_time, "POSIXct") -})