Skip to content

Template bug fix - #298

Merged
vyruss merged 3 commits into
DMPRoadmap:developmentfrom
CDLUC3:template-bug-fix
May 9, 2017
Merged

Template bug fix#298
vyruss merged 3 commits into
DMPRoadmap:developmentfrom
CDLUC3:template-bug-fix

Conversation

@briri

@briri briri commented May 8, 2017

Copy link
Copy Markdown
Contributor

Correction to the templates controller and the way it pulls in funder and org templates and an update to the email notification that gets sent out when a user changes sharing permissions.

This includes your shib/orcid PR from yesterday.

This change requires that each templates.dmptemplate_id only have one published version! I had to manually correct some of the records on our test instance, and you may need to do the same if you have not run the current DMPonline_v4 to DMPRoadmap migrations!

@briri
briri requested a review from vyruss May 8, 2017 22:55

@vyruss vyruss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks fine & tested locally.

@xsrust

xsrust commented May 9, 2017

Copy link
Copy Markdown
Contributor

The current migrations dont actually enforce a single published version for each set of dmptemplate_id. I've written a rake task to enforce this which will be in a future PR and added to the post-migration steps when it reaches the roadmap codebase.

@vyruss
vyruss merged commit b87fcd2 into DMPRoadmap:development May 9, 2017
@vyruss

vyruss commented May 9, 2017

Copy link
Copy Markdown
Contributor

Thanks @xsrust your rake task seems to work fine.

@briri

briri commented May 9, 2017

Copy link
Copy Markdown
Contributor Author

Excellent. Thanks @xsrust

@briri
briri deleted the template-bug-fix branch May 12, 2017 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants