andygrunwald / andygrunwald/go-jira

Add WarningMessages to query response to be able to manage warnings

Đang mở
#368 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
needs triage
Ngôn ngữ chính
Go
Star
1.6k
Fork
500
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Is your feature request related to a problem? Please describe.
No, it is not a problem.

## Describe the solution you'd like
When using Issue.Search(...) I have noticed that the optional field "WarningMessages" is not implemented in the response struct
struct:
![image](https://user-images.githubusercontent.com/10448961/112126909-32153180-8bc5-11eb-92b2-01e79c313b76.png)
real response (when something is wrong):
![image](https://user-images.githubusercontent.com/10448961/112126938-3a6d6c80-8bc5-11eb-97f3-b6c10de7a3f5.png)

The drawback is that you are unable to detect these warnings since most of times the HTTP response is 200 even if one of the fields from the query is a wrong value (i.e. user not exists)

## Describe alternatives you've considered
I think there are no alternatives.

## Additional context
No additional context

@andygrunwald @benjivesterby what do you think? do you want me to implement it?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.