Skip to content

Commit bb19275

Browse files
authored
chore: remove swap_vanity_url() and accommodate new API fields (#493)
1 parent 4e6e5c4 commit bb19275

36 files changed

+5
-112
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ export(set_schedule_weekday)
161161
export(set_schedule_year)
162162
export(set_thumbnail)
163163
export(set_vanity_url)
164-
export(swap_vanity_url)
165164
export(swap_vanity_urls)
166165
export(tbl_connect)
167166
export(terminate_jobs)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- Removed `get_job()`, which was deprecated in 0.6.0. Instead, use `get_jobs()`
88
to get a data frame of jobs, use `get_job_list()` to get a list of job
99
objects, and use `get_log()` to get the log for a job (#491).
10+
- Removed `swap_vanity_url()`, which was deprecated in 0.6.0. Use
11+
`swap_vanity_urls()` instead (#493).
1012

1113
# connectapi 0.9.0
1214

R/deploy.R

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -621,29 +621,6 @@ swap_vanity_urls <- function(content_a, content_b) {
621621
)
622622
}
623623

624-
#' Swap Vanity URLs
625-
#'
626-
#' Swap the vanity URLs of two pieces of content.
627-
#' This function is deprecated; please use \code{\link{swap_vanity_urls}}.
628-
#'
629-
#' @param from A Content object
630-
#' @param to A Content object
631-
#'
632-
#' @returns A list of the new vanity URLs for `from` and `to`
633-
#'
634-
#' @family content functions
635-
#' @export
636-
swap_vanity_url <- function(from, to) {
637-
lifecycle::deprecate_warn("0.6.0", "swap_vanity_url()", "swap_vanity_urls()")
638-
res <- swap_vanity_urls(from, to)
639-
return(
640-
list(
641-
from = res[["content_a"]],
642-
to = res[["content_b"]]
643-
)
644-
)
645-
}
646-
647624
#' Poll Task
648625
#'
649626
#' Polls a task, waiting for information about a deployment. If the task has
@@ -695,7 +672,6 @@ poll_task <- function(task, wait = 1, callback = message) {
695672
task
696673
}
697674

698-
699675
#' Build a Dashboard URL from a Content Item
700676
#'
701677
#' Returns the URL for the content dashboard (opened to the selected pane).

R/ptype.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ connectapi_ptypes <- list(
2020
groups = tibble::tibble(
2121
"guid" = NA_character_,
2222
"name" = NA_character_,
23-
"owner_guid" = NA_character_
23+
"owner_guid" = NA_character_,
24+
"gid" = NA_character_
2425
),
2526
usage_shiny = tibble::tibble(
2627
"content_guid" = NA_character_,

man/content_delete.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/content_item.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/content_title.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/content_update.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/create_random_name.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dashboard_url.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)