Skip to content

added config for newsletter in frontend #18407

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

Merged
merged 3 commits into from
Jan 7, 2019
Merged

added config for newsletter in frontend #18407

merged 3 commits into from
Jan 7, 2019

Conversation

torhoehn
Copy link
Contributor

@torhoehn torhoehn commented Oct 5, 2018

Description

Until now there wasn't a config field to hide newsletter elements from frontend. I orientated at the wishlist module, because for wishlist it was already possible.

Manual testing scenarios

  1. Open Backend
  2. Go to Stores -> Configuration -> Customers -> Newsletter
  3. Set 'Enabled' to 'No'
  4. Newsletter will be hidden from footer, customer registration, customer account and customer account sidebar

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@larsroettig
Copy link
Member

Hi @torhoehn,
for your contribution currently the unit tests are failed can you fix this this ?

best regards,

Lars

@torhoehn
Copy link
Contributor Author

torhoehn commented Oct 7, 2018

@larsroettig The functional test could not start correctly I think, but the rest looks fine for me now.

@larsroettig
Copy link
Member

@torhoehnI restarted the test if it is done I will check again

@larsroettig larsroettig self-assigned this Oct 8, 2018
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Oct 8, 2018
@magento-engcom-team
Copy link
Contributor

Hi @larsroettig, thank you for the review.
ENGCOM-3134 has been created to process this Pull Request

@sidolov
Copy link
Contributor

sidolov commented Oct 9, 2018

Hi @torhoehn , we found one more scenario that should be covered in scope of the provided changes:

Steps:

  1. Create User 'John'
  2. Disable Newsletter Subscription
  3. Login as John
  4. Navigate to /newsletter/manage/ directly on the browser

Expected:
404 - Page not found

Actual:
Newsletter Subscription page opens

@torhoehn
Copy link
Contributor Author

torhoehn commented Oct 9, 2018

@sidolov I‘ll implement this later this month.

@sidolov
Copy link
Contributor

sidolov commented Oct 25, 2018

Hi @torhoehn , will you continue progress with PR?

@torhoehn
Copy link
Contributor Author

@sidolov Yes, I'm just back from vacation.

@sivaschenko
Copy link
Member

Hi @torhoehn , are you going to continue the progress with this PR?

@sivaschenko sivaschenko self-assigned this Nov 14, 2018
@torhoehn
Copy link
Contributor Author

@sivaschenko Yes, I'm just a little stuck with the unit test.

@sivaschenko
Copy link
Member

@torhoehn great! Feel free to contact me in slack if you need any help with the unit tests

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for collaboration! Can you please fix the code styles to comply with PSRs and be consistent with the codebase

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, thank you for the review.
ENGCOM-3134 has been created to process this Pull Request

@torhoehn
Copy link
Contributor Author

@magento-engcom-team What kind of response is needed here?

@sivaschenko
Copy link
Member

Hi @torhoehn sorry, looks like I forgot to remove the "needs update" label.

@sidolov sidolov changed the base branch from 2.3-develop to 2.2-develop December 23, 2018 03:33
@sidolov sidolov changed the base branch from 2.2-develop to 2.3-develop December 23, 2018 03:33
@ghost
Copy link

ghost commented Jan 7, 2019

Hi @torhoehn, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team merged commit aaa5420 into magento:2.3-develop Jan 7, 2019
@magento-engcom-team
Copy link
Contributor

Hi @torhoehn. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

@torhoehn torhoehn deleted the feature/newsletter-config branch January 7, 2019 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants