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

Validate presence of feed on middleware servers #15390

Merged
merged 1 commit into from
Jun 16, 2017
Merged

Validate presence of feed on middleware servers #15390

merged 1 commit into from
Jun 16, 2017

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jun 16, 2017

Hawkular's MiddlewareServer relies on feed not being nil => adding a validates_presence to be sure.

And fixing the factory to always create a feed - to remove the need to always provide feed when mocking to prevent errors from CGI.unescape.

(This recently caused ui-classic spec failures, fixed temporarily in ManageIQ/manageiq-ui-classic#1540 by adding that feed everywhere, but since according to @israel-hdez (in https://github.com/ManageIQ/manageiq-providers-hawkular/pull/20/files#r121929594), a feed is always there, seems that this is the right place to fix.)

@israel-hdez WDYT?

@miq-bot
Copy link
Member

miq-bot commented Jun 16, 2017

@himdel Cannot apply the following label because they are not recognized: providers/middleware

@himdel
Copy link
Contributor Author

himdel commented Jun 16, 2017

@miq-bot add_label providers/hawkular

Hawkular's MiddlewareServer relies on feed not being nil.
Adding a `validates_presence` to be sure.

And fixing the factory to always create a feed - to remove the need to always provide `feed` when mocking to prevent errors from `CGI.unescape`.
@miq-bot
Copy link
Member

miq-bot commented Jun 16, 2017

Checked commit https://github.com/himdel/manageiq/commit/cd9b52558de201a0dfca36d283b1b76d4e0eb128 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@israel-hdez israel-hdez left a comment

Choose a reason for hiding this comment

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

It looks good. This ensures there will be data in the field 👍

@chessbyte chessbyte self-assigned this Jun 16, 2017
@chessbyte chessbyte merged commit 5edac55 into ManageIQ:master Jun 16, 2017
@chessbyte chessbyte added this to the Sprint 63 Ending Jun 19, 2017 milestone Jun 16, 2017
@himdel himdel deleted the middleware-feed branch June 17, 2017 21:50
@himdel
Copy link
Contributor Author

himdel commented Jun 19, 2017

@miq-bot add_label enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants