Skip to content

[GraphQl] Wrongly deprecated fields in ProductInterface #34783

Closed
@t-heuser

Description

@t-heuser

In the ProductInterface the fields new_from_data and new_to_date are marked as deprecated. This happened in #30694 because of the issue #30625.
They were deprecated alongside other fields which are said that they would expose data that should not be visible. While i agree with most of the deprecated fields I strongly disagree with the deprecation of the fields new_from_data and new_to_date.

These 2 fields are in no way sensitive and are also needed when building a headless magento shop to be able to show to the customer whether a product is new, e.g via a label in the category or product view itself.

We want to add a label "New" to the product in categories, which is not possible anymore if the fields new_from_data and new_to_date are removed.

The deprecation should be withdrawn.

Fun fact: The fields new_from_data and new_to_date were not requested to be deprecated in #30625, the PR just did it.

Metadata

Metadata

Labels

Area: APIsComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions