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

Expose strategy types #57

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

AlfredoGJ
Copy link

What does this PR do?

Exposes Strategy Type and affirmative, unanimous strategies to be used in the Express and React packages

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 change)

Checklist

  • I have added necessary documentation (if appropriate)
  • I did review existing Pull Requests before submitting mine
  • I have added tests that prove my fix is effective or that my feature works

dependabot bot and others added 7 commits October 26, 2021 14:53
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
@@ -1,4 +1,7 @@
import AccessDecisionManager from './access-decision-manager';

export * from './voter';
export * from './strategy'
export * from './strategy/'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line is duplicated!

Copy link
Author

Choose a reason for hiding this comment

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

One export is for the strategy.ts file, which contains the Strategy type, and the other for the strategy directory from where we export the unanimous and affirmative strategies

Copy link
Author

@AlfredoGJ AlfredoGJ Nov 19, 2021

Choose a reason for hiding this comment

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

Also I'm wondering what type of commit to use, im thinking of refactor but also feat, what do you think Leo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd use chore:

@LeoUrzua
Copy link
Collaborator

Hey Alfredo, thanks a lot for creating this PR!
When you created your commits, didn't you get a message to follow some conventional commits https://www.conventionalcommits.org/en/v1.0.0/
it'd be nice to rebase your commits to follow that standard so, we can have the CHANGELOG file updated https://github.com/wizeline/access-decision-manager/blob/master/CHANGELOG.md

let me know if you have questions, I'd like to merge this PR

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