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

Move error handling to the proper method #1235

Merged
merged 8 commits into from
Nov 7, 2024

Conversation

jesusbv
Copy link
Collaborator

@jesusbv jesusbv commented Oct 3, 2024

Description

The method that gets the activations from SCC by making a request,
should be responsible to handle if the request failed

Use Rails.logger instead of carrying logger all over the methods

How to test

Activate a product on SCC,should work as expected

Change Type

Please select the correct option.

  • Bug Fix (a non-breaking change which fixes an issue)
  • New Feature (a non-breaking change which adds new functionality)
  • Documentation Update (a change which only updates documentation)

Checklist

Please check off each item if the requirement is met.

  • I have reviewed my own code and believe that it's ready for an external review.
  • I have provided comments for any hard-to-understand code.
  • I have documented the MANUAL.md file with any changes to the user experience.
  • If my changes are non-trivial, I have added a changelog entry to notify users at package/obs/rmt-server.changes.

Review

Please check out our review guidelines
and get in touch with the author to get a shared understanding of the change.

The method that gets the activations from SCC by making a request,
should be responsible to handle if the request failed

Use Rails.logger instead of carrying logger all over the methods
@jesusbv jesusbv self-assigned this Oct 3, 2024
Copy link
Member

@bear454 bear454 left a comment

Choose a reason for hiding this comment

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

It's impressive how much you were able to refactor with such a minor change to the test suite. Keep up the good work 👍

jesusbv and others added 3 commits November 5, 2024 18:16
Instead of passing system attributes, send system itself
and use its attributes inside
@jesusbv jesusbv merged commit 88c81c2 into master Nov 7, 2024
3 checks passed
@jesusbv jesusbv deleted the sccproxy-activations-error-handling branch November 7, 2024 09:49
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.

4 participants