Skip to content
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

fix(4687): rest status codes #4706

Closed
wants to merge 2 commits into from

Conversation

p1729
Copy link

@p1729 p1729 commented Oct 7, 2022

Description

[Describe what this change achieves]

Issues Resolved

#4687

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: p1729 <pankajkumar1729@gmail.com>
Signed-off-by: p1729 <pankajkumar1729@gmail.com>
@p1729
Copy link
Author

p1729 commented Oct 7, 2022

@Bukhtawar I have opened this PR to get your early feedback on the expected solution. I will be adding tests as well if needed soon.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2022

Gradle Check (Jenkins) Run Completed with:

@dbwiddis dbwiddis added the hacktoberfest Global event that encourages people to contribute to open-source. label Oct 7, 2022
@p1729 p1729 marked this pull request as ready for review October 11, 2022 12:25
@p1729 p1729 requested review from a team and reta as code owners October 11, 2022 12:25
@Override
public RestStatus status() {
String causeDescription = unwrapCause().getMessage();
if (causeDescription != null && causeDescription.contains("not found")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't very reliable.

Start by writing a unit test that reproduces the problem, then we can talk about how to fix it best.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, I will try to write an integration/sociable test.

@minalsha
Copy link
Contributor

@p1729 could you please share status of the progress here for this PR. PLease let us know if you need any help. Thanks

@dreamer-89
Copy link
Member

@p1729: Are you still working on this PR ?

@DarshitChanpura
Copy link
Member

@p1729 Closing this PR as it hasn't been worked on in a while. Please let us know if you are still working on it and we'll re-open the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Global event that encourages people to contribute to open-source.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants