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

Permission manager changes #313

Merged
merged 29 commits into from
Oct 5, 2018
Merged

Conversation

comeonbuddy
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our Submission guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • [?] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

added 5 more functions in general permission manager
https://app.asana.com/0/843053006731091/818024811891878

Does this PR introduce a breaking change?

No.

Any Other information:

In getAllModulesAndPerms(), as discussed we will pass on the module types as input to the function.

Similarly in getAllDelegatesWithPerm(), assume module add will also be provided.

Uint test is working.

@comeonbuddy comeonbuddy changed the base branch from master to development-1.5.0 October 4, 2018 07:59
@pabloruiz55
Copy link
Contributor

@comeonbuddy please review the PR as tests seem not to be passing.

@comeonbuddy
Copy link
Contributor Author

all test now fixed, pls have a look again.

require(_multiModules.length == _multiPerms.length, "modules and permission length are not same");

for(uint8 i=0;i<_multiPerms.length;i++){
bool _currentPerm = !perms[_multiModules[i]][_delegate][_multiPerms[i]];
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of duplicating the logic, for each entry call changePermission @comeonbuddy

@satyamakgec
Copy link
Contributor

Hey @pabloruiz55 I am doing some improvements in the logic

TRAVIS_PULL_REQUEST=false scripts/test.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

This will disable coverage calculation on local machines but won't affect travis as travis sets TRAVIS_PULL_REQUEST to the pull request number automatically (which apparently, can't be overwritten).

@pabloruiz55 pabloruiz55 merged commit 7f76322 into development-1.5.0 Oct 5, 2018
@adamdossa adamdossa deleted the Permission-Manager-Changes branch October 5, 2018 12:16
@VictorVicente VictorVicente restored the Permission-Manager-Changes branch October 5, 2018 12:30
@VictorVicente VictorVicente deleted the Permission-Manager-Changes branch January 11, 2019 14:00
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.

7 participants