Skip to content

Codewars Webhook API triggers coding challenge events just for authored katas of a user #2349

Open
@falcowinkler

Description

@falcowinkler

Describe the bug
According to the codewars API,
we can get notified when a User that registered your webhook

  • solves a challenge
  • voted on a challenge
  • created a challenge
  • got an authored challenge approved


Sadly as Voile pointed out here: #1339, the event doesn't arrive if a user submits a solution to a kata that is not his own.

But that's the useful part of this feature, to develop some application for solving challenges in groups etc.

To Reproduce

  • Register a Webhook
  • Solve a kata not authored by yourself

Expected behavior
solution_finalized event get's sent

Screenshots
Not a screenshot, but these are the events i got
after

  • creating a webhook
  • solving a challenge
  • voting on a challenge
  • creating a challenge
  • solving another challenge, followed by a rank level up
{'action': 'updated', 'webhook': {'id': '605cdeb6eed5a50043eca5ac'}}
{'action': 'honor_changed', 'user': {'id': '5921cef45680925cd50000e1', 'honor': 16104, 'honor_delta': 2}}
{'action': 'honor_changed', 'user': {'id': '5921cef45680925cd50000e1', 'honor': 16105, 'honor_delta': 1}}
{'action': 'created', 'code_challenge': {'id': '605ce53ac0d60c002bd6ed51', 'created_by_id': '5921cef45680925cd50000e1'}}
{'action': 'rank_earned', 'user': {'id': '5921cef45680925cd50000e1', 'rank': -6}, 'language': 'scala'}
{'action': 'solution_finalized', 'solution': {'id': '5f15ee8d3b53360001bdad13', 'user_id': '5921cef45680925cd50000e1'}, 'code_challenge': {'id': '5f148fcbe2c2e0002ec7c20e', 'created_by_user_id': '5921cef45680925cd50000e1'}}

as you can see, the information is pretty sparse :(

Browser
If applicable, please provide your browser information.

  • OS: macOS
  • Browser Chrome
  • Version 89.0

Additional context
Voile pointed out a lot of other issues with the webhooks api, but i opened specifically this issue as a bug,
because i don't think it's intended behaviour, and as voiles comment was from 2018, i am hoping to get renewed attention on it.

┆Issue is synchronized with this Clickup by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions