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

Add dataset evalution method to policy module #50

Open
jkpage00 opened this issue Jun 21, 2023 · 1 comment
Open

Add dataset evalution method to policy module #50

jkpage00 opened this issue Jun 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jkpage00
Copy link

jkpage00 commented Jun 21, 2023

Support policy evaluation of datasets against a marketing action so that users of the package can handle policy enforcement in their Python code.

Add a method to the Policy class in policy.py to make POST requests to the /marketingActions/{{namespace}}/{{marketing action name}}/constraints endpoint of the Policy Service API (API reference)

There are 2 policy evaluation requests in the Policy Service API that have not yet been implemented in aepp:

  • POST Evaluate a core marketing action based on datasets and/or fields
  • POST Evaluate a custom marketing action based on datasets and/or fields

The 2 POST requests can be consolidated into 1 method by taking the namespace ("core" or "custom") as a parameter

A method to implement the GET requests for evaluating a set of DULE labels against a marketing action is covered in Issue #51

@pitchmuc pitchmuc self-assigned this Jul 22, 2023
@pitchmuc pitchmuc added the enhancement New feature or request label Jul 22, 2023
@pitchmuc
Copy link
Owner

Thanks for the tip of gathering them into one method, I will do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants