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

How to implement default values for Entities #16

Open
dmurta1 opened this issue Oct 9, 2019 · 0 comments
Open

How to implement default values for Entities #16

dmurta1 opened this issue Oct 9, 2019 · 0 comments

Comments

@dmurta1
Copy link
Member

dmurta1 commented Oct 9, 2019

Describe what is wrong
There is no explanation on how to set default values for different entities

Describe what was expected
A cookbook section exemplifying how to set default values for $date (most important), $store and at least one more example

Additional context
New users may create 2 different responses/scripts, one with a default value, and another one with a entity to be used as filter, for example

  • Response with the keywords "sales", so user can search for sales with a hardcoded date
  • Response with the keywords "sales" and "$date", so user can search for sales with a $date as dynamic filter

The example above is a bad pattern, and can be easily replaced by a optional "$date" with a default value

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

No branches or pull requests

1 participant