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

curriculum inventory report rollover. #1616

Merged
merged 7 commits into from
Oct 13, 2016
Merged

curriculum inventory report rollover. #1616

merged 7 commits into from
Oct 13, 2016

Conversation

stopfstedt
Copy link
Member

fixes #1614.

@jrjohnson jrjohnson self-assigned this Oct 13, 2016
@stopfstedt
Copy link
Member Author

rollover component gets thoroughly tested thru the corresponding controller acceptance test.
the command line test is lightweight and only ensures that input gets properly passed etc.

Copy link
Member

@jrjohnson jrjohnson left a comment

Choose a reason for hiding this comment

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

One minor double save change. Looks great otherwise.


// generate token after the fact and persist report once more.
$newReport->generateToken();
$this->reportManager->update($newReport, true, true);
Copy link
Member

Choose a reason for hiding this comment

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

No need to call this twice the entity should already be persisted from line 92

Copy link
Member Author

Choose a reason for hiding this comment

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

token generation needs to happen after initial save. then the record must be saved again. this second save is legit.

@jrjohnson jrjohnson merged commit 5480730 into ilios:master Oct 13, 2016
@stopfstedt stopfstedt deleted the 1614_clone_ci_report branch October 20, 2016 18:04
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.

add ability to clone curriculum inventory reports
2 participants