-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: activity tracking description #8268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fdefd11
8521e4b
7e2a7e8
2977553
5d4d990
968ce2b
32597f6
8099159
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,10 +134,11 @@ export const IssueMainContent = observer(function IssueMainContent(props: Props) | |
| entityId={issue.id} | ||
| fileAssetType={EFileAssetType.ISSUE_DESCRIPTION} | ||
| initialValue={issue.description_html} | ||
| onSubmit={async (value) => { | ||
| onSubmit={async (value, isMigrationUpdate) => { | ||
| if (!issue.id || !issue.project_id) return; | ||
| await issueOperations.update(workspaceSlug, issue.project_id, issue.id, { | ||
| description_html: value, | ||
| ...(isMigrationUpdate ? { skip_activity: "true" } : {}), | ||
| }); | ||
|
Comment on lines
137
to
142
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
rg -n "no_activity" -SRepository: makeplane/plane Length of output: 456 🏁 Script executed: #!/bin/bash
rg -n "skip_activity" -SRepository: makeplane/plane Length of output: 488 🏁 Script executed: #!/bin/bash
# Search for issue operations/update patterns to understand payload structure
rg -n "issueOperations\.update|description_html" -S -A 3 -B 1Repository: makeplane/plane Length of output: 50372 🏁 Script executed: #!/bin/bash
# Check the exact backend logic for skip_activity in issue updates
sed -n '610,670p' apps/api/plane/app/views/issue/base.pyRepository: makeplane/plane Length of output: 2688 🏁 Script executed: #!/bin/bash
# Check intake view as well
sed -n '320,430p' apps/api/plane/app/views/intake/base.pyRepository: makeplane/plane Length of output: 4883 Field name mismatch blocks activity suppression; rename The handler sends Additionally, the field is sent as a string Rename 🤖 Prompt for AI Agents |
||
| }} | ||
| projectId={issue.project_id} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,10 +134,11 @@ export const PeekOverviewIssueDetails = observer(function PeekOverviewIssueDetai | |
| entityId={issue.id} | ||
| fileAssetType={EFileAssetType.ISSUE_DESCRIPTION} | ||
| initialValue={issueDescription} | ||
| onSubmit={async (value) => { | ||
| onSubmit={async (value, isMigrationUpdate) => { | ||
| if (!issue.id || !issue.project_id) return; | ||
| await issueOperations.update(workspaceSlug, issue.project_id, issue.id, { | ||
| description_html: value, | ||
| ...(isMigrationUpdate ? { skip_activity: "true" } : {}), | ||
| }); | ||
|
Comment on lines
137
to
142
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Search for no_activity usage patterns
rg -n "no_activity" -S --type-add 'web:tsx,ts' -t webRepository: makeplane/plane Length of output: 207 🏁 Script executed: # Search for skip_activity or similar alternative patterns
rg -n "skip_activity|skipActivity" -S --type-add 'web:tsx,ts' -t webRepository: makeplane/plane Length of output: 207 🏁 Script executed: # Search for issueOperations.update calls to see how no_activity is used
rg -B 2 -A 2 "issueOperations\.update" --type-add 'web:tsx,ts' -t webRepository: makeplane/plane Length of output: 207 🏁 Script executed: # Check the issueOperations definition to understand the update signature
fd -e ts -e tsx | xargs grep -l "issueOperations\s*=" | head -5Repository: makeplane/plane Length of output: 484 🏁 Script executed: # Search for no_activity without type restrictions
rg "no_activity" -nRepository: makeplane/plane Length of output: 456 🏁 Script executed: # Search for skip_activity or similar patterns
rg "skip_activity|skipActivity" -nRepository: makeplane/plane Length of output: 488 🏁 Script executed: # Search for issueOperations.update calls
rg "issueOperations\.update" -B 2 -A 2 -nRepository: makeplane/plane Length of output: 15603 🏁 Script executed: # Inspect the target file
cat -n apps/web/core/components/issues/peek-overview/issue-detail.tsx | head -150Repository: makeplane/plane Length of output: 6562 🏁 Script executed: # Search for issueOperations.update implementation to see how payload is sent
rg -n "const.*issueOperations.*=" --type-add 'web:tsx,ts,js' -A 5 | head -50Repository: makeplane/plane Length of output: 4914 🏁 Script executed: # Look for the update method definition in issue operations
fd -e ts -e tsx | xargs grep -l "update.*workspaceSlug.*projectId" | grep -i operationRepository: makeplane/plane Length of output: 137 🏁 Script executed: # Check for any API middleware or transformation
rg -n "no_activity|skip_activity" apps/web --type-add 'web:tsx,ts,js' -B 3 -A 3Repository: makeplane/plane Length of output: 2378 🏁 Script executed: # Get the full issueOperations definition from peek-overview/root.tsx
cat -n apps/web/core/components/issues/peek-overview/root.tsx | sed -n '63,150p'Repository: makeplane/plane Length of output: 3922 🏁 Script executed: # Search for the update method definition in issueOperations
rg -n "update.*async.*workspaceSlug" apps/web/core/components/issues/peek-overview/root.tsx -A 10Repository: makeplane/plane Length of output: 587 🏁 Script executed: # Look for API service or client that processes the update payload
rg -n "class.*IssueService|export.*function.*update" --type-add 'web:tsx,ts,js' apps/web/services -A 3Repository: makeplane/plane Length of output: 116 🏁 Script executed: # Find where issues.updateIssue is defined
rg -n "updateIssue.*async" --type-add 'web:tsx,ts,js' -A 5 | head -80Repository: makeplane/plane Length of output: 7001 🏁 Script executed: # Search for issues store/hook definition
rg -n "useIssues|issues.*useMemo" apps/web/core/components/issues/peek-overview/root.tsx -B 5 -A 3Repository: makeplane/plane Length of output: 1158 🏁 Script executed: # Find the actual store implementation
fd -type f -name "*.ts" -o -name "*.tsx" | xargs rg -l "updateIssue" | grep -E "store|hook" | head -5Repository: makeplane/plane Length of output: 472 🏁 Script executed: # Get the full updateIssue implementation from issue.store.ts
cat -n apps/web/core/store/issue/issue-details/issue.store.ts | sed -n '175,220p'Repository: makeplane/plane Length of output: 2275 🏁 Script executed: # Search for projectIssues service to see the actual API call
rg -n "projectIssues\." apps/web/core/store/issue/issue-details/issue.store.ts -B 2 -A 2Repository: makeplane/plane Length of output: 41 🏁 Script executed: # Find where projectIssues is instantiated/imported
rg -n "projectIssues" apps/web/core/store/issue/issue-details/issue.store.ts | head -20Repository: makeplane/plane Length of output: 268 🏁 Script executed: # Find rootIssueStore definition
rg -n "class.*RootIssueStore|projectIssues.*=" apps/web/core/store/issue/issue-details/root.store.ts -A 3 | head -40Repository: makeplane/plane Length of output: 41 🏁 Script executed: # Search for projectIssues store file
fd -name "*project*issues*" -o -name "*root*store*" | grep -E "store|issue" | head -10Repository: makeplane/plane Length of output: 289 🏁 Script executed: # Find the actual API service that sends the payload
rg -n "class.*ProjectIssues|updateIssue.*async" apps/web/core/store -A 5 | grep -A 5 "updateIssue"Repository: makeplane/plane Length of output: 2750 🏁 Script executed: # Find BaseIssuesStore which likely has the actual updateIssue implementation
fd "base*issues*" -type fRepository: makeplane/plane Length of output: 229 🏁 Script executed: # Search for the store file that contains updateIssue with API call
rg "updateIssue.*service\.|issueService\.update" --type-add 'web:tsx,ts,js' -B 3 -A 8Repository: makeplane/plane Length of output: 3137 🏁 Script executed: # Look for where the data payload is actually sent (likely in a service file)
rg "PUT.*issue|issueService" apps/web/core/store -A 5 | head -60Repository: makeplane/plane Length of output: 4408 🏁 Script executed: # Find IssueService definition
fd "issue.*service" -type f | head -5Repository: makeplane/plane Length of output: 229 🏁 Script executed: # Search for IssueService class and updateIssue method
rg "class IssueService|updateIssue.*async" -A 10 | head -100Repository: makeplane/plane Length of output: 9263 🏁 Script executed: # Get IssueService.updateIssue method
cat apps/web/core/services/issue/issue.service.ts | grep -n "updateIssue" -A 15 | head -50Repository: makeplane/plane Length of output: 1882 🏁 Script executed: # Get the full IssueService file to find updateIssue method
wc -l apps/web/core/services/issue/issue.service.tsRepository: makeplane/plane Length of output: 108 🏁 Script executed: # Search more specifically for updateIssue pattern
rg "updateIssue.*\(" apps/web/core/services/issue/issue.service.ts -A 10Repository: makeplane/plane Length of output: 1236 🏁 Script executed: # Look at the full IssueService to see all methods
cat -n apps/web/core/services/issue/issue.service.ts | head -100Repository: makeplane/plane Length of output: 3673 🏁 Script executed: # Search for BaseIssuesStore which extends or contains projectIssues
rg "class.*BaseIssues|updateIssue.*=" apps/web/core/store/issue/helpers/base-issues.store.ts -A 8 | head -100Repository: makeplane/plane Length of output: 390 🏁 Script executed: # Search for updateIssue in BaseIssuesStore
rg "updateIssue.*=" apps/web/core/store/issue/helpers/base-issues.store.ts -A 20 | head -80Repository: makeplane/plane Length of output: 41 🏁 Script executed: # Also check the size and search for issueUpdate which might be the method name
wc -l apps/web/core/store/issue/helpers/base-issues.store.tsRepository: makeplane/plane Length of output: 118 🏁 Script executed: # Search for issueUpdate method
rg "issueUpdate\s*=" apps/web/core/store/issue/helpers/base-issues.store.ts -A 30 | head -100Repository: makeplane/plane Length of output: 41 🏁 Script executed: # Also search for PATCH or patchIssue calls
rg "patchIssue\|issueService\.patch" apps/web/core/store/issue/helpers/base-issues.store.ts -B 3 -A 8 | head -80Repository: makeplane/plane Length of output: 41 🏁 Script executed: # Find ProjectIssues store definition
fd "project.*issues.*store" -type fRepository: makeplane/plane Length of output: 229 🏁 Script executed: # Search for class ProjectIssues
rg "class ProjectIssues" apps/web/core/store -A 30Repository: makeplane/plane Length of output: 4816 🏁 Script executed: # Look at the root store to see how projectIssues is initialized
rg "projectIssues" apps/web/core/store/issue/root-issue-store.ts -B 2 -A 5 | head -50Repository: makeplane/plane Length of output: 144 🏁 Script executed: # Search BaseIssuesStore for all methods containing "update" or "issue"
rg "^\s*(updateIssue|issueUpdate)\s*=" apps/web/core/store/issue/helpers/base-issues.store.ts -A 25Repository: makeplane/plane Length of output: 41 🏁 Script executed: # More broad search - look for methods that call issueService
rg "this\.issueService\." apps/web/core/store/issue/helpers/base-issues.store.ts | head -20Repository: makeplane/plane Length of output: 1054 Field name and type mismatch: frontend sends The code sends skip_activity = request.data.pop("skip_activity", False)The ...(isMigrationUpdate ? { skip_activity: true } : {})This affects three files: 🤖 Prompt for AI Agents |
||
| }} | ||
| setIsSubmitting={(value) => setIsSubmitting(value)} | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -160,7 +160,7 @@ export type IEditorProps = { | |||||
| mentionHandler: TMentionHandler; | ||||||
| onAssetChange?: (assets: TEditorAsset[]) => void; | ||||||
| onEditorFocus?: () => void; | ||||||
| onChange?: (json: object, html: string) => void; | ||||||
| onChange?: (json: object, html: string, { isMigrationUpdate }?: { isMigrationUpdate?: boolean }) => void; | ||||||
|
||||||
| onChange?: (json: object, html: string, { isMigrationUpdate }?: { isMigrationUpdate?: boolean }) => void; | |
| onChange?: (json: object, html: string, options?: { isMigrationUpdate?: boolean }) => void; |
Uh oh!
There was an error while loading. Please reload this page.