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

UIU-3025 - Create new permission 'Users: Can view, edit, and delete profile pictures' #2619

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

Terala-Priyanka
Copy link
Contributor

@Terala-Priyanka Terala-Priyanka commented Jan 29, 2024

Purpose

UIU-3025 - Add "Users: Can view, edit, and delete profile pictures" permission

Approach

TODOS and Open Questions

Learning

Pre-Merge Checklist

Before merging this PR, please go through the following list and take appropriate actions.

  • I've added appropriate record to the CHANGELOG.md
  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
    • There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

  • What other modules will these changes impact?
  • Do JIRAs exist to update the impacted modules?
    • If not, please create them
    • Do they contain the appropriate level of detail? Which endpoints/schemas changed, etc.
    • Do they have all they appropriate links to blocked/related issues?
  • Are the JIRAs under active development?
    • If not, contact the project's PO and make sure they're aware of the urgency.
  • Do PRs exist for these changes?
    • If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.

While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

@Terala-Priyanka Terala-Priyanka requested a review from a team January 29, 2024 11:03
Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

Please follow the naming conventions: "The naming scheme is a faceted dot-separated string, with the delimited terms as hyphen-separated words."

It would be great to fix the other profilepictures permission that was created incorrectly in PR #2609 before it becomes further entrenched. Please, sing about these conventions far and wide. Tell your friends. Tell your enemies. Tell everybody! Some of our APIs are complicated for good reasons and that's fine, but the self-inflicted wound of failing to follow our own conventions hurts double.

package.json Outdated
"displayName": "Users: Can view, edit, and delete profile pictures",
"description": "Also includes basic permissions to edit user profile",
"subPermissions": [
"ui-users.profilepictures.view",
Copy link
Member

Choose a reason for hiding this comment

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

Use profile-picture in place of profilepicture. Petty, sorry; developers are so cranky about names 😅 Be consistent with the name already established in the back-end permissions. Alas, consistency on single vs plural is a battle I lost years ago. Curse DHH and his awful Rails ORM naming conventions, the worst decision he ever made.

@Terala-Priyanka Terala-Priyanka requested review from zburke and a team January 29, 2024 13:28
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@Terala-Priyanka Terala-Priyanka requested a review from a team January 29, 2024 13:39
@Terala-Priyanka Terala-Priyanka merged commit 049764c into master Jan 30, 2024
5 checks passed
@Terala-Priyanka Terala-Priyanka deleted the UIU-3025 branch January 30, 2024 02:32
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.

3 participants