Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit cdd756d

Browse files
Merge branch '2.4.2-develop' into MC-39995-composer2
2 parents e384bee + 01eb1ab commit cdd756d

File tree

138 files changed

+5291
-1501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+5291
-1501
lines changed

.github/workflows/linter.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ name: Lint Code Base
1111
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
1212
#
1313

14-
#############################
15-
# Start the job on all push #
16-
#############################
14+
###################################
15+
# Start the job on a pull request #
16+
###################################
1717
on:
18-
pull_request:
19-
branches:
20-
- master
21-
- 2.*-develop
18+
pull_request
2219

2320
###############
2421
# Set the Job #
@@ -50,4 +47,5 @@ jobs:
5047
VALIDATE_ALL_CODEBASE: false
5148
DEFAULT_BRANCH: master
5249
VALIDATE_HTML: false
50+
VALIDATE_OPENAPI: false
5351
MARKDOWN_CONFIG_FILE: .markdownlint.json

.github/workflows/main.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This site is built by [Jekyll](https://jekyllrb.com/), which is an open-source t
1515
You can build the site locally in the following ways:
1616

1717
- [Installing the project dependencies locally](#build-locally) (Mac, Linux)
18-
- [Using Docker (docker-compose)](#docker-docker-compose) (Mac, Linux, Windows)
18+
- [Using Docker (docker-compose)](https://github.com/magento/devdocs/wiki/Build-DevDocs-with-Docker) (Mac, Linux, Windows)
1919
- [Using a Vagrant virtual machine](https://github.com/magento-devdocs/vagrant-for-magento-devdocs) (Mac, Linux, Windows)
2020
- [Build DevDocs in Windows](https://github.com/magento/devdocs/wiki/Build-DevDocs-in-Windows) (Windows 7 & 10)
2121
- [Building older versions of the documentation](https://github.com/magento/devdocs/wiki/Build-DevDocs-with-Docker)

Rakefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ task :whatsnew do
7878
print 'Generating data for the What\'s New digest: $ '.magenta
7979

8080
# Generate tmp/whats-new.yml
81-
if since.nil? || since.empty?
82-
sh 'bin/whatsup_github', 'since', last_update
83-
elsif since.is_a? String
84-
sh 'bin/whatsup_github', 'since', since
85-
else
86-
abort 'The "since" argument must be a string. Example: "jul 4"'
87-
end
81+
report =
82+
if since.nil? || since.empty?
83+
`bin/whatsup_github since '#{last_update}'`
84+
elsif since.is_a? String
85+
`bin/whatsup_github since #{since}`
86+
else
87+
abort 'The "since" argument must be a string. Example: "jul 4"'
88+
end
8889

8990
# Merge generated tmp/whats-new.yml with existing src/_data/whats-new.yml
9091
generated_data = YAML.load_file generated_file
@@ -94,6 +95,9 @@ task :whatsnew do
9495

9596
puts "Writing updates to #{current_file}"
9697
File.write current_file, current_data.to_yaml
98+
99+
abort report if report.include? 'MISSING whatsnew'
100+
puts report
97101
end
98102

99103
desc 'Generate index for Algolia'

_plugins/debug/site_post_render.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# frozen_string_literal: true
2+
3+
# Copyright © Magento, Inc. All rights reserved.
4+
# See COPYING.txt for license details.
5+
6+
# To enable this plugin, add to your '_config.local.yml' the following:
7+
#
8+
# debug: site_post_render
9+
#
10+
# This plugin runs an IRB session (https://github.com/ruby/irb) of a Jekyll application in a serving mode when it's at a state after rendering the whole site, but before writing any files.
11+
# See the ":site, :post_render" hook: https://jekyllrb.com/docs/plugins/hooks/
12+
# Available objects to explore are 'site' and 'payload'.
13+
#
14+
# Several helpful methods (to use a method, chain to an object such as 'site.methods', 'payload.keys'):
15+
# - '.methods.sort'
16+
# - '.instance_variables.sort'
17+
# - '.keys.sort'
18+
#
19+
# Examples:
20+
#
21+
# To view available configuration data of the site
22+
# > payload.site.keys
23+
#
24+
# To view the number of pages:
25+
# > payload.site.pages.count
26+
#
27+
# To find a page by path and view its data:
28+
# > page = payload.site.pages.select { |page| page.path == 'cloud/env/variables-build.md' }[0]
29+
# > page.data
30+
#
31+
# To exit from the IRB session:
32+
# > exit!
33+
#
34+
Jekyll::Hooks.register :site, :post_render do |site, payload|
35+
next unless site.config['serving']
36+
37+
# rubocop:disable Lint/Debugger
38+
binding.irb if site.config['debug'] == 'site_post_render'
39+
# rubocop:enable Lint/Debugger
40+
end

_plugins/debug/site_pre_render.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# frozen_string_literal: true
2+
3+
# Copyright © Magento, Inc. All rights reserved.
4+
# See COPYING.txt for license details.
5+
6+
# To enable this plugin, add to your '_config.local.yml' the following:
7+
#
8+
# debug: site_pre_render
9+
#
10+
# This plugin runs an IRB session (https://github.com/ruby/irb) of a Jekyll application in a serving mode when it's at a state just before rendering the whole site.
11+
# See the ":site, :pre_render" hook: https://jekyllrb.com/docs/plugins/hooks/
12+
# Available objects to explore are 'site' and 'payload'.
13+
#
14+
# Several helpful methods (to use a method, chain to an object such as 'site.methods', 'payload.keys'):
15+
# - '.methods.sort'
16+
# - '.instance_variables.sort'
17+
# - '.keys.sort'
18+
#
19+
# Examples:
20+
#
21+
# To view available configuration data of the site
22+
# > payload.site.keys
23+
#
24+
# To view the number of pages:
25+
# > payload.site.pages.count
26+
#
27+
# To find a page by path and view its data:
28+
# > page = payload.site.pages.select { |page| page.path == 'cloud/env/variables-build.md' }[0]
29+
# > page.data
30+
#
31+
# To exit from the IRB session:
32+
# > exit!
33+
#
34+
Jekyll::Hooks.register :site, :pre_render do |site, payload|
35+
next unless site.config['serving']
36+
37+
# rubocop:disable Lint/Debugger
38+
binding.irb if site.config['debug'] == 'site_pre_render'
39+
# rubocop:enable Lint/Debugger
40+
end

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.6'
22

33
services:
44
jekyll:
5-
image: jekyll/jekyll:latest
5+
image: jekyll/jekyll:3.8.6
66
command: jekyll serve --watch --incremental --open-url --livereload
77
ports:
88
- 4000:4000

src/_data/toc/configuration-guide.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ pages:
367367
- label: Set up optional database replication
368368
url: /config-guide/multi-master/multi-master_slavedb.html
369369

370+
- label: Revert from a split database to a single database
371+
url: /config-guide/revert-split-database.html
372+
370373
- label: Custom Logging
371374
url: /config-guide/log/log-intro.html
372375
children:

src/_data/toc/graphql.yml

Lines changed: 88 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,30 @@ pages:
181181
- label: addDownloadableProductsToCart mutation
182182
url: /graphql/mutations/add-downloadable-products.html
183183

184+
- label: addProductsToRequisitionList mutation
185+
url: /graphql/mutations/add-products-to-requisition-list.html
186+
edition: b2b-only
187+
exclude_versions: [ "2.3" ]
188+
184189
- label: addProductsToWishlist mutation
185190
url: /graphql/mutations/add-products-to-wishlist.html
186191
exclude_versions: ["2.3"]
187192

193+
- label: addRequisitionListItemsToCart mutation
194+
url: /graphql/mutations/add-requisition-list-items-to-cart.html
195+
edition: b2b-only
196+
exclude_versions: [ "2.3" ]
197+
198+
- label: addReturnComment mutation
199+
url: /graphql/mutations/add-return-comment.html
200+
edition: ee-only
201+
exclude_versions: ["2.3"]
202+
203+
- label: addReturnTracking mutation
204+
url: /graphql/mutations/add-return-tracking.html
205+
edition: ee-only
206+
exclude_versions: ["2.3"]
207+
188208
- label: addSimpleProductsToCart mutation
189209
url: /graphql/mutations/add-simple-products.html
190210

@@ -210,8 +230,18 @@ pages:
210230
- label: changeCustomerPassword mutation
211231
url: /graphql/mutations/change-customer-password.html
212232

213-
- label: copyProductsToWishlist mutation
214-
url: /graphql/mutations/copy-products-to-wishlist.html
233+
- label: clearCustomerCart mutation
234+
url: /graphql/mutations/clear-customer-cart.html
235+
edition: b2b-only
236+
exclude_versions: [ "2.3" ]
237+
238+
- label: copyItemsBetweenRequisitionLists mutation
239+
url: /graphql/mutations/copy-items-between-requisition-lists.html
240+
edition: b2b-only
241+
exclude_versions: [ "2.3" ]
242+
243+
- label: copyProductsBetweenWishlists mutation
244+
url: /graphql/mutations/copy-products-between-wishlists.html
215245
edition: ee-only
216246
exclude_versions: ["2.3"]
217247

@@ -293,19 +323,24 @@ pages:
293323
- label: deleteCustomerAddress mutation
294324
url: /graphql/mutations/delete-customer-address.html
295325

296-
- label: deleteWishlist mutation
297-
url: /graphql/mutations/delete-wishlist.html
298-
edition: ee-only
299-
exclude_versions: ["2.3"]
300-
301-
- label: deletePaymentToken mutation
302-
url: /graphql/mutations/delete-payment-token.html
303-
304326
- label: deleteRequisitionList mutation
305327
url: /graphql/mutations/delete-requisition-list.html
306328
edition: b2b-only
307329
exclude_versions: [ "2.3" ]
308330

331+
- label: deleteRequisitionListItems mutation
332+
url: /graphql/mutations/delete-requisition-list-items.html
333+
edition: b2b-only
334+
exclude_versions: [ "2.3" ]
335+
336+
- label: deletePaymentToken mutation
337+
url: /graphql/mutations/delete-payment-token.html
338+
339+
- label: deleteWishlist mutation
340+
url: /graphql/mutations/delete-wishlist.html
341+
edition: ee-only
342+
exclude_versions: ["2.3"]
343+
309344
- label: generateCustomerToken mutation
310345
url: /graphql/mutations/generate-customer-token.html
311346

@@ -319,11 +354,16 @@ pages:
319354
- label: mergeCarts mutation
320355
url: /graphql/mutations/merge-carts.html
321356

322-
- label: moveProductsToWishlist mutation
323-
url: /graphql/mutations/move-products-to-wishlist.html
357+
- label: moveProductsBetweenWishlists mutation
358+
url: /graphql/mutations/move-products-between-wishlists.html
324359
edition: ee-only
325360
exclude_versions: ["2.3"]
326361

362+
- label: moveItemsBetweenRequisitionLists mutation
363+
url: /graphql/mutations/move-items-between-requisition-lists.html
364+
edition: b2b-only
365+
exclude_versions: [ "2.3" ]
366+
327367
- label: placeOrder mutation
328368
url: /graphql/mutations/place-order.html
329369

@@ -345,6 +385,11 @@ pages:
345385
url: /graphql/mutations/remove-products-from-wishlist.html
346386
exclude_versions: ["2.3"]
347387

388+
- label: removeReturnTracking mutation
389+
url: /graphql/mutations/remove-return-tracking.html
390+
edition: ee-only
391+
exclude_versions: ["2.3"]
392+
348393
- label: removeRewardPointsFromCart mutation
349394
url: /graphql/mutations/remove-reward-points.html
350395
edition: ee-only
@@ -354,11 +399,6 @@ pages:
354399
url: /graphql/mutations/remove-store-credit.html
355400
edition: ee-only
356401

357-
- label: renameRequisitionList mutation
358-
url: /graphql/mutations/rename-requisition-list.html
359-
edition: b2b-only
360-
exclude_versions: [ "2.3" ]
361-
362402
- label: reorderItems mutation
363403
url: /graphql/mutations/reorder-items.html
364404
exclude_versions: ["2.3"]
@@ -367,13 +407,18 @@ pages:
367407
url: /graphql/mutations/request-password-reset-email.html
368408
exclude_versions: ["2.3"]
369409

370-
- label: revokeCustomerToken mutation
371-
url: /graphql/mutations/revoke-customer-token.html
410+
- label: requestReturn mutation
411+
url: /graphql/mutations/request-return.html
412+
edition: ee-only
413+
exclude_versions: ["2.3"]
372414

373415
- label: resetPassword mutation
374416
url: /graphql/mutations/reset-password.html
375417
exclude_versions: ["2.3"]
376418

419+
- label: revokeCustomerToken mutation
420+
url: /graphql/mutations/revoke-customer-token.html
421+
377422
- label: sendEmailToFriend mutation
378423
url: /graphql/mutations/send-email-to-friend.html
379424

@@ -449,6 +494,16 @@ pages:
449494
url: /graphql/mutations/update-products-in-wishlist.html
450495
exclude_versions: ["2.3"]
451496

497+
- label: updateRequisitionList mutation
498+
url: /graphql/mutations/update-requisition-list.html
499+
edition: b2b-only
500+
exclude_versions: [ "2.3" ]
501+
502+
- label: updateRequisitionListItems mutation
503+
url: /graphql/mutations/update-requisition-list-items.html
504+
edition: b2b-only
505+
exclude_versions: [ "2.3" ]
506+
452507
- label: updateWishlist mutation
453508
url: /graphql/mutations/update-wishlist.html
454509
edition: ee-only
@@ -465,7 +520,7 @@ pages:
465520
- label: CategoryInterface attributes
466521
url: /graphql/interfaces/category-interface.html
467522

468-
- label: CustomizableOptionInterface
523+
- label: CustomizableOptionInterface attributes
469524
url: /graphql/interfaces/customizable-option-interface.html
470525

471526
- label: Bundle product data types
@@ -489,6 +544,10 @@ pages:
489544
- label: Virtual product data types
490545
url: /graphql/interfaces/virtual-product.html
491546

547+
- label: CartItemInterface attributes and implementations
548+
url: /graphql/interfaces/cart-item-interface.html
549+
exclude_versions: ["2.3"]
550+
492551
- label: CreditMemoItemInterface attributes and implementations
493552
url: /graphql/interfaces/credit-memo-item-interface.html
494553
exclude_versions: ["2.3"]
@@ -501,10 +560,19 @@ pages:
501560
url: /graphql/interfaces/order-item-interface.html
502561
exclude_versions: ["2.3"]
503562

563+
- label: RequisitionListItemInterface attributes and implementations
564+
url: /graphql/interfaces/requisition-list-item-interface.html
565+
edition: b2b-only
566+
exclude_versions: ["2.3"]
567+
504568
- label: ShipmentItemInterface attributes and implementations
505569
url: /graphql/interfaces/shipment-item-interface.html
506570
exclude_versions: ["2.3"]
507571

572+
- label: WishlistItemInterface attributes and implementations
573+
url: /graphql/interfaces/wishlist-item-interface.html
574+
exclude_versions: ["2.3"]
575+
508576
- label: Payment methods
509577
children:
510578

0 commit comments

Comments
 (0)