Skip to content

Log actions on newsletters#2763

Merged
mrcasals merged 9 commits intomasterfrom
logs/newsletter-actions
Feb 20, 2018
Merged

Log actions on newsletters#2763
mrcasals merged 9 commits intomasterfrom
logs/newsletter-actions

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Feb 19, 2018

🎩 What? Why?

Logs creation, update, deletion and delivering of newsletters.

Also fixes some problems with the static pages logs.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry

📷 Screenshots (optional)

Description

@mrcasals mrcasals self-assigned this Feb 19, 2018
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 19, 2018

Codecov Report

Merging #2763 into master will increase coverage by <.01%.
The diff coverage is 97.64%.

@@            Coverage Diff             @@
##           master    #2763      +/-   ##
==========================================
+ Coverage   98.85%   98.86%   +<.01%     
==========================================
  Files        1534     1537       +3     
  Lines       36091    36164      +73     
==========================================
+ Hits        35679    35752      +73     
  Misses        412      412

Copy link
Copy Markdown
Contributor

@oriolgual oriolgual left a comment

Choose a reason for hiding this comment

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

Approved but review the comments please


def i18n_labels_scope
"activemodel.attributes.static_page"
end
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.

Is this expected to be here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is. It's overwriting a method in the BasePresenter, I forgot it in the previous PR and didn't want to create a new one for this :(

delete: "%{user_name} deleted the %{resource_name} newsletter"
deliver: "%{user_name} delivered the %{resource_name} newsletter"
update: "%{user_name} updated the %{resource_name} newsletter"
static_pages:
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.

Ditto

@mrcasals mrcasals merged commit 4a9cfe2 into master Feb 20, 2018
@ghost ghost removed the in-review label Feb 20, 2018
@mrcasals mrcasals deleted the logs/newsletter-actions branch February 20, 2018 08:28
@mrcasals mrcasals added this to the Release v.0.10.0 milestone Feb 26, 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