Skip to content

graceful showLogs failure for connect cloud#1239

Merged
mslynch merged 3 commits intopccfrom
pcc-no-showlogs
Oct 23, 2025
Merged

graceful showLogs failure for connect cloud#1239
mslynch merged 3 commits intopccfrom
pcc-no-showlogs

Conversation

@mslynch
Copy link
Member

@mslynch mslynch commented Oct 23, 2025

Resolves #1235.

@mslynch mslynch changed the base branch from main to pcc October 23, 2025 14:00
@mslynch mslynch marked this pull request as ready for review October 23, 2025 14:04
Copy link
Contributor

@aronatkins aronatkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could apply this approach to other functions like getLogs, too.

R/applications.R Outdated
account = account
)

if (isPositConnectCloudServer(deployment$server)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (isPositConnectCloudServer(deployment$server)) {
if (!isShinyappsServer(deployment$server)) {

What about producing an error for other server types? You could apply the same approach to other shinyapps.io-only functions.

You could also use checkShinyappsServer(server).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, checkShinyappsServer(server) is much better.

@mslynch mslynch merged commit a47f2dc into pcc Oct 23, 2025
1 check passed
@mslynch mslynch deleted the pcc-no-showlogs branch October 23, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the showLogs function to fail gracefully for Connect Cloud

3 participants