Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove deprecated availableOn, isVisible from Page in API

fowczarek785cfe719cc0
diff --git a/saleor/graphql/page/types.py b/saleor/graphql/page/types.py
index 8d471f1dee..7cb8dd392c 100644
--- a/saleor/graphql/page/types.py
+++ b/saleor/graphql/page/types.py
@@ -9,12 +9,6 @@ from ..translations.types import PageTranslation
class Page(CountableDjangoObjectType):
- available_on = graphene.Date(
- deprecation_reason="availableOn is deprecated, use publicationDate instead"
- )
- is_visible = graphene.Boolean(
- deprecation_reason="isVisible is deprecated, use isPublished instead"
- )
translation = graphene.Field(
PageTranslation,
language_code=graphene.Argument(
@@ -43,11 +37,3 @@ class Page(CountableDjangoObjectType):
]
interfaces = [relay.Node]
model = models.Page
-
- @staticmethod
- def resolve_available_on(root: models.Page, _info):
- return root.publication_date
-
- @staticmethod
- def resolve_is_visible(root: models.Page, _info):
- return root.is_published