-
Notifications
You must be signed in to change notification settings - Fork 55
Add date range arguments to admin UI for generating data. #165
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
Conversation
|
What happens to products? Will they be generated on the same date? I am just think that products can be created after orders that are using them. |
|
Just a fly by comment. According to the docs for the CLI commands:
Whereas from the UI it looks like we will be generating orders on a specific day. Should the |
Thanks @budzanowski. That's correct. However, it is also possible to generate orders without products. So we haven't been enforcing accuracy on these scenarios, lol. Applying the date range argument to both products and orders should help here. |
|
Thanks @mikkamp,
I think if you don't specify a date-end, the current date is assumed to be the end date. But I agree we can add it as an option. |
Yes it will use the current date. I mainly meant to imply that the UI just has a single date picker, it doesn't specify what that date signifies, so my visual interpretation would be that it would generate 10 orders for the date that I select. But instead it uses random dates for a date range where I was able to select the start date. So even just a small blurb of text explaining what the date does is enough. |
|
I reworked the PR to apply the date argument to products as well.
@mikkamp, that makes sense. I added the end-date option too. I wonder whether I should put the date options before the "generate" fields on the form. |
I don't think that it is necessary. |

All Submissions:
Changes proposed in this Pull Request:
While generating some orders to test some reports, I realised that all orders generated via the UI have the same date. @garymurray has brought this up before, so I decided to implement it
This PR adds dates fields to the form and provides
start-dateandend-dateargs to thegenerate ordersandgenerate productsjobs.How to test the changes in this Pull Request:
Other information:
Changelog entry
FOR PR REVIEWER ONLY: