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

Bugs/seeder #1

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

Conversation

afaqcentosquare
Copy link

No description provided.

$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";
Copy link
Contributor

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";
Copy link
Contributor

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);
Copy link
Contributor

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

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',
Copy link
Contributor

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.

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.

2 participants