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

feat(approval): allow developers to request approval from the code #846

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Thenkei
Copy link
Contributor

@Thenkei Thenkei commented Oct 6, 2023

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

@codeclimate
Copy link

codeclimate bot commented Oct 6, 2023

Code Climate has analyzed commit 0e8834d and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (98% is the threshold).

This pull request will bring the total coverage in the repository to 99.0%.

View more on Code Climate.

@Thenkei
Copy link
Contributor Author

Thenkei commented Oct 6, 2023

@@ -28,6 +28,10 @@ export default (collection: DvdCustomizer) =>
ids: await context.getRecordIds(),
};

// Price increase above 50% needs to be validated by a manager !
// This feature needs a Paying Plan.
if (context.formValues.percentage > 50) return resultBuilder.requestApproval();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
if (context.formValues.percentage > 50) return resultBuilder.requestApproval();
if (context.formValues.percentage > 50) context.requestApproval();

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.

1 participant