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

Resolve State Label Rather than Status Label #17850

Closed
wants to merge 13 commits into from
Closed

Resolve State Label Rather than Status Label #17850

wants to merge 13 commits into from

Conversation

sskulkarni
Copy link

@sskulkarni sskulkarni commented Aug 29, 2018

Description

We have displayed State Label rather than Status Label on Order status Grid and in a drop down in Assign Status to state.
For that I have converted State Code to State Label with some PHP function,As we don't have State Label input in Magento2.
Find screen-shots for reference.
orderstatus_grid
orderstate_dropdown

Please consider "0204934" commit for this solution.

Fixed Issues (if relevant)

  1. Wrong State Title, Displaying Status Label Rather than State #17847: Wrong State Title, Displaying Status Label Rather than State
  2. Order State dropdown in Assign Order Status to State incorrect #17844: Order State dropdown in Assign Order Status to State incorrect

Manual testing scenarios

  1. ...
  2. ...

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)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Aug 29, 2018

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @sskulkarni. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@sskulkarni
Copy link
Author

I am changing my email address and make pull request again.
Thanks

@sskulkarni sskulkarni closed this Aug 29, 2018
@sskulkarni
Copy link
Author

I have changed Email Address.
Thanks

@sskulkarni sskulkarni reopened this Aug 29, 2018
@@ -55,7 +55,7 @@ public function __construct(
public function execute()
{
$itemId = (int)$this->getRequest()->getParam('item_id');
$itemQty = (int)$this->getRequest()->getParam('item_qty');
$itemQty = (float)$this->getRequest()->getParam('item_qty');
Copy link
Member

Choose a reason for hiding this comment

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

This change is related with issues or PR?

Copy link
Author

Choose a reason for hiding this comment

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

No
Thanks

Copy link
Member

@osrecio osrecio Aug 29, 2018

Choose a reason for hiding this comment

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

Can you revert it? To focus only in the issue. Thanks!

Copy link
Author

Choose a reason for hiding this comment

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

I have reverted.
Thanks

@osrecio
Copy link
Member

osrecio commented Aug 29, 2018

Hi @sskulkarni . You delete the entire file: UpdateItemQty.php. You only should revert the change of this commit: https://github.com/magento/magento2/pull/17850/files/020493427d1bd76fb86dc9c4be376c7871fcdd87#diff-1533c00e78677683edc94872df589b5f.

When you solve it. Please squash your commits to only have one.

@osrecio osrecio self-assigned this Aug 31, 2018
Copy link
Author

@sskulkarni sskulkarni left a comment

Choose a reason for hiding this comment

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

Reverted file

/**
* Convert State Code to State Label
*/
public function getStateLabelByCode($stateCode)
Copy link
Member

Choose a reason for hiding this comment

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

You cannot add public methods to classes and interfaces marked with @api. Please reimplement using the guide https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/

Copy link
Member

Choose a reason for hiding this comment

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

@slavvka please consider that this is not an interface, adding public methods to class shouldn't result in any negative consequences.

@slavvka slavvka self-assigned this Oct 2, 2018
@slavvka
Copy link
Member

slavvka commented Oct 23, 2018

Hey @sskulkarni are you planning to complete this PR?

@sivaschenko sivaschenko self-assigned this Nov 21, 2018
@sivaschenko
Copy link
Member

Closed due to inactivity. Feel free to reopen if you'd like to continue progress on this PR.

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.

6 participants