Monorepo for Tangled tangled.org

appview/notify: notify users mentioned in issues #738

merged opened by boltless.me targeting master from feat/mentions
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4jbido5pi22
+5 -4
Interdiff #2 #3
appview/indexer/notifier.go

This file has not been changed.

appview/issues/issues.go

This file has not been changed.

appview/notify/db/db.go

This file has not been changed.

appview/notify/merged_notifier.go

This file has not been changed.

+5 -4
appview/notify/notifier.go
··· 42 42 func (m *BaseNotifier) NewStar(ctx context.Context, star *models.Star) {} 43 43 func (m *BaseNotifier) DeleteStar(ctx context.Context, star *models.Star) {} 44 44 45 - func (m *BaseNotifier) NewIssue(ctx context.Context, issue *models.Issue, mentions []syntax.DID) {} 46 - func (m *BaseNotifier) NewIssueComment(ctx context.Context, comment *models.IssueComment, mentions []syntax.DID) {} 47 - func (m *BaseNotifier) NewIssueState(ctx context.Context, actor syntax.DID, issue *models.Issue) {} 48 - func (m *BaseNotifier) DeleteIssue(ctx context.Context, issue *models.Issue) {} 45 + func (m *BaseNotifier) NewIssue(ctx context.Context, issue *models.Issue, mentions []syntax.DID) {} 46 + func (m *BaseNotifier) NewIssueComment(ctx context.Context, comment *models.IssueComment, mentions []syntax.DID) { 47 + } 48 + func (m *BaseNotifier) NewIssueState(ctx context.Context, actor syntax.DID, issue *models.Issue) {} 49 + func (m *BaseNotifier) DeleteIssue(ctx context.Context, issue *models.Issue) {} 49 50 50 51 func (m *BaseNotifier) NewFollow(ctx context.Context, follow *models.Follow) {} 51 52 func (m *BaseNotifier) DeleteFollow(ctx context.Context, follow *models.Follow) {}
appview/notify/posthog/notifier.go

This file has not been changed.

History

14 rounds 2 comments
sign up or login to add to the discussion
1 commit
expand
appview/notify: notify users mentioned in issues
2/3 failed, 1/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview/notify: notify users mentioned in issues
2/3 failed, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
2/3 failed, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 failed
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
1/3 failed, 1/3 timeout, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned in issues
1/3 failed, 2/3 timeout
expand
expand 2 comments

the way i'd want to see this implemented is like so:

  • the handle mentions are rewritten by the appview to point to a DID (this way mentions continue to work across handle changes). this can happen when creating a new issue or a new comment. note that when editing a text field, this needs to be retranslated from DID back to handle. we do something similar in labels that accept DIDs for example
  • next, we can introduce models.IssueComment.Mentions to get a list of DIDs mentioned in the text of a comment, and notify them accordingly, upon creation.

I've considered it, but decided to go without did transitions for now. We can merge this as a temporary solution and introduce did-hardening later.

Also not sure, how would that look like in markdown. you mean like this: @did:plc:someone?

1 commit
expand
appview/notify: notify users mentioned in issues
1/3 failed, 2/3 timeout
expand
expand 0 comments