Skip to content

Commit 3951f64

Browse files
authored
Release prep for connectapi v0.9.0 (#479)
1 parent ea54c01 commit 3951f64

File tree

9 files changed

+50
-47
lines changed

9 files changed

+50
-47
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
^\.github$
55
^\.envrc$
66
^\.vscode$
7+
^\.claude$
78
^.*\.lic$
89
^renv$
910
^renv\.lock$
@@ -23,3 +24,5 @@
2324
^.lintr$
2425
^cran-comments\.md$
2526
^CRAN-SUBMISSION$
27+
^CLAUDE.local.md$
28+
^CLAUDE.md$

.github/workflows/integration-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
shell: Rscript {0}
4848

4949
- name: Run integration tests
50-
uses: nealrichardson/with-connect@dev
50+
uses: nealrichardson/with-connect
5151
env:
5252
CONNECTAPI_INTEGRATED: "true"
5353
with:

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
needs: website
3535

3636
- name: Build site
37-
uses: nealrichardson/with-connect@dev
37+
uses: nealrichardson/with-connect
3838
with:
3939
# Runs on the default version in the with-connect action
4040
license: ${{ secrets.CONNECT_LICENSE_FILE }}

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
needs: coverage
3030

3131
- name: Run coverage
32-
uses: nealrichardson/with-connect@dev
32+
uses: nealrichardson/with-connect
3333
env:
3434
CONNECTAPI_INTEGRATED: "true"
3535
with:

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: connectapi
33
Title: Utilities for Interacting with the 'Posit Connect' Server API
4-
Version: 0.8.0.9000
4+
Version: 0.9.0
55
Authors@R: c(
66
person(given = "Toph",
77
family = "Allen",

NEWS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# connectapi (development version)
1+
# connectapi 0.9.0
22

33
- New `set_integrations()` function to set the OAuth integration
44
associations for a content item. (#414)
@@ -9,7 +9,6 @@
99
- New functions allow you to manage the OAuth integrations on your Connect
1010
server: `create_integration()`, `update_integration()` and
1111
`delete_integration()`. (#434)
12-
- Support content search API with the `search_content()` function. (#272)
1312
- New `search_content()` function which lets you search and filter content items
1413
on the Connect server. (#272, #447)
1514
- New `lock_content()` and `unlock_content()` functions for locking and unlocking

README.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ to do the operation in question
165165

166166
**Warning about version numbers**
167167

168-
We test the package against a range of versions of Connect, as old as 1.8.8.2 (May 2021).
169-
If your Connect server is older than that, the package may still work, but `connectapi` will warn you.
168+
We test the package against a range of versions of Connect, as old as
169+
`2022.10.0`. If your Connect server is older than that, the
170+
package may still work.
170171

171172
We strive to:
172173

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Connect cluster to do the operation in question
162162
**Warning about version numbers**
163163

164164
We test the package against a range of versions of Connect, as old as
165-
`2022.10.0`. If your Connect server is older than that, the
166-
package may still work.
165+
`2022.10.0`. If your Connect server is older than that, the package may
166+
still work.
167167

168168
We strive to:
169169

tests/testthat/test-content.R

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -505,43 +505,6 @@ with_mock_dir("2025.09.0", {
505505
)
506506
})
507507

508-
test_that("content search uses default page_size of 500 and page_number of 1", {
509-
without_internet(
510-
expect_GET(
511-
search_content(client, q = "bream"),
512-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url" #nolint
513-
)
514-
)
515-
})
516-
517-
test_that("content search passes arbitrary parameters through ... to query string", {
518-
without_internet(
519-
expect_GET(
520-
search_content(
521-
client,
522-
q = "bream",
523-
future_param = "value"
524-
),
525-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url&future_param=value" #nolint
526-
)
527-
)
528-
})
529-
530-
test_that("the inner .search_content() func calls the endpoint correctly", {
531-
without_internet(
532-
expect_GET(
533-
.search_content(
534-
client,
535-
q = "bream",
536-
page_number = 2,
537-
page_size = 20,
538-
include = "owner"
539-
),
540-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=2&page_size=20&include=owner"
541-
)
542-
)
543-
})
544-
545508
test_that("search_content() can be converted to a data frame correctly", {
546509
content_df <- search_content(client, q = "sea bream") |>
547510
as_tibble()
@@ -595,6 +558,43 @@ with_mock_dir("2025.09.0", {
595558
})
596559
})
597560

561+
test_that("content search uses default page_size of 500 and page_number of 1", {
562+
without_internet(
563+
expect_GET(
564+
search_content(client, q = "bream"),
565+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url" #nolint
566+
)
567+
)
568+
})
569+
570+
test_that("content search passes arbitrary parameters through ... to query string", {
571+
without_internet(
572+
expect_GET(
573+
search_content(
574+
client,
575+
q = "bream",
576+
future_param = "value"
577+
),
578+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url&future_param=value" #nolint
579+
)
580+
)
581+
})
582+
583+
test_that("the inner .search_content() func calls the endpoint correctly", {
584+
without_internet(
585+
expect_GET(
586+
.search_content(
587+
client,
588+
q = "bream",
589+
page_number = 2,
590+
page_size = 20,
591+
include = "owner"
592+
),
593+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=2&page_size=20&include=owner"
594+
)
595+
)
596+
})
597+
598598
test_that("content search errors on Connect < 2024.04.0", {
599599
client <- MockConnect$new("2024.04.0")
600600
client$mock_response(

0 commit comments

Comments
 (0)