Added comment syncing with github during create and update#925
Conversation
0cf146d to
0261a04
Compare
d17f2a7 to
20cd868
Compare
|
Are these merge conflicts due to needing a rebase or what? I know I need to review #805 first. |
|
@joshsmith I'm not seeing any merge conflicts here. Did you fix them? EIther way, no point in reviewing this until we agree #805 is good to merge, since any changes to the process there will likely have to be applied to the process here as well. |
d138594 to
8e9e980
Compare
20cd868 to
137f580
Compare
0b0ec6d to
f494d39
Compare
137f580 to
c4ab799
Compare
f494d39 to
d13b138
Compare
|
There are conflicts again. |
8db93a3 to
ce0c874
Compare
Integration of Tasks with GitHub issues
1dc7a6b to
cd33f9d
Compare
joshsmith
left a comment
There was a problem hiding this comment.
When the comment is created from Code Corps but done by the code-corps-local[bot] account, then when the webhook comes back the comment gets overwritten with that (bot) user, overwriting entirely the original user on Code Corps who created it.
There's some work to do here to resolve this.
|
Also, while I don't have time right this moment to write a failing test, posting a comment gets a |
|
Unrelated – but it's only started happening here – when I run |
|
@joshsmith Regarding id's to integers, I should have written about this, but simply put, I forgot, so it's a mistake on my part. Sorry. I encountered this about two weeks back. The phoenix API does not convert numbers in received request bodies into integers. However, elixir does not auto-cast strings to integers in any way, so comparison in those cases is troublesome. The problem with that is that ember's json api adapter, casts all ids to strings, because, while our ids are all integers, some apis might have uuids, slugs, etc, for ids, so that's the safest approach from ember's POV. Even for us That's why I concluded that the better place to handle the conversion is in the API, even though it may make sense to do it in our ember app's serializers to. As you can see, the issue has been identified and resolved in the task pr, but I didn't get a chance to propagate it to this comment PR yet. All that being said, even though there are arguments for implementing the fix for the issue this way, through the plug, I'm still not completely sure this is the best approach, so I'm open for discussion and suggestions. |
Fix dependencies sort in mix.exs
Switch OrganizationGithubAppInstallationController away from ja_resource and canary Closes #893
Switch OrganizationGithubAppInstallation away from ja_resource and canary
238a5a6 to
4aca24b
Compare
Removed test_watch as a dependency
… sends This reveals a bug in the comment controller, which is now fixed.
…se-string-ids-as-ember Rewrote api helpers to use string ids, which is what our ember client sends
…refactors - if task params containg a "github_repo_id", an issue is created on github alongside task and task is associated with issue - refactors: - removed reliance on ja_resource and canary from task controller - extracted task creation into separate module - extracted task-related queries into separate module - removed some unused code - moved some code around to follow boundex context convention - fixed several dialyzer warnings
4aca24b to
98238be
Compare
|
@begedin I decided to merge this now so we can circle back to the user issues as a separate PR. |
Closes #801, #802
This PR implements github syncing of comments during the
:updateand:createactions.It uses #805 as a template, so the implementation is similar.
#805 should be merged and this rebased before it's reviewed, since this PR builds on top of that one. The base of this PR should be changed to develop once #805 is merged.