forked from github/plane
fix: inbox description and mutation (#3677)
* fix: inbox status mutation fix * fix: inbox description fix * chore: added description in inbox issue --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
2cd16c61ba
commit
7628419a26
@ -27,7 +27,7 @@ from plane.app.serializers import (
|
|||||||
InboxSerializer,
|
InboxSerializer,
|
||||||
InboxIssueSerializer,
|
InboxIssueSerializer,
|
||||||
IssueCreateSerializer,
|
IssueCreateSerializer,
|
||||||
IssueStateInboxSerializer,
|
IssueDetailSerializer,
|
||||||
)
|
)
|
||||||
from plane.utils.issue_filters import issue_filters
|
from plane.utils.issue_filters import issue_filters
|
||||||
from plane.bgtasks.issue_activites_task import issue_activity
|
from plane.bgtasks.issue_activites_task import issue_activity
|
||||||
@ -333,7 +333,7 @@ class InboxIssueViewSet(BaseViewSet):
|
|||||||
|
|
||||||
def retrieve(self, request, slug, project_id, inbox_id, issue_id):
|
def retrieve(self, request, slug, project_id, inbox_id, issue_id):
|
||||||
issue = self.get_queryset().filter(pk=issue_id).first()
|
issue = self.get_queryset().filter(pk=issue_id).first()
|
||||||
serializer = IssueSerializer(issue, expand=self.expand,)
|
serializer = IssueDetailSerializer(issue, expand=self.expand,)
|
||||||
return Response(serializer.data, status=status.HTTP_200_OK)
|
return Response(serializer.data, status=status.HTTP_200_OK)
|
||||||
|
|
||||||
def destroy(self, request, slug, project_id, inbox_id, issue_id):
|
def destroy(self, request, slug, project_id, inbox_id, issue_id):
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
// hooks
|
// hooks
|
||||||
import { useInboxIssues } from "hooks/store";
|
import { useInboxIssues } from "hooks/store";
|
||||||
// constants
|
// constants
|
||||||
@ -13,7 +14,7 @@ type Props = {
|
|||||||
showDescription?: boolean;
|
showDescription?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const InboxIssueStatus: React.FC<Props> = (props) => {
|
export const InboxIssueStatus: React.FC<Props> = observer((props) => {
|
||||||
const { workspaceSlug, projectId, inboxId, issueId, iconSize = 18, showDescription = false } = props;
|
const { workspaceSlug, projectId, inboxId, issueId, iconSize = 18, showDescription = false } = props;
|
||||||
// hooks
|
// hooks
|
||||||
const {
|
const {
|
||||||
@ -52,4 +53,4 @@ export const InboxIssueStatus: React.FC<Props> = (props) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
@ -108,7 +108,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = observer((props) => {
|
|||||||
description_html: issue.description_html === "" ? "<p></p>" : issue.description_html,
|
description_html: issue.description_html === "" ? "<p></p>" : issue.description_html,
|
||||||
});
|
});
|
||||||
setLocalTitleValue(issue.name);
|
setLocalTitleValue(issue.name);
|
||||||
}, [issue, reset]);
|
}, [issue, issue.description_html, reset]);
|
||||||
|
|
||||||
// ADDING handleDescriptionFormSubmit TO DEPENDENCY ARRAY PRODUCES ADVERSE EFFECTS
|
// ADDING handleDescriptionFormSubmit TO DEPENDENCY ARRAY PRODUCES ADVERSE EFFECTS
|
||||||
// TODO: Verify the exhaustive-deps warning
|
// TODO: Verify the exhaustive-deps warning
|
||||||
|
Loading…
Reference in New Issue
Block a user