Skip to content

fix(api):ensure actioncontroller returns actual error status to client[#94]#97

Merged
youngtaekiim merged 2 commits intoeclipse-pullpiri:refactoringfrom
akshaylg0314:refactoring
Jun 10, 2025
Merged

fix(api):ensure actioncontroller returns actual error status to client[#94]#97
youngtaekiim merged 2 commits intoeclipse-pullpiri:refactoringfrom
akshaylg0314:refactoring

Conversation

@akshaylg0314
Copy link
Contributor

@akshaylg0314 akshaylg0314 commented Jun 10, 2025

📝 PR Description
Ensure ActionController returns the actual error status to the client
Previously, the gRPC server in actioncontroller always returned a success (OK) status, even when internal errors occurred. This prevented FilterGateway from detecting and handling errors correctly. This fix ensures proper error propagation and accurate status reporting to the client.

🔗 Related Issue
Closes #94

🧪 Test Method
sudo cargo test -- passes all unit test cases for filtergateway

📸 Screenshots
image

✅ Checklist
[✅] Code conventions are followed
[✅] Tests are added/modified
[X] Documentation is updated (if necessary)

…#94]

Previously, the gRPC server in actioncontroller always returned a success (OK) status, even when internal errors occurred.
This prevented filtergateway from detecting and handling errors correctly.
This fix ensures proper error propagation and accurate status reporting to the client.
@akshaylg0314
Copy link
Contributor Author

Hi @youngtaekiim @leeeunkoo
Please review the code at your convenience. Let me know if any changes are needed. Once approved, you can just merge the PR. Thanks!

@youngtaekiim
Copy link
Contributor

good error handling for debugging.
I leave a very small comment.
Please leave your opinion.

@akshaylg0314
Copy link
Contributor Author

akshaylg0314 commented Jun 10, 2025

good error handling for debugging. I leave a very small comment. Please leave your opinion.

Hi @youngtaekiim, I've started working on refining the gRPC sender/receiver error handling across other modules. I'll provide updates incrementally, and I've already created an issue for the ActionController to track progress."#98

And please merge this PR if it's fine.

@youngtaekiim youngtaekiim merged commit 3dc7bc5 into eclipse-pullpiri:refactoring Jun 10, 2025
1 check passed
chaehee-lim pushed a commit to chaehee-lim/pullpiri that referenced this pull request Sep 3, 2025
fix(api):ensure actioncontroller returns actual error status to client[eclipse-pullpiri#94]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants