6 kyu

E-commerce: Categories with Decreased Product Stock

Description
Loading description...
SQL
Databases
  • Please sign in or sign up to leave a comment.
  • tttfff Avatar

    This comment has been hidden.

  • dfhwze Avatar

    It is not specified whether products can have a "deleted_at" field set in the future. For instance, for obsolete products, that are bound to become inactive. Such products should still be considered active today.

    • bornForThis Avatar

      Haven't thought about that. Updated the description, tests and ref. solution to consider such a case. Thanks for the feedback!

      Issue marked resolved by bornForThis 13 months ago
  • Voile Avatar

    Random test doesn't check the boundary conditions well enough. It also often expects only 1 row to be returned.

    Fixed test has the same problems too, so these conditions are often untested.

    • bornForThis Avatar

      Voilà, and static, as well as random tests, are updated to check the boundary conditions well enough :) Thanks for the feedback and solving the kata!

      Issue marked resolved by bornForThis 13 months ago