Skip to content

#28947 Fix scope reset on new synonym form #29206

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 5 commits into from
Aug 1, 2020
Merged

#28947 Fix scope reset on new synonym form #29206

merged 5 commits into from
Aug 1, 2020

Conversation

srsathish92
Copy link
Contributor

Description (*)

This PR to update correct default value "0:0" & data type for scope field in new synonym group form. that's why reset not working due to incorrect default value on new form.

Related Pull Requests

#29193 - I guess this js change not required because rest of the select resetting works fine in other forms (ex: customer form)

Fixed Issues (if relevant)

  1. Fixes Scope not reset on New Synonym Group form #28947

Manual testing scenarios (*)

  1. please check steps to reproduce on Scope not reset on New Synonym Group form #28947

Questions or comments

NA

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented Jul 20, 2020

Hi @srsathish92. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

For more details, please, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@srsathish92
Copy link
Contributor Author

@magento run all test

@rogyar rogyar self-assigned this Jul 22, 2020
@rogyar
Copy link
Contributor

rogyar commented Jul 22, 2020

Hi @srsathish92. Good catch, thank you. Due to the definition of done all new changes should be covered by auto-tests. Could you write an MFTF test that goes through the "Steps to reproduce" and makes sure that the issue does not appear anymore?

Thank you!

@rogyar rogyar added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Jul 22, 2020
@srsathish92
Copy link
Contributor Author

@magento run all tests

@srsathish92
Copy link
Contributor Author

@rogyar I have updated MFTF test case. Can you please review now?

@srsathish92
Copy link
Contributor Author

@magento run Functional Tests CE,Functional Tests EE,Functional Tests B2B,Sample Data Tests CE,Sample Data Tests EE,Sample Data Tests B2B

@rogyar
Copy link
Contributor

rogyar commented Jul 25, 2020

Hi @srsathish92. Good job.
However, something went wrong with the functional tests. As you can see, all of them are failing with no report. Usually, it happens if the test generation step is broken somehow (a wrong reference, missing action group, etc). Please, try running the tests locally one more time.

@rogyar rogyar added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: MFTF test coverage and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Jul 25, 2020
@srsathish92
Copy link
Contributor Author

@magento run all tests

@srsathish92 srsathish92 requested a review from rogyar July 27, 2020 13:02
@srsathish92
Copy link
Contributor Author

@magento run Functional Tests CE,Functional Tests EE,Functional Tests B2B, Integration Tests

@srsathish92
Copy link
Contributor Author

@magento run Functional Tests B2B, Integration Tests

Copy link
Contributor

@rogyar rogyar left a comment

Choose a reason for hiding this comment

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

The same failing integration test occurs for other PRs, so we may assume that it's not related. RMA functionality is not affected by the current changeset somehow, so the failing functional tests are not related either.

@srsathish92 great job!

@magento-engcom-team
Copy link
Contributor

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

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Manual testing scenario:

  1. Go to Admin -> Marketing -> SEO & Search -> Search Synonyms;
  2. Click on New Synonym Group button;
  3. Select scope different than the default;
  4. Enter other details;
  5. Click on Reset button;

Before: ✖️ Not all items have been reset

Peek 2020-07-31 10-09

After: ✔️ All items have been reset

Peek 2020-07-31 10-32

@engcom-Echo engcom-Echo self-assigned this Jul 31, 2020
@engcom-Alfa engcom-Alfa added Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. labels Jul 31, 2020
@engcom-Echo engcom-Echo added the QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) label Jul 31, 2020
@engcom-Alfa engcom-Alfa added QA: Added to Regression Scope Scenario was analysed and added to Regression Testing Scope and removed QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) labels Jul 31, 2020
@engcom-Echo
Copy link
Contributor

@magento run all tests

@m2-assistant
Copy link

m2-assistant bot commented Aug 1, 2020

Hi @srsathish92, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: MFTF test coverage Component: Search Partner: Ziffity partners-contribution Pull Request is created by Magento Partner Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. Progress: accept QA: Added to Regression Scope Scenario was analysed and added to Regression Testing Scope Release Line: 2.4 Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Scope not reset on New Synonym Group form
5 participants