feat: event tracking using posthog and created application provider to render multiple wrappers (#2757)
* fix: event tracker changes * fix: App provider implementation using wrappers * fix: updating packages * fix: handling warning * fix: wrapper fixes and minor optimization changes * fix: chore app-provider clearnup * fix: cleanup * fix: removing jitsu tracking * fix: minor updates * fix: adding event to posthog event tracker (#2802) * dev: posthog event tracker update intitiate * fix: adding events for posthog integration * fix: event payload --------- Co-authored-by: Ramesh Kumar Chandra <31303617+rameshkumarchandra@users.noreply.github.com>
This commit is contained in:
parent
33be52792f
commit
78fee22fec
114 changed files with 825 additions and 2768 deletions
|
|
@ -251,12 +251,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
});
|
||||
|
||||
try {
|
||||
const response = await this.issueService.createIssue(
|
||||
workspaceSlug,
|
||||
projectId,
|
||||
data,
|
||||
this.rootStore.user.currentUser!
|
||||
);
|
||||
const response = await this.issueService.createIssue(workspaceSlug, projectId, data);
|
||||
|
||||
runInAction(() => {
|
||||
this.loader = false;
|
||||
|
|
@ -283,9 +278,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
this.error = null;
|
||||
});
|
||||
|
||||
const user = this.rootStore.user.currentUser ?? undefined;
|
||||
|
||||
const response = await this.issueService.createIssue(workspaceSlug, projectId, data, user);
|
||||
const response = await this.issueService.createIssue(workspaceSlug, projectId, data);
|
||||
|
||||
runInAction(() => {
|
||||
this.loader = false;
|
||||
|
|
@ -323,7 +316,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
|
||||
if (!user) return;
|
||||
|
||||
const response = await this.issueService.patchIssue(workspaceSlug, projectId, issueId, data, user);
|
||||
const response = await this.issueService.patchIssue(workspaceSlug, projectId, issueId, data);
|
||||
|
||||
runInAction(() => {
|
||||
this.loader = false;
|
||||
|
|
@ -365,7 +358,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
|
||||
if (!user) return;
|
||||
|
||||
const response = await this.issueService.deleteIssue(workspaceSlug, projectId, issueId, user);
|
||||
const response = await this.issueService.deleteIssue(workspaceSlug, projectId, issueId);
|
||||
|
||||
runInAction(() => {
|
||||
this.loader = false;
|
||||
|
|
@ -521,8 +514,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
workspaceSlug,
|
||||
projectId,
|
||||
issueId,
|
||||
data,
|
||||
undefined
|
||||
data
|
||||
);
|
||||
|
||||
const _issueComments = {
|
||||
|
|
@ -551,8 +543,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
projectId,
|
||||
issueId,
|
||||
commentId,
|
||||
data,
|
||||
undefined
|
||||
data
|
||||
);
|
||||
|
||||
const _issueComments = {
|
||||
|
|
@ -577,7 +568,7 @@ export class IssueDetailStore implements IIssueDetailStore {
|
|||
[issueId]: this.issue_comments[issueId].filter((comment: any) => comment.id != commentId),
|
||||
};
|
||||
|
||||
await this.issueCommentService.deleteIssueComment(workspaceSlug, projectId, issueId, commentId, undefined);
|
||||
await this.issueCommentService.deleteIssueComment(workspaceSlug, projectId, issueId, commentId);
|
||||
|
||||
runInAction(() => {
|
||||
this.issue_comments = _issueComments;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue