| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Needs unit tests still. see python-gitlab#56
|
Attaching files to issues and issue notes seems to be working well though, now I'm trying to figure out the best way to do unit tests for this. |
Sorry, something went wrong.
|
Cool addition 👍 I need a bit more time to test/digest the code. If you spend time on this I'd rather have functional tests to get examples of how to use the code (tools/python_test.py). Thanks you! |
Sorry, something went wrong.
|
Totally! Wanted to push up the raw features while I figured out the unit
tests. I'll see if I can add some today.
…On Mar 21, 2017 01:28, "Gauvain Pocentek" ***@***.***> wrote:
Cool addition 👍
I need a bit more time to test/digest the code. If you spend time on this
I'd rather have functional tests to get examples of how to use the code (
tools/python_test.py).
Thanks you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#239 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2rYs5hReef3tsgX-9vCvgvgGTgb0n3ks5rn24PgaJpZM4Mg6t5>
.
|
Sorry, something went wrong.
|
Any updates on this? |
Sorry, something went wrong.
|
@aruiz Sorry but I didn't have enough time to properly review and test this patch. Hopefully things will get better soon. |
Sorry, something went wrong.
|
Is there anything else we need to do on this? Finally getting back to it |
Sorry, something went wrong.
|
Hi @d0c-s4vage, sorry for not answering sooner. I didn't take time to test an upload yet, but the code itself seems OK to me. I'm not sure that python-gitlab should be responsible of adding the markdown in the issues/notes description. User will probably want to handle that part themselves (at the beginning, at the end, new note or existing one, ...). The Mixin class is probably not needed If you have time to implement this for v4 it would be great, but I can take care of it if you don't. Thanks for adding this feature! |
Sorry, something went wrong.
|
@gpocentek ah, great point on that. It's been a while since I've looked at my changes... I'll make the file upload/attachment a stand-alone feature that can return/generate markdown for the user. |
Sorry, something went wrong.
|
well crap, that rebase didn't work out how I thought it would. SHould've merged instead of rebased. |
Sorry, something went wrong.
|
Feature branch is now up-to-date with latest from python-gitlab/python-gitlab |
Sorry, something went wrong.
see python-gitlab#56 * file uploads are not directly associated with issues/notes * should work with v3 and v4 apis * CLIs seem to be working
|
@gpocentek pending review/comments, I think this is done |
Sorry, something went wrong.
|
Thanks for the update! I really appreciate the docs and tests! :) It looks pretty good to me, I'm just wondering if the InformationalObject class is really useful. Making the upload() method return a simple dict (the Gitlab server data) seems good and simple enough to me. Maybe there's a useful goal I didn't catch there, but I believe in simple things ;) |
Sorry, something went wrong.
|
Hrmm, good point. I made the InformationalObject and the ProjectUpload classes so that the v4 cli result printing code would work with fewer changes. It would have been simpler to add a new case to print a dict I guess. I'll use that, remove the InformationalObject and ProjectUpload classes, and just return a dict from the upload() method. Also, I don't know why the build is failing on python2.7 cli_func_v4. I'll take another look and see if my code interfered with branch creation somehow: |
Sorry, something went wrong.
|
@gpocentek w00t! all tests are passing, I think this is good to go now. |
Sorry, something went wrong.
|
Thank for your patience and the quality of this patch! |
Sorry, something went wrong.
|
Awesome! We're glad to contribute - we use python-gitlab pretty heavily |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Needs unit tests still. see #56