-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
API v3: added support for tags in API #9513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@humitos And, can you also please explain the failed checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think this PR is good. Before merging it, I think there are some things that would be good to include on it:
- Update the API documentation including the
tags
fields where required - Add or update test cases to match these changes
- Return the
tags
for the project on get/listing endpoints in case they are not already returning them (probably need to use theTaggitSerializerField
there as well) - Remove new fields added that are not related to tags (eg.
default_
*) - Run the pre-commit linter on this PR to blackify the code
Again, thanks for your contribution and hoping to move this PR forward 💪🏼
@humitos When I do $ cd docs
$ make livehtml it gives an error:
What am I doing wrong here? |
@SyedMa3 It seems that you don't have the virtualenv enabled and that's why it does not find the |
The PR looks good! The only thing that seems missing to me is to update/add a test case for the feature you are adding here. Would you like to take a look at that? |
My bad! I am new to "testing". But i'll look into it and do it. |
@humitos |
@SyedMa3 can you use there the same queryset returned by the serializer? I'd assume they are using I took a look at the code and it seems it supports an |
ping @SyedMa3 - are you still available for this PR? It seems a lot of good work has gone in to it and it's really close! |
Hi @benjaoming , sorry I had uni exams, so I was focusing on that and forgot about this. I will restart working on this. Thanks for the reminder! |
@SyedMa3 hope they went well! welcome back :) |
@humitos @benjaoming I have made changes, and the tests have passed. Can you look into it and ping me if there should be any changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that test cases were added and everything is looking great 👍
I have just a question about the example in the documentation. Maybe it would be nice to clarify somewhere what it means to add the tags
field, and if omitting it will delete all tags or just not update them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the reviews. This looks good 👍
@humitos @benjaoming Thank you for your guidance. I am just getting started in open source contribution and this helped me a lot. |
@SyedMa3 what a great start!! Really appreciate that you took the time to get around all the angles with respect to testing and documentation updates 👍 |
Details
Closes issue #7354
Changes
Added support for tags to use in API.
Added
'default_version', 'default_branch'
fields inProjectCreateSerializerBase
for user's convenience.📚 Documentation previews 📚
docs
): https://docs--9513.org.readthedocs.build/en/9513/dev
): https://dev--9513.org.readthedocs.build/en/9513/