Open
Description
Problem
Much of the GitHub syncing can be reorganized as follows:
-
CommentSyncer
andTaskSyncer
need to move out ofEvent
; structure could be like:sync/issue/issue.ex
Sync.Issue
(main entry point for handling the syncing of an issue)sync/issue/body_parser.ex
Sync.Issue.BodyParser
(parses issue body)sync/issue/task/task.ex
Sync.Issue.Task
(syncs the issue to aTask
)sync/issue/task/changeset.ex
Sync.Issue.Task.Changeset
(deals with changesets)sync/issue/github_issue/github_issue.ex
Sync.Issue.GithubIssue
(syncs the issue to aGithubIssue
)- etc.
-
ChangesetBuilder
s- need to move out event to wherever syncing goes
-
map
can be removed - naming needs to be rethought to reflect that these are changesets for Code Corps models (
Task
,Comment
, etc)
-
GithubRepo
installation events need to havecommon/repo_finder
(renamed torepo_linker
) -
CommentDeleter
needs to move out ofEvent
-
CommentDeleter
needs to deleteGithubComment
-
ChangesetBuilder
s needcreate_
andupdate_
functions made public,build_
fns removed, unit tests added - Replace instances of
find_or_init
andcommit
with insert_or_update and find