Treat action code as attachments for created/updated actions#3286
Conversation
|
@dubeejw can we close this PR? You can setup travis on your own repository if you want to have full travis coverage. |
8be9ae8 to
94b4684
Compare
94b4684 to
47d5657
Compare
|
@rabbah, @markusthoemmes, a cache concurrency test fails on this one. I have figured out the failure is due the need of two DB writes for saving attachments. Where the first write is for the DB document and the second write is for the DB document attachment. When only caching Java actions as done in #2855 and implementing the same concurrency test for Java actions, the test will fail as well. Failure output shown here. The test fails because Any suggestions? I did some hacking to only do a |
|
I suppose another option would be to change the test to accept a 200 or 404 from the |
Codecov Report
@@ Coverage Diff @@
## master #3286 +/- ##
==========================================
- Coverage 74.59% 74.45% -0.14%
==========================================
Files 126 126
Lines 5982 5961 -21
Branches 397 384 -13
==========================================
- Hits 4462 4438 -24
- Misses 1520 1523 +3
Continue to review full report at Codecov.
|
3407e26 to
94b72b2
Compare
|
Closing #2847 in favor of this PR as it was easier to rebase with the merged caching changes. |
9c14a00 to
faccc80
Compare
faccc80 to
b415146
Compare
|
@chetanmeh, do you think these changes will be useful in the future? |
|
@dubee Do you plan to work on this otherwise I can look into it. Given recent changes in master the For attachment type I am not sure - For e.g. if its a simple code snippet then type can be Further with inlining support now we can always store the code for all kinds as attachments by design and let Any such change should be done in a backward compatible way to ensure existing actions work as expected |
|
@dubee Ping |
|
@dubee any news on this one? |
|
PR #3945 supersedes this one |
Supersedes #2847.