Skip to content

Conversation

@sjinks
Copy link
Member

@sjinks sjinks commented Jan 5, 2026

Description

Move querying of site details out of the application query to fix permission issues.

Changelog Description

Fixed

  • vip dev-env sync sql: query site details only when they are needed. This fixes the issue with permissions when @app.env is not specified.

Pull request checklist

New release checklist

Steps to Test

  1. Log in as "Platform Test User - App Read"
  2. vip dev-env @vip-permissions-test-wp.production sync sql must not fail until the "Preparing for backup download" phase
  3. vip dev-env sync sql must ask for app/env instead of failing with "Unauthorized" error.

@sjinks sjinks self-assigned this Jan 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sjinks sjinks marked this pull request as ready for review January 6, 2026 15:34
public async getSiteUrlsFromSDS(): Promise< WpSite[] > {
if (
this.env.isMultisite &&
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't remove this

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@sjinks sjinks requested a review from rebeccahum January 6, 2026 16:09
@sjinks sjinks merged commit e42c6b4 into trunk Jan 6, 2026
19 checks passed
@sjinks sjinks deleted the pltfrm-1891-vip-cli-returns-error-unauthorized-instead-of-prompting-for branch January 6, 2026 16:19
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.

3 participants