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

MiqReport: add skip_references attribute back #20109

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Apr 28, 2020

Fixes a bug where serialized reports were reporting an error.

skip_references won't do anything, since the functionality has been
removed.

But this attribute is available so customer reports that have that
option don't blow up.

Fixes #20106

Steps for Testing/QA

create a report with

db_options:
  skip_references: true

It should break before this change
It should work after this change

Fixes a bug where serialized reports were reporting an error:

```
Error caught: [ActiveModel::UnknownAttributeError] unknown attribute 'skip_references' for MiqReport.
```

`skip_references` is no longer applicable.
But some serialized reports may still reference it.
This attribute has been added back in to avoid any issues.

Fixes ManageIQ#20106
Copy link
Member

@NickLaMuro NickLaMuro left a comment

Choose a reason for hiding this comment

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

Two things, but I think this change is fine:

Steps for Testing/QA

create a report with

db_options:
  skip_references

Should that be skip_references: true instead, so it is valid yaml?

Also, do we eventually want to add deprecation warnings around these attributes? Mostly just curious if we want to support these infinitely into the future or eventually drop them.


Anyway, I am good with the change. I like that it is really simple while keeping the code deletion of the previous effort. 👍

@jrafanie
Copy link
Member

Tested this 👍

@kbrock kbrock deleted the report_skip_references branch April 28, 2020 20:15
simaishi pushed a commit that referenced this pull request Apr 28, 2020
MiqReport: add skip_references attribute back
(cherry picked from commit 0f49e31)
@simaishi
Copy link
Contributor

Jansa backport details:

$ git log -1
commit 8697f6158c19cbffda97e2cba2315d311e8e4c9e
Author: Gregg Tanzillo <[email protected]>
Date:   Tue Apr 28 13:37:42 2020 -0400

    Merge pull request #20109 from kbrock/report_skip_references

    MiqReport: add skip_references attribute back
    (cherry picked from commit 0f49e31dfcf9ed507a7c9e584aaa9f5167531323)

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.

[JANSA] [ActiveModel::UnknownAttributeError] unknown attribute 'skip_references' for MiqReport.
6 participants