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

migrate recommendation text blocks to COACH DB, replace text blocks in CQL with keys #24

Open
mattStorer opened this issue Jan 3, 2023 · 0 comments
Assignees
Milestone

Comments

@mattStorer
Copy link
Collaborator

it will benefit COACH with respect to flexibility, and implement improved separation of concerns, to migrate the text blocks of predefined recommendation text from the CQL into the COACH database, and to replace those text blocks in the CQL with keys that can be passed instead.

this will simplify the CQL, and make it so that if we want to modify recommendation text, all we will need to do is update a database record (easy) as opposed to modifying CQL and rebuilding and repopulating those resources into CQF-ruler (hard). it will also make possible the ability to split what the recommendation text looks like, how it reads, based on other factors (e.g. A-B testing), without introducing more complexity into the CQL and recommendation engine, which is already plenty complex as it is.

this shouldn't be a particularly difficult thing to do either. just replace each text block with a key of some predefined format, separate them by a delimiter, and send that delimited set of keys back to COACH. COACH can then parse that set of keys and build the recommendation text from associated records in the COACH database. it's really a basic search and replace with some DB overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants