Skip to content

Commit 188413d

Browse files
committed
DOC-474: Back out changes that are causing test failures
1 parent 9232bf7 commit 188413d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/code/Magento/DownloadableGraphQl/etc/schema.graphqls

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ type DownloadableProduct implements ProductInterface, RoutableInterface, Customi
3737
links_title: String @doc(description: "The heading above the list of downloadable products.")
3838
}
3939

40-
enum DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.") {
41-
FILE @deprecated(reason: "Use `sample_url` instead.")
42-
URL @deprecated(reason: "Use `sample_url` instead.")
40+
enum DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample") {
41+
FILE @deprecated(reason: "`sample_url` serves to get the downloadable sample"")
42+
URL @deprecated(reason: "`sample_url` serves to get the downloadable sample"")
4343
}
4444

4545
type DownloadableProductLinks @doc(description: "Defines characteristics of a downloadable product.") {
@@ -50,9 +50,9 @@ type DownloadableProductLinks @doc(description: "Defines characteristics of a do
5050
sample_url: String @doc(description: "The full URL to the downloadable sample.")
5151
is_shareable: Boolean @deprecated(reason: "This information should not be exposed on frontend.")
5252
number_of_downloads: Int @deprecated(reason: "This information should not be exposed on frontend.")
53-
link_type: DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.")
54-
sample_type: DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.")
55-
sample_file: String @deprecated(reason: "Use `sample_url` instead.")
53+
link_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample)
54+
sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
55+
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
5656
uid: ID! @doc(description: "The unique ID for a `DownloadableProductLinks` object.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
5757
}
5858
@@ -61,8 +61,8 @@ type DownloadableProductSamples @doc(description: "Defines characteristics of a
6161
title: String @doc(description: "The display name of the sample.")
6262
sort_order: Int @doc(description: "A number indicating the sort order.")
6363
sample_url: String @doc(description: "The full URL to the downloadable sample.")
64-
sample_type: DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.")
65-
sample_file: String @deprecated(reason: "Use `sample_url` instead.")
64+
sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
65+
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
6666
}
6767
6868
type DownloadableOrderItem implements OrderItemInterface @doc(description: "Defines downloadable product options for `OrderItemInterface`.") {

dev/tests/api-functional/testsuite/Magento/GraphQl/IntrospectionQueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ enumValues(includeDeprecated: true) {
249249
}
250250
$this->assertNotEmpty($enumValueDeprecatedReason);
251251
$this->assertContains(
252-
'Use `sample_url` instead.',
252+
'`sample_url` serves to get the downloadable sample',
253253
$enumValueDeprecatedReason
254254
);
255255
$this->assertContains(
256-
'Use `sample_url` instead.',
256+
'`sample_url` serves to get the downloadable sample',
257257
$enumValueReasonArray
258258
);
259259
$this->assertNotEmpty(

0 commit comments

Comments
 (0)