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

4655: [BUG] If you have an error on entering a partner group, the Item Categories changes to a yes/no! Obviously wrong! #4668

Conversation

victorhwmn
Copy link
Contributor

@victorhwmn victorhwmn commented Sep 26, 2024

Resolves #4655

Description

In partner_groups_controller.rb I created a method set_items_categories to set the value of @item_categories and added it to the create and update methods where it was missing.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Follow the same steps from the issue

Sign in as [email protected]
Left hand menu: Partner Agencies | All Partners.
Choose the "Groups" tab
Note the name of the existing group. (if there isn't one, create one first.)
Click "New Partner Group"
Enter the same name as the existing group
Click "Add Partner Group"

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"

@victorhwmn victorhwmn marked this pull request as ready for review September 26, 2024 22:46
@cielf
Copy link
Collaborator

cielf commented Sep 28, 2024

@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.

Copy link
Collaborator

@dorner dorner left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

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

assigns

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed here fffd3e4

@cielf cielf self-requested a review September 30, 2024 14:40
Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

Functionality LGTM.

@dorner
Copy link
Collaborator

dorner commented Oct 6, 2024

All good here!

@dorner dorner merged commit 3c9aa71 into rubyforgood:main Oct 6, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants