Skip to content

Conversation

@jscyo
Copy link
Contributor

@jscyo jscyo commented Apr 19, 2022

Summary of change

Updating the createNewRoleOrDoNothingIfExists_Transaction to return a boolean so we know if any rows are updated when creating a role or adding a role to a user. This change is due to the discussion mentioned

Related issues

Checklist for important updates

  • [ ] Changelog has been updated
  • [ ] Changes to the version if needed
    • In build.gradle
  • Had installed and ran the pre-commit hook
  • [ ] Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.

Remaining TODOs for this PR

  • none

@jscyo jscyo self-assigned this Apr 19, 2022
Comment on lines 27 to 28
// associate a userId with a role that exist
boolean addRoleToUser(String userId, String role)
Copy link
Contributor

Choose a reason for hiding this comment

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

undo this change

@rishabhpoddar rishabhpoddar merged commit 50ac578 into user-roles Apr 20, 2022
@rishabhpoddar rishabhpoddar deleted the api-spec-revisions branch April 20, 2022 06:53
rishabhpoddar pushed a commit that referenced this pull request May 6, 2022
* adds recipe interface

* feat(userroles): fixs comments

* feat(userroles): fixs

* feat(userroles): fixs comment

* adds feedback

* fixs

* fixs

* removes version changes

* removes unnecessary function

* feedback changes

* fixs function signiture

* implements feedback

* updates deleteRole return type

* removes duplicateRoleException

* renames createNewRole_Transaction, removes DuplicateRolePermissionMapping

* removes DuplicateRolePermissionMappingException

* renames addPermissionToRole function (#35)

* fix: updates function signitures (#36)

* fix: updates addRoleToUser and createNewRoleOrDoNothingIfExists_Transaction function signitures

* changes to boolean

* undos change

* fixs typo

* updates build.gradle (#37)

* chore: updates changelog (#38)

* updates CHANGELOG.md
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.

2 participants