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

Refactor features with terms and conditions #303

Closed
wants to merge 3 commits into from

Conversation

ronaldsg20
Copy link
Member

	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.

		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.
Copy link

@annipi annipi left a 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');
Copy link
Contributor

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?

@ronaldsg20 ronaldsg20 force-pushed the refactor/ff-terms-and-conditions branch from 7898a17 to 1678071 Compare September 23, 2024 20:29
@ronaldsg20 ronaldsg20 force-pushed the refactor/ff-terms-and-conditions branch from 1678071 to b97b783 Compare September 23, 2024 20:30
Copy link

sonarcloud bot commented Sep 23, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
47.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Contributor

@leoiovlabs leoiovlabs left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants