Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production release v20241119.0 #5999

Merged
merged 26 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a84430c
Update integration's config management (#5920)
WPprodigy Oct 15, 2024
bf7cc95
Jetpack: Add shim for 13.9+ to prevent Jetpack_SSO fatal and admin no…
rebeccahum Oct 16, 2024
119a19e
chore(deps): Bump github/codeql-action from 3.26.12 to 3.26.13 (#5923)
dependabot[bot] Oct 22, 2024
672171f
chore(deps): Bump preact from 10.24.2 to 10.24.3 in /search/search-de…
dependabot[bot] Oct 22, 2024
c220c8a
chore(deps-dev): Bump @types/node in /__tests__/e2e (#5945)
dependabot[bot] Oct 22, 2024
229d05e
chore(deps-dev): Bump @playwright/test in /__tests__/e2e (#5944)
dependabot[bot] Oct 23, 2024
5dbcb24
chore(deps-dev): Bump eslint-plugin-playwright in /__tests__/e2e (#5943)
dependabot[bot] Oct 23, 2024
e570196
chore(deps-dev): Bump the babel group (#5924)
dependabot[bot] Oct 23, 2024
165f296
chore(deps): Bump cookie and express (#5947)
dependabot[bot] Oct 23, 2024
997fdf2
chore(deps-dev): Bump typescript from 5.6.2 to 5.6.3 in /__tests__/e2…
dependabot[bot] Oct 23, 2024
2d590bc
chore(deps-dev): Bump postcss-preset-env from 10.0.6 to 10.0.7 (#5930)
dependabot[bot] Oct 23, 2024
f91c5ab
chore(deps-dev): Bump html-webpack-plugin in /search/search-dev-tools…
dependabot[bot] Oct 23, 2024
cfd1208
chore(deps): Bump @wordpress/api-fetch from 7.9.0 to 7.10.0 (#5942)
dependabot[bot] Oct 23, 2024
02cf793
chore(deps): Bump @wordpress/i18n from 5.9.0 to 5.10.0 (#5941)
dependabot[bot] Oct 23, 2024
14ed0d2
chore(deps-dev): Bump @wordpress/env from 10.9.0 to 10.10.0 (#5940)
dependabot[bot] Oct 23, 2024
87ffe8c
chore(deps-dev): Bump sass in /search/search-dev-tools (#5939)
dependabot[bot] Oct 23, 2024
188bfd0
WordPress Importer: Update to 0.8.3 (#5967)
rebeccahum Oct 31, 2024
23b2fac
Search: Allow sync manager queue to account for multisite context (#5…
rebeccahum Nov 2, 2024
ec847df
Explicitly supply accept: image/webp for requests to webp images (#5975)
rinatkhaziev Nov 5, 2024
70bd805
Use the `user_has_vip_support_role` method to check if the user is a …
vaurdan Nov 6, 2024
0dc7c3b
chore(deps): Bump github/codeql-action from 3.26.13 to 3.27.0 (#5948)
dependabot[bot] Nov 7, 2024
56df329
chore(deps): Bump actions/checkout from 4.2.1 to 4.2.2 (#5949)
dependabot[bot] Nov 8, 2024
7273adb
Remove WP 6.0 related code since it's deprecated now (#5978)
rebeccahum Nov 8, 2024
99d0837
WP Parse.ly: Update plugin to 3.17.0 (#5983)
vaurdan Nov 12, 2024
cd60b4d
chore(deps): Bump softprops/action-gh-release from 2.0.8 to 2.0.9 (#5…
dependabot[bot] Nov 12, 2024
49f957f
Merge pull request #5985 from Automattic/develop
WPprodigy Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/changelog-summary-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
egress-policy: audit

- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Retrieve tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand All @@ -50,7 +50,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: softprops/action-gh-release@v2.0.8
- uses: softprops/action-gh-release@v2.0.9
with:
generate_release_notes: true
tag_name: ${{ steps.id-generator.outputs.id }}
Expand All @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@2.30.5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-summary-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@2.30.5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
matrix:
config:
# PHP 8.1, Jetpack
- { wp: 6.0.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.0.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
Expand All @@ -40,6 +38,8 @@ jobs:
- { wp: 6.4.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.5.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.5.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.6.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.6.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: latest, ms: 'no', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' }
- { wp: latest, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' }
- { wp: nightly, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
Expand All @@ -66,7 +66,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
- javascript
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Initialize CodeQL
uses: github/codeql-action/init@v3.26.12
uses: github/codeql-action/init@v3.27.0
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.26.12
uses: github/codeql-action/analyze@v3.27.0
4 changes: 2 additions & 2 deletions .github/workflows/core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> "${GITHUB_ENV}"

- name: Checkout WordPress
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
repository: wordpress/wordpress-develop
path: wordpress
ref: ${{ steps.version.outputs.latest }}

- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive
path: wordpress/src/wp-content/mu-plugins
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
github.com:443

- name: Check out the source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Review dependencies
uses: actions/dependency-review-action@v4.3.4
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ jobs:
contents: write
steps:
- name: Check out the source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive
path: ${{ env.SOURCE_REPO_PATH }}

- name: Check out Automattic/vip-go-mu-plugins-ext
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
repository: Automattic/vip-go-mu-plugins-ext
path: ${{ env.EXT_REPO_PATH }}

- name: Check out Automattic/vip-go-mu-plugins-built
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
repository: Automattic/vip-go-mu-plugins-built
path: ${{ env.TARGET_REPO_PATH }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
wordpress.org:443

- name: Check out repository code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: true

Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
egress-policy: audit

- name: Check out repository code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Setup Node
uses: actions/setup-node@v4.0.4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Set up PHP
uses: shivammathur/setup-php@2.30.5
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2

- name: Setup Node
uses: actions/setup-node@v4.0.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/parsely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/search-dev-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
contents: write
steps:
- name: Check out source code
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.WPCOM_VIP_BOT_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/search-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4.2.1
uses: actions/checkout@v4.2.2
with:
submodules: recursive

Expand Down
44 changes: 20 additions & 24 deletions __tests__/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions files/class-api-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ public function get_file( $file_path ) {
'filename' => $tmp_file,
];

// Prevent webp => jpg transform from running
if ( str_ends_with( strtok( $file_path, '?' ), '.webp' ) ) {
$request_args['headers'] = [
'Accept' => 'image/webp',
];
}

// not in cache so get from API
$response = $this->call_api( $file_path, 'GET', $request_args );

Expand Down
25 changes: 1 addition & 24 deletions integrations/enterprise-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,6 @@ public function is_loaded(): bool {
return class_exists( \Automattic\VIP\Search\Search::class );
}

/**
* Activates this integration with given options array.
*
* @param array $options An associative options array for the integration.
* This can contain common parameters and integration specific parameters in `config` key.
*
* @private
*/
public function activate( array $options = [] ): void {
// If integration is already available in customer code then don't activate it from platform side.
if ( $this->is_loaded() ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedIf
// Do nothing.
}

// Don't do anything if integration is already activated.
if ( $this->is_active() ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedIf
// Do nothing.
}

$this->is_active = true;
$this->options = $options;
}

/**
* Loads the plugin.
*/
Expand Down Expand Up @@ -84,7 +61,7 @@ public function configure(): void {
* Set the Elasticsearch credentials.
*/
public function vip_set_es_credentials(): void {
$config = $this->get_config();
$config = $this->get_env_config();
if ( isset( $config['username'] ) && isset( $config['password'] ) ) {
define( 'VIP_ELASTICSEARCH_USERNAME', $config['username'] );
define( 'VIP_ELASTICSEARCH_PASSWORD', $config['password'] );
Expand Down
Loading
Loading