-
Notifications
You must be signed in to change notification settings - Fork 13
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
Refactor features with terms and conditions #303
Conversation
ronaldsg20
commented
Aug 30, 2024
I've updated the features controller creating a new dataservice for the terms collections in order to retrieve the user only the enabled terms and conditions version available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
let responseCode = this.HTTP_ERROR; | ||
try { | ||
retorno = await this.featuresDatService.getAll(); | ||
features = await this.featuresDatService.getAll(); | ||
const termsIdx = features.findIndex((feature) => feature.name === 'terms_and_conditions'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if there is no terms_and_conditions
flag? Or more than one but the first "found" disabled?
7898a17
to
1678071
Compare
1678071
to
b97b783
Compare
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM