Skip to content

Log feature (un)publication#2884

Merged
mrcasals merged 4 commits intomasterfrom
log/feature-actions
Mar 2, 2018
Merged

Log feature (un)publication#2884
mrcasals merged 4 commits intomasterfrom
log/feature-actions

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Mar 2, 2018

🎩 What? Why?

This PR logs feature (un)publication

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry

📷 Screenshots (optional)

Description

@mrcasals mrcasals added this to the Release v.0.10.0 milestone Mar 2, 2018
@mrcasals mrcasals self-assigned this Mar 2, 2018

flash[:notice] = I18n.t("features.publish.success", scope: "decidim.admin")
redirect_to action: :index
PublishFeature.call(@feature, current_user) do
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 like these lines are not hit, don't we have tests for this?


flash[:notice] = I18n.t("features.unpublish.success", scope: "decidim.admin")
redirect_to action: :index
UnpublishFeature.call(@feature, current_user) do
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.

Same on these lines - not covered

@mrcasals
Copy link
Copy Markdown
Contributor Author

mrcasals commented Mar 2, 2018

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2018

Codecov Report

Merging #2884 into master will decrease coverage by <.01%.
The diff coverage is 98.68%.

@@            Coverage Diff             @@
##           master    #2884      +/-   ##
==========================================
- Coverage   98.72%   98.72%   -0.01%     
==========================================
  Files        1647     1651       +4     
  Lines       39126    39199      +73     
==========================================
+ Hits        38629    38701      +72     
- Misses        497      498       +1

@mrcasals mrcasals merged commit a6fa0b4 into master Mar 2, 2018
@mrcasals mrcasals deleted the log/feature-actions branch March 2, 2018 12:50
@ghost ghost removed the in-review label Mar 2, 2018
@mrcasals mrcasals modified the milestones: Release v.0.10.0, CDP2 Dec 10, 2018
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