[WEB-2442] fix : Timeline layout bugs (#5946)
* fix relation creation and removal for Issue relations * fix Scrolling to block when the block is beyond current chart's limits * fix dark mode for timeline layout * use a hook to get the current relations available in the environment, instead of directly importing it * Update relation activity for all the relations
This commit is contained in:
parent
a1bfde6af9
commit
71589f93ca
22 changed files with 201 additions and 105 deletions
|
|
@ -318,7 +318,7 @@ class IssueRelationViewSet(BaseViewSet):
|
|||
origin=request.META.get("HTTP_ORIGIN"),
|
||||
)
|
||||
|
||||
if relation_type == "blocking":
|
||||
if relation_type in ["blocking", "start_after", "finish_after"]:
|
||||
return Response(
|
||||
RelatedIssueSerializer(issue_relation, many=True).data,
|
||||
status=status.HTTP_201_CREATED,
|
||||
|
|
@ -333,7 +333,7 @@ class IssueRelationViewSet(BaseViewSet):
|
|||
relation_type = request.data.get("relation_type", None)
|
||||
related_issue = request.data.get("related_issue", None)
|
||||
|
||||
if relation_type == "blocking":
|
||||
if relation_type in ["blocking", "start_after", "finish_after"]:
|
||||
issue_relation = IssueRelation.objects.get(
|
||||
workspace__slug=slug,
|
||||
project_id=project_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue