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

Remove organization from superuser edit/index of users #4453

Merged
merged 13 commits into from
Jan 16, 2025

Conversation

cancelei
Copy link
Contributor

… admin users list view

Resolves #4296

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

How Has This Been Tested?

Screenshots

app/views/admin/users/_list.html.erb Outdated Show resolved Hide resolved
<%= f.input :organization_id, label: "Organization", wrapper: :input_group, required: true, autofocus: true do %>
<span class="input-group-text"><%= fa_icon "building" %></span>
<%= f.input_field :organization_id, collection: @organizations, class: "form-control" %>
<% end %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ticket suggested not making changes to New, just Edit.

Copy link
Collaborator

@cielf cielf Jun 17, 2024

Choose a reason for hiding this comment

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

This is true. I'm trying to find the issue that past CL failed to link to in this issue. (i.e. why it is a separate thing) (it's still in our backlog, but part of a larger being able to add more types of users -- including superadmins).

New doesn't currently have the role and resource part of the form -- removing the organization without other changes will simply break it.

@dorner
Copy link
Collaborator

dorner commented Aug 16, 2024

@cancelei are you still planning to finish this up?

@coalest
Copy link
Collaborator

coalest commented Jan 9, 2025

@dorner Since this PR has been kind of abandoned, I went ahead and tried to wrap it up. It's now ready for review.

@coalest coalest changed the title Update user table by removing org information Remove organization from superuser edit/index of users Jan 9, 2025
@coalest coalest requested a review from dorner January 9, 2025 10:25
cielf
cielf previously requested changes Jan 9, 2025
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.

One small functional issue -- I'd like to see the "Banks and Partners" list the distinct resources, instead of once per role. Any org admin is ending up getting listed twice, because they have both the user and admin role.

@cielf
Copy link
Collaborator

cielf commented Jan 13, 2025

This looks good to me functionally. I have added making the new users add a role instead of the organization to the project's copious inbox.

@cielf cielf dismissed their stale review January 13, 2025 18:14

Addressed

@cielf
Copy link
Collaborator

cielf commented Jan 13, 2025

@dorner Can you take a final look at this?

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 good!

@dorner dorner merged commit 95da0b3 into rubyforgood:main Jan 16, 2025
11 checks passed
Copy link
Contributor

@cancelei: Your PR Remove organization from superuser edit/index of users is part of today's Human Essentials production release: 2025.01.19.
Thank you very much for your contribution!

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

Successfully merging this pull request may close these issues.

Remove organization from superuser edit/index of users
4 participants