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

feat: select questions randomly by batch of same insight #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexfauquette
Copy link
Member

No description provided.

@alexfauquette
Copy link
Member Author

Instead of asking to the api for a mixt between "brand", "weight", "label" and "category" questions, the application ask for a batch of 5 questions on the same subject. The subject is chosen randomly according to the user choices

@teolemon
Copy link
Member

@raphael0202 has just merged the same thing I think

@@ -58,6 +61,7 @@ const Questions = () => {
...(country === 'en:world' ? {} : { country }),
...(brands ? { brands } : {}),
...(valueTag ? { value_tag: valueTag } : {}),
...(selectedInsights.length < Object.keys(insightTypes).length ? { insight_types: getRandomElement(selectedInsights) } : {} ),
Copy link
Collaborator

Choose a reason for hiding this comment

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

@alexfauquette Does this mean we don't get a batches if we select all insight types?

Copy link
Member Author

Choose a reason for hiding this comment

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

@raphael0202 No, it means that if you select all the insight types, you will no specify an insights type. Then you get a batch of questions with various insights

@teolemon teolemon changed the title select questions randomly by batch of same insight feat: select questions randomly by batch of same insight Feb 19, 2022
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.

3 participants