What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, is there a reason why there are so much deprecated functions left in the sprykers “category”

UPWG9AYH2
UPWG9AYH2 Posts: 509 🧑🏻‍🚀 - Cadet

Hello,
is there a reason why there are so much deprecated functions left in the sprykers “category” core facade? I usually observe this kind of massive deprecation when the complete module should be replaced/removed step by step.
Especially we were searching for a function that gets the category by key, but it seems this existing function will be removed with the next major. So, what is the plan/intention here? How to fetch categories by keys in future?
Best regards

Comments

  • UPWG9AYH2
    UPWG9AYH2 Posts: 509 🧑🏻‍🚀 - Cadet

    I could also imagine that everything should be handled by using the criteria based function findCategory(CategoryCriteriaTransfer $categoryCriteriaTransfer) but i wanna make sure that we don’t back the wrong horse …

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • UPWG9AYH2
    UPWG9AYH2 Posts: 509 🧑🏻‍🚀 - Cadet

    Okay, sorry for double post 😄 … to summarize: generally use the findCategory function but at the moment it does not support filtering by key which means we have to extend this on project evel