-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bugs/seeder #1
base: master
Are you sure you want to change the base?
Bugs/seeder #1
Conversation
$t_bug_data->eta = $t_issue->eta->id; | ||
$t_bug_data->resolution = $t_issue->resolution->id; | ||
$t_bug_data->status = $t_issue->status->id; | ||
$t_bug_data->summary = "Test"; |
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.
Why are you overwriting the summary to 'Test'?
$t_bug_data->resolution = $t_issue->resolution->id; | ||
$t_bug_data->status = $t_issue->status->id; | ||
$t_bug_data->summary = "Test"; | ||
$t_bug_data->description = "Test"; |
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.
Why are you overwriting the description to 'Test'?
$t_bug_data->project_id = $p_project_ids[rand(0, 1)]; | ||
$t_bug_data->reporter_id = user_get_id_by_name($t_issue->reporter->name); | ||
$t_bug_data->handler_id = $t_handler_id; | ||
$t_bug_data->view_state = rand(1, 10); |
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.
There are two valid values for view_state --- VS_PRIVATE and VS_PUBLIC. It shouldn't be set to other values.
All rights reserved. | ||
MIT License | ||
**************************************************************************/ | ||
* MantisBT Seeder Plugin |
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.
There is a lot of noise in the indentation, can you please update it to follow the convention of the original code of the plugin to remove the noise and be consistent.
|
||
$projects = [ | ||
[ | ||
'p_name' => 'MantisBT', |
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.
Use name
and description
- no need for the p_
prefix.
No description provided.