mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
[Bug][nightly]: getCustomFieldGroup endpoint raises a 500 error when getting a Card Group
#909
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hwelch-fle on GitHub (Feb 1, 2026).
Where is the problem occurring?
I encountered the problem while interacting with the server (Backend)
What browsers are you seeing the problem on?
Other
Current behavior
I'm not sure if this is intended behavior or not, but the
getCustomFieldGroupend point seems to fail when getting a CustomFieldGroup that is created directly from a Card.Here's a plankapy example of the endpoint failing
If that endpoint specifically reserved for accessing base/board groups? It's documented as being able to get card groups as long as the user has access to the group:
The group does still appear when accessed using
Card['included']:I am noticing that both Board and BaseCustomFieldGroupId are nulled out in a group created on a card, and in the
api/controllersfor that endpoint, only board and project are checked:052edc9fb1/server/api/controllers/custom-field-groups/show.js (L84C1-L87C77)Desired behavior
A call to
getCustomFieldGroupusing a CustomFieldGroup that was created on a card returns the associated CustomFieldGroupSteps to reproduce
call
getCustomFieldGroupendpoint (GET api/custom-field-groups/{groupId}) with a groupId that was created from a card modal with no base group selected.Other information
I can see how joining all cards could be an expensive operation here, but maybe allow passing an optional cardId to the endpoint? For now I can get around the issue by just getting the card value for the CustomFieldGroup and navigating from there.
@meltyshev commented on GitHub (Feb 1, 2026):
Hey! Thanks for reporting this - it's definitely a bug, I'm getting a 500 too. We hadn't noticed it earlier since we don't use this method from the client (I think we added it because it's used in the Pro version). And yes - both (card and board-wide group) should be accessible.
@hwelch-fle commented on GitHub (Feb 1, 2026):
That's for the fix! That was one of the last pieces for building a test project that hits every end point. One last one I'm having issues with is comments. Specifically embedding/triggering a mention action from the API. Do I need to embed the HTML mention info in the comment text body? Or will an @ suffice? The mention doesn't ping when posted through the API, but it does when I go to edit it through the web client
@meltyshev commented on GitHub (Feb 2, 2026):
Thanks for the question :) It now works via markdown syntax -
Hello, @[demo](1700325152031507457). It needs to start with@, followed by the display name[demo]and the user id(1700325152031507457). If the user has access to the card - a notification will be sent.@hwelch-fle commented on GitHub (Feb 2, 2026):
Duh. Thanks for clarifying! I'll get that patched in now