-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
p:mediumThis issue may be useful, and needs some attentionThis issue may be useful, and needs some attentions:textRelates to the text endpointRelates to the text endpointt:featureNew feature or requestNew feature or request
Milestone
Description
Description 🤔
"As a user, I want to be able to select which text attributes interest me, so that the request is more focused and reduces number of operations per request."
meco-api/src/main/java/uk/thepragmaticdev/text/TextService.java
Lines 71 to 77 in d9f8f89
| private RequestedAttributes createRequestedAttributes(ApiKey apiKey) { | |
| var attributes = new RequestedAttributes(); | |
| // TODO dynamically add new attributes to only user enabled attributes from | |
| // api key | |
| attributes.setProfanity(new Attribute()); | |
| attributes.setToxicity(new Attribute()); | |
| return attributes; |
- Requested attributes are added only if a user has enabled them
Acceptance Criteria 🎉
- Ensure that all code conforms to our coding standards
- Written new unit / integration tests (or updated existing ones) for changes if necessary
- Verified that all unit / integration tests are passing
- Written doc blocks, inline documentation and updated READMEs on all new changes if necessary
- Both Travis CI and SonarCloud are passing
Please read CONTRIBUTING.md for details on our code of conduct.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p:mediumThis issue may be useful, and needs some attentionThis issue may be useful, and needs some attentions:textRelates to the text endpointRelates to the text endpointt:featureNew feature or requestNew feature or request