-
Notifications
You must be signed in to change notification settings - Fork 898
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
add full reference to CIDR_OR_ID_MATCHER #13597
Conversation
Checked commit jntullo@90406ba with ruby 2.2.6, rubocop 0.46.0, and haml-lint 0.19.0 |
Can you add one test in this PR that exercises the fix ? Thanks. |
@jntullo I'm curious if the other places that reference this constant in the API are broken? Also, did you find out where/why this regressed? |
CIDR_OR_ID_MATCHER is also present in CompressedIds. The compressedIds seem to be still included in the same final class. Perhaps it is now included in different order than it used to? |
@imtayadeway Has the PR for the move away from ApplicationRecord been merged yet? If so, could that be responsible? |
@Fryguy it hasn't....probably need to go over that carefully before that gets merged. I suspect this is either a) ordering of includes in |
@imtayadeway investigating now 😄 |
@imtayadeway I believe it has to do with the reordering, and I am worried that some things don't have coverage (going to work on that). When |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jntullo could you add a failing test for this, and also incorporate the changes to the order of includes as discussed above? Thanks!
EDIT: I believe there are several places where we are unnecessarily including that module into different parts of the API controller because of reasons above. I believe they could also be removed as part of this PR.
@imtayadeway can do, but was also waiting for feedback on #13581 where I have refactored this line out. |
Closing in preference of merged #13671 |
This pull request is not mergeable. Please rebase and repush. |
Without the full reference to
CIDR_OR_ID_MATCHER
, tagging API is returninguninitialized constant Api::Subcollections::Tags::CID_OR_ID_MATCHER
errors (as was referenced in #13581).cc: @imtayadeway
@miq-bot add_label bug, api
@miq-bot assign @abellotti