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

Consolidation of promotion code batch form fields into partial. #3957

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

cpfergus1
Copy link
Contributor

@cpfergus1 cpfergus1 commented Feb 24, 2021

Description

This pull request resolves issue 3952

  • Implemented field for email on pathway 1 for creating promotion code batches (during promotion creation).

  • Implemented partial for form fields when creating promotion code batches and refactored promotion code batch creation forms.

  • Implemented conditional for "per code usage limit" to display when promotion id is not present in the page's parameters to prevent breaking pathway 2 for creating promotion code batches

  • All tests are passing

Pathway 1
image

Pathway 2
image

If needed you can reference another PR or issue here, e.g.:
Ref #3952

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

@cpfergus1 cpfergus1 changed the title Resolved Issue 3952 Consolidation of promotion code batch form fields into partial. Feb 24, 2021
@aldesantis aldesantis requested review from spaghetticode and a team February 25, 2021 08:38
@aldesantis
Copy link
Member

aldesantis commented Feb 25, 2021

@cpfergus1 thanks, this looks good to me! I'm not too familiar with this specific part of the code, so I'll let @spaghetticode (who authored the original issue) chime in first to see if this is what he had in mind.

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

@cpfergus1 thanks for working on this, the changes look good to me 👍

@kennyadsl kennyadsl added the changelog:solidus_backend Changes to the solidus_backend gem label Feb 25, 2021
@cpfergus1
Copy link
Contributor Author

No problem! Glad to head the changes are acceptable

Copy link
Member

@aldesantis aldesantis left a comment

Choose a reason for hiding this comment

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

@cpfergus1 thanks! Just have one small comment and then we're good. 🙂

@kennyadsl kennyadsl added the release:major Breaking change on hold until next major release label Apr 8, 2021
@kennyadsl kennyadsl added this to the 3.1.0 milestone Apr 8, 2021
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks Connor!

@kennyadsl kennyadsl removed the release:major Breaking change on hold until next major release label Apr 30, 2021
@kennyadsl kennyadsl merged commit 7f57b4c into solidusio:master Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Admin] Promo code batch creation with email field
4 participants