-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Problem
Much of the GitHub syncing can be reorganized as follows:
-
CommentSyncerandTaskSyncerneed to move out ofEvent; structure could be like:sync/issue/issue.exSync.Issue(main entry point for handling the syncing of an issue)sync/issue/body_parser.exSync.Issue.BodyParser(parses issue body)sync/issue/task/task.exSync.Issue.Task(syncs the issue to aTask)sync/issue/task/changeset.exSync.Issue.Task.Changeset(deals with changesets)sync/issue/github_issue/github_issue.exSync.Issue.GithubIssue(syncs the issue to aGithubIssue)- etc.
-
ChangesetBuilders- need to move out event to wherever syncing goes
-
mapcan be removed - naming needs to be rethought to reflect that these are changesets for Code Corps models (
Task,Comment, etc)
-
GithubRepoinstallation events need to havecommon/repo_finder(renamed torepo_linker) -
CommentDeleterneeds to move out ofEvent -
CommentDeleterneeds to deleteGithubComment -
ChangesetBuilders needcreate_andupdate_functions made public,build_fns removed, unit tests added - Replace instances of
find_or_initandcommitwith insert_or_update and find