LinkinStars commented on issue #888:
URL: 
https://github.com/apache/incubator-answer/issues/888#issuecomment-2076192425

   > Hello I would like to take a crack at this bug. @LinkinStars what would be 
the ideal behaviour in this case?
   
   @prithvidasgupta Good. Let me describe the problem indetail.
   
   In `/tag` POST API service, the one used to add a tag, you can see that 
there is formatting for the tag's `slug_name`. 
https://github.com/apache/incubator-answer/blob/8670e332345136422a580d661d7ee47a67f284cb/internal/service/tag_common/tag_common.go#L324-L325
   
   In `/tag` PUT API service, the one used to update the tag, you can see that 
there is no formatting. 
https://github.com/apache/incubator-answer/blob/8670e332345136422a580d661d7ee47a67f284cb/internal/service/tag_common/tag_common.go#L822
   
   So, just add the same formatting code to the PUT API service.
   
   BTW, the `SlugName` should be `slugName`. You can fix the typo at the same 
time.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to