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

Merge develop into master in prep for 3.5.5 #2108

Merged
merged 72 commits into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
4b91801
Add default value to parameter $context in the function
Rahmon Jan 25, 2021
167de29
Support multiple Facets
goaround Dec 15, 2020
d5b3c45
Update facets.js
goaround Jan 21, 2021
f1f908b
Update facets.js
goaround Feb 1, 2021
0caac29
Add facetTerms type and description
goaround Feb 1, 2021
95ae63f
Include dist files
goaround Feb 1, 2021
ac578a7
Update dist
goaround Feb 1, 2021
8a58fc7
Support multiple Facets
goaround Dec 15, 2020
5f7ef34
Update facets.js
goaround Jan 21, 2021
754c2a4
Update facets.js
goaround Feb 1, 2021
8e58a49
Add facetTerms type and description
goaround Feb 1, 2021
5a420bb
Include dist files
goaround Feb 1, 2021
f8af02a
Update dist
goaround Feb 1, 2021
d0f8fc3
cleanup cherry-pick commits
jeffpaul Feb 3, 2021
1187604
Add a class to the search form when autosuggestions are loading.
Feb 4, 2021
5418564
Build autosuggest assets.
Feb 4, 2021
e0cf888
Fix coding standard
Rahmon Feb 8, 2021
12ddea1
First WPA run with instructions
felipeelia Feb 8, 2021
ab35956
GH Actions also need --allow-root
felipeelia Feb 8, 2021
6f0c0ec
Change EP host address
felipeelia Feb 8, 2021
553de79
Rename function and remove unnecessary return, as per feedback.
JakePT Feb 9, 2021
d7619b3
Remove incorrect @returns.
JakePT Feb 9, 2021
8b021c3
Fix docs for the ep_formatted_args filter
felipeelia Feb 12, 2021
260b6e7
add security issue from 3.5.4 release to SECURITY.md
jeffpaul Feb 12, 2021
f7e39d4
Merge pull request #2079 from 10up/docs/ep_formatted_args-filter
brandwaffle Feb 12, 2021
cf5d7a7
WP-CLI commands to get and set the search algorithm version
felipeelia Feb 16, 2021
013c77b
update release instructions in CONTRIBUTING.md
jeffpaul Feb 17, 2021
18a240f
add hotfix release instructions to CONTRIBUTING.md
jeffpaul Feb 17, 2021
4e4b45b
Add content and fix some tests
felipeelia Feb 17, 2021
c2d256a
Enable WooCommerce before importing content
felipeelia Feb 17, 2021
9c8bcd4
Reduce verbosity and try to adjust the autosuggest endpoint
felipeelia Feb 17, 2021
57a86d1
Fix some tests
felipeelia Feb 17, 2021
cfdbe83
Dynamically injects EP/ES info
felipeelia Feb 18, 2021
d59d208
Fix local ES creation
felipeelia Feb 18, 2021
40024bd
Run WPA Tests twice in case of errors
felipeelia Feb 18, 2021
1b0a411
Try to add some parallelism to the tests execution
felipeelia Feb 18, 2021
70043c0
Fix workflow syntax
felipeelia Feb 18, 2021
2442395
Revert some changes
felipeelia Feb 18, 2021
1be3773
Autosuggest: check if `epas.highlightingTag` is set before using it
felipeelia Feb 19, 2021
5feaf81
Optional chaining!
felipeelia Feb 19, 2021
c8cd931
Update indexables.md
jpowersdev Feb 21, 2021
0c64c6c
Update WPA and add checkTotal method
felipeelia Feb 22, 2021
c009429
Merge pull request #2091 from 10up/update/release-instructions
brandwaffle Feb 22, 2021
74d7b0d
Merge pull request #2082 from 10up/update/known-vulns
brandwaffle Feb 22, 2021
1fe2292
Merge pull request #2068 from 10up/reapply/pr-2004
brandwaffle Feb 22, 2021
93ad393
Merge pull request #2070 from 10up/feature/1610
brandwaffle Feb 22, 2021
444787a
Merge pull request #2098 from jpowersdev/patch-1
brandwaffle Feb 22, 2021
0157cb3
Update indexables.md
brandwaffle Feb 22, 2021
aa6bb13
Improve docs
felipeelia Feb 22, 2021
0e04363
Merge pull request #2090 from 10up/feature/algo-version-through-cli
brandwaffle Feb 22, 2021
077bbfd
Autosuggest: check if `epas.highlightingTag` is set before using it
felipeelia Feb 19, 2021
c28e83f
Optional chaining!
felipeelia Feb 19, 2021
9e70368
Merge branch 'fix/issue-2093' of github.com:10up/ElasticPress into fi…
felipeelia Feb 22, 2021
2f80c48
Give extra time for AJAX in testWpCliSyncDuringDashboardSync
felipeelia Feb 22, 2021
dca2d18
Fix attempts
felipeelia Feb 23, 2021
0ac4e49
Make the new attempt message more prominent
felipeelia Feb 23, 2021
d676ef8
Merge pull request #2047 from Rahmon/fix/php-8-issue-1980
brandwaffle Feb 23, 2021
ebc79ba
Merge pull request #2094 from 10up/fix/issue-2093
brandwaffle Feb 23, 2021
09aea97
Add the `ep_query_weighting_fields` filter and change `ep_formatted_a…
felipeelia Feb 23, 2021
72782cf
Merge pull request #2102 from 10up/feature/issue-2101
brandwaffle Feb 23, 2021
aa086b8
Add theme integration docs.
JakePT Feb 24, 2021
472a799
Fix Attempts message
felipeelia Feb 24, 2021
373d5cc
Adjust test for EP.io + Autosuggest
felipeelia Feb 24, 2021
3b55f8c
Merge pull request #2103 from 10up/feature/theme-integration-docs
brandwaffle Feb 24, 2021
4791ab8
Merge pull request #2092 from 10up/tests/wpa-with-instructions
brandwaffle Feb 24, 2021
c576a35
Autosuggest: Delete cached query
felipeelia Feb 25, 2021
e1503d0
Add the `ep_cli_clear_index` action
felipeelia Feb 25, 2021
5578821
Rename some actions to keep consistency
felipeelia Feb 25, 2021
595680b
Autosuggest should be hooked on ep_cli_after_set_search_algorithm_ver…
felipeelia Feb 25, 2021
a38768e
Merge pull request #2105 from 10up/fix/issue-2104
brandwaffle Feb 25, 2021
6a9bafe
Prep 3.5.5 release
felipeelia Feb 25, 2021
85d98cd
Merge pull request #2107 from 10up/release/3.5.5
brandwaffle Feb 25, 2021
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
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Install dependencies
run: composer install

- name: Setup WP Snapshots
run: ./vendor/bin/wpsnapshots configure 10up --aws_key=${{ secrets.AWS_ACCESS_KEY_ID }} --aws_secret=${{ secrets.AWS_SECRET_ACCESS_KEY }} --user_name=wp-acceptance --user_email=travis@10up.com
- name: Test Local
run: ./run-wpacceptance.sh -l --attempts=3

- name: Test
run: ./vendor/bin/wpacceptance run
- name: Test EP.io
run: ./run-wpacceptance.sh --ep-host=${{ secrets.EPIO_HOST }} --es-shield='${{ secrets.EPIO_SHIELD }}' --ep-index-prefix=${{ secrets.EPIO_INDEX_PREFIX }} --attempts=3

phpunit:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ test-coverage-html/
.phpunit.result.cache
screenshots
.DS_Store

/tests/wpa/test-mu-plugins/custom-ep-credentials.php
wpa-elasticsearch.yml
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).

## [3.5.5]

This release fixes some bugs and also adds some new actions and filters.

Bug Fixes:
* Fix a problem in autosuggest when highlighting is not active. Props [@felipeelia](https://github.com/felipeelia) and [@Rahmon](https://github.com/Rahmon)
* Fix Facet Term Search for more than one Widget. Props [@goaround](https://github.com/goaround)
* Fix a Warning that was triggered while using PHP 8. Props [@Rahmon](https://github.com/Rahmon)
* Fix a wrong phrase in the Indexables documentation. Props [@jpowersdev](https://github.com/jpowersdev)

Enhancements:
* Add an `is-loading` class to the search form while autosuggestions are loading. Props [@JakePT](https://github.com/JakePT)
* Add the new `set-algorithm-version` and `get-algorithm-version` WP-CLI commands. Props [@felipeelia](https://github.com/felipeelia)
* Add a new `ep_query_weighting_fields` filter. Props [@felipeelia](https://github.com/felipeelia) and [@tott](https://github.com/tott)
* Add two parameters to the `ep_formatted_args_query` filter. Props [@felipeelia](https://github.com/felipeelia) and [@tott](https://github.com/tott)
* Add the new `set-algorithm-version` and `get-algorithm-version` WP-CLI commands. Props [@felipeelia](https://github.com/felipeelia)
* Create a new section in documentation called `Theme Integration`. Props [@JakePT](https://github.com/JakePT)
* Improvements to contributing documentation and tests. Props [@jeffpaul](https://github.com/jeffpaul) and [@felipeelia](https://github.com/felipeelia)
* Add the following new actions: `ep_wp_cli_after_index`, `ep_after_dashboard_index`, `ep_cli_before_set_search_algorithm_version`, `ep_cli_after_set_search_algorithm_version`, `ep_cli_before_clear_index`, `ep_after_update_feature`, and `ep_cli_after_clear_index`. Props [@felipeelia](https://github.com/felipeelia) and [@Rahmon](https://github.com/Rahmon)

## [3.5.4]

This is primarily a security and bug fix release. PLEASE NOTE that versions 3.5.2 and 3.5.3 contain a vulnerability that allows a user to bypass the nonce check associated with re-sending the unaltered default search query to ElasticPress.io that is used for providing Autosuggest queries. If you are running version 3.5.2. or 3.5.3 please upgrade to 3.5.4 immediately.
Expand All @@ -23,7 +43,7 @@ This is a bug fix release.

Bug Fixes:
* Fixed a bug where the `ep-synonym` post type is updated to a regular post, which can cause it to be accidentally deleted. Props [@Rahmon](https://github.com/Rahmon)
* Fixed CSS formatting issues in the Settings and Features menus. Props [@Rahmon](https://github.com/Rahmon)
* Fixed CSS formatting issues in the Settings and Features menus. Props [@Rahmon](https://github.com/Rahmon)

## [3.5.2]

Expand Down Expand Up @@ -898,6 +918,9 @@ See https://github.com/10up/ElasticPress/pulls?utf8=%E2%9C%93&q=is%3Apr+mileston
- Initial plugin release

[Unreleased]: https://github.com/10up/ElasticPress/compare/master...develop
[3.5.5]: https://github.com/10up/ElasticPress/compare/3.5.4...3.5.5
[3.5.4]: https://github.com/10up/ElasticPress/compare/3.5.3...3.5.4
[3.5.3]: https://github.com/10up/ElasticPress/compare/3.5.2...3.5.3
[3.5.2]: https://github.com/10up/ElasticPress/compare/3.5.1...3.5.2
[3.5.1]: https://github.com/10up/ElasticPress/compare/3.5...3.5.1
[3.5.0]: https://github.com/10up/ElasticPress/compare/3.4.3...3.5
Expand Down
31 changes: 26 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,39 @@ The `develop` branch is the development branch which means it contains the next

## Release instructions

1. If the new version requires a reindex, add its number to the `$reindex_versions` array in the `ElasticPress\Upgrades::check_reindex_needed()` method. If it is the case, remember to add that information to the Changelog listings in readme.txt and CHANGELOG.md.
1. If the new version requires a reindex, add its number to the `$reindex_versions` array in the `ElasticPress\Upgrades::check_reindex_needed()` method. If it is the case, remember to add that information to the Changelog listings in `readme.txt` and `CHANGELOG.md`.
1. Branch: Starting from `develop`, cut a release branch named `release/X.Y.Z` for your changes.
1. Version bump: Bump the version number in `elasticpress.php`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpress.php` update both the plugin "Version:" property and the plugin `EP_VERSION` constant.
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`, ensuring to link the release in the footer of `CHANGELOG.md`.
1. Version bump: Bump the version number in `elasticpress.php`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpress.php` update both the plugin "Version:" property and the plugin `EP_VERSION` constant.
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`, ensuring to link the [X.Y.Z] release reference in the footer of `CHANGELOG.md` (e.g., https://github.com/10up/ElasticPress/compare/X.Y.Z-1...X.Y.Z).
1. Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
1. Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
1. Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
1. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.gitattributes`.
1. Merge: Make a non-fast-forward merge from your release branch to `develop` (or merge the pull request), then do the same for `develop` into `master` (`git checkout master && git merge --no-ff develop`). `master` contains the stable development version.
1. Merge: Merge the release branch/PR into `develop`, then make a non-fast-forward merge from `develop` into `master` (`git checkout master && git merge --no-ff develop`). `master` contains the stable development version.
1. Test: While still on the `master` branch, test for functionality locally.
1. Push: Push your `master` branch to GitHub (e.g. `git push origin master`).
1. Release: Create a [new release](https://github.com/10up/elasticpress/releases/new), naming the tag and the release with the new version number, and targeting the `master` branch. Paste the release changelog from `CHANGELOG.md` into the body of the release and include a link to the closed issues on the [milestone](https://github.com/10up/elasticpress/milestone/#?closed=1).
1. SVN: Wait for the [GitHub Action](https://github.com/10up/ElasticPress/actions?query=workflow%3A%22Deploy+to+WordPress.org%22) to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
1. Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/elasticpress/. This may take a few minutes.
1. Close milestone: Edit the [milestone](https://github.com/10up/elasticpress/milestone/#) with release date (in the `Due date (optional)` field) and link to GitHub release (in the `Description` field), then close the milestone.
1. Punt incomplete items: If any open issues or PRs which were milestoned for `X.Y.Z` do not make it into the release, update their milestone to `X.Y.Z+1`, `X.Y+1.0`, `X+1.0.0` or `Future Release`.

## Hotfix release instructions

There may be cases where we have an urgent/important fix that ideally gets into a release quickly without any other changes (e.g., a "hotfix") so as to reduce (1) the amount or testing before being confident in the release and (2) to reduce the chance of unintended side effects from the extraneous non-urgent/important changes. In cases where code has previously been merged into `develop` but that ideally is not part of a hotfix, the normal release instructions above will not suffice as they would release all code merged to `develop` alongside the intended urgent/important "hotfix" change(s). In case of needing to release a "hotfix" the following are the recommended steps to take.

1. If the new version requires a reindex, add its number to the `$reindex_versions` array in the `ElasticPress\Upgrades::check_reindex_needed()` method. If it is the case, remember to add that information to the Changelog listings in `readme.txt` and `CHANGELOG.md`.
1. Branch: Starting from `master`, cut a hotfix release branch named `hotfix/X.Y.Z` for your hotfix change(s).
1. Version bump: Bump the version number in `elasticpress.php`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpress.php` update both the plugin "Version:" property and the plugin `EP_VERSION` constant.
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`, ensuring to link the [X.Y.Z] release reference in the footer of `CHANGELOG.md` (e.g., https://github.com/10up/ElasticPress/compare/X.Y.Z-1...X.Y.Z).
1. Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
1. Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
1. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.gitattributes`.
1. Merge: Merge the release branch/PR into `master`. `master` contains the stable development version.
1. Test: While still on the `master` branch, test for functionality locally.
1. Push: Push your `master` branch to GitHub (e.g. `git push origin master`).
1. Release: Create a [new release](https://github.com/10up/elasticpress/releases/new), naming the tag and the release with the new version number, and targeting the `master` branch. Paste the release changelog from `CHANGELOG.md` into the body of the release and include a link to the closed issues on the [milestone](https://github.com/10up/elasticpress/milestone/#?closed=1).
1. SVN: Wait for the [GitHub Action](https://github.com/10up/ElasticPress/actions?query=workflow%3A%22Deploy+to+WordPress.org%22) to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
1. Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/elasticpress/. This may take a few minutes.
1. Close milestone: Edit the [milestone](https://github.com/10up/elasticpress/milestone/#) with release date (in the `Due date (optional)` field) and link to GitHub release (in the `Description` field), then close the milestone.
1. Punt incomplete items: If any open issues or PRs which were milestoned for `X.Y.Z` do not make it into the hotfix release, update their milestone to `X.Y.Z+1`, `X.Y+1.0`, `X+1.0.0` or `Future Release`.
1. Apply hotfix changes to `develop`: Make a non-fast-forward merge from `master` into `develop` (`git checkout develop && git merge --no-ff master`) to ensure your hotfix change(s) are in sync with active development.
Loading