-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
4655: [BUG] If you have an error on entering a partner group, the Item Categories changes to a yes/no! Obviously wrong! #4668
Conversation
… edit params are invalid
@victorhwmn FYI: We had an urgent fix that required all the senior contributors this week , so we didn't get to look at this. Hopefully this week will go better. |
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.
Looks great! One typo comment, and off to @cielf for manual testing. :)
describe "GET #new" do | ||
subject { get new_partner_group_path } | ||
|
||
it "renders the new template and assings variables correctly" do |
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.
assigns
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.
fixed here fffd3e4
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.
Functionality LGTM.
All good here! |
@victorhwmn: Your PR |
Resolves #4655
Description
In
partner_groups_controller.rb
I created a methodset_items_categories
to set the value of@item_categories
and added it to thecreate
andupdate
methods where it was missing.Type of change
How Has This Been Tested?
Follow the same steps from the issue
Now it should show all the available category items correctly
To test the
update
method you can start from the step: 'Choose the "Groups" tab' and then:Create two partner groups (if there are already at least two, you can skip this part)
Click "Edit" on one of them
Enter the same name as the other group
Click "Update Partner Group"