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

4682 sort partners alphabetical #4963

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tatheerf02
Copy link
Contributor

Resolves #4682
Resolves #4674

Builds on top of #4703

Description

The super admin partners view is now in alphabetical order.
If you have an error on new item, the category list for selection will not disappear anymore.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I reopened the super admin page after implementing my changes and the partners are now in alphabetical order.
I tried to reproduce the bug after implement my bug fix and I was unable to do so (categories will show up now despite an error).
Everything else still works as expected.

Screenshots

373288750-687c5cac-c2f4-492f-9bbb-e93d8e6953cd

@tatheerf02 tatheerf02 force-pushed the 4682-sort-partners-alphabetical branch from 3697912 to 4ee29c0 Compare February 1, 2025 02:37
@cielf cielf requested review from cielf and dorner February 1, 2025 15:30
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.

Works well functionally. Over to @dorner for another technical pass.

@@ -0,0 +1,48 @@
RSpec.describe Admin::PartnersController, type: :controller do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you use a request test instead of a controller test? We really should be moving over the existing ones.

@dorner
Copy link
Collaborator

dorner commented Feb 2, 2025

@cielf did you validate both fixes? This PR fixes two issues.

@cielf
Copy link
Collaborator

cielf commented Feb 2, 2025

Yes, I did.

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