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

Add regions for Albania,Denmark,Greece,Iceland,Portugal and Sweden #30959

Conversation

nikolalardev
Copy link
Contributor

@nikolalardev nikolalardev commented Nov 17, 2020

Description (*)

Related Pull Requests

https://github.com/magento-commerce/inventory/pull/42

Fixed Issues (if relevant)

  1. Fixes magento/magento2#<issue_number>

Manual testing scenarios (*)

  1. Install Magento
  2. Check table directory_country_region for Albania,Denmark,Greece,Iceland,Portugal and Sweden states/regions.

Questions or comments

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)

Resolved issues:

  1. resolves [Issue] Add regions for Albania,Denmark,Greece,Iceland,Portugal and Sweden #31040: Add regions for Albania,Denmark,Greece,Iceland,Portugal and Sweden

@m2-assistant
Copy link

m2-assistant bot commented Nov 17, 2020

Hi @nikolalardev. 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

['GR', 'GR-H', 'Stereá Elláda'],
['GR', 'GR-E', 'Thessalía'],
['GR', 'GR-K', 'Vóreio Aigaío'],

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also be including GR-69 Ágion Óros, self governed region of Greece

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gwharton I wasn't sure that should be added, but now is there.

['PT', 'PT-18', 'Viseu'],
['PT', 'PT-19', 'Região Autónoma dos Açores'],
['PT', 'PT-20', 'Região Autónoma da Madeira']
];
Copy link
Contributor

Choose a reason for hiding this comment

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

According to ISO 3166-2, the two autonomous regions in Portugal have region codes PT-20 and PT-30. Can we make these consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gwharton Hello, I fix the this two region codes, good catch. Thank you.

@gabrieldagama gabrieldagama added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Nov 24, 2020
@m2-community-project m2-community-project bot removed this from Review in Progress in Pull Requests Dashboard Nov 24, 2020
@gabrieldagama
Copy link
Contributor

@magento create issue

@gabrieldagama
Copy link
Contributor

@magento run all tests

Copy link
Contributor

@gabrieldagama gabrieldagama left a comment

Choose a reason for hiding this comment

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

Hi @nikolalardev, thanks for contributing, moving this to the correct state.

@gabrieldagama
Copy link
Contributor

@magento run all tests

1 similar comment
@gabrieldagama
Copy link
Contributor

@magento run all tests

@gabrieldagama
Copy link
Contributor

Hi @nikolalardev, please follow the exception being thrown on the tests:

10:27:05 [Build Functional CE] In ErrorHandler.php line 61:
10:27:05 [Build Functional CE]                                                                                
10:27:05 [Build Functional CE]   [Exception]                                                                  
10:27:05 [Build Functional CE]   Warning: call_user_func() expects parameter 1 to be a valid callback, class  
10:27:05 [Build Functional CE]    'Magento\Directory\Setup\Patch\Data\AddDataForGreece' not found in /var/ww  
10:27:05 [Build Functional CE]   w/html/lib/internal/Magento/Framework/Setup/Patch/PatchRegistry.php on line  
10:27:05 [Build Functional CE]    141                                                                         
10:27:05 [Build Functional CE]                                                                                
10:27:05 [Build Functional CE] 
10:27:05 [Build Functional CE] Exception trace:
10:27:05 [Build Functional CE]   at /var/www/html/lib/internal/Magento/Framework/App/ErrorHandler.php:61
10:27:05 [Build Functional CE]  Magento\Framework\App\ErrorHandler->handler() at n/a:n/a
10:27:05 [Build Functional CE]  call_user_func() at /var/www/html/lib/internal/Magento/Framework/Setup/Patch/PatchRegistry.php:141
10:27:05 [Build Functional CE]  Magento\Framework\Setup\Patch\PatchRegistry->getDependencies() at /var/www/html/lib/internal/Magento/Framework/Setup/Patch/PatchRegistry.php:206
10:27:05 [Build Functional CE]  Magento\Framework\Setup\Patch\PatchRegistry->getIterator() at /var/www/html/lib/internal/Magento/Framework/Setup/Patch/PatchApplier.php:138
10:27:05 [Build Functional CE]  Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch() at /var/www/html/setup/src/Magento/Setup/Model/Installer.php:1094
10:27:05 [Build Functional CE]  Magento\Setup\Model\Installer->handleDBSchemaData() at /var/www/html/setup/src/Magento/Setup/Model/Installer.php:960
10:27:05 [Build Functional CE]  Magento\Setup\Model\Installer->installDataFixtures() at n/a:n/a
10:27:05 [Build Functional CE]  call_user_func_array() at /var/www/html/setup/src/Magento/Setup/Model/Installer.php:389
10:27:05 [Build Functional CE]  Magento\Setup\Model\Installer->install() at /var/www/html/setup/src/Magento/Setup/Console/Command/InstallCommand.php:231
10:27:05 [Build Functional CE]  Magento\Setup\Console\Command\InstallCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:255
10:27:05 [Build Functional CE]  Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/console/Application.php:1009
10:27:05 [Build Functional CE]  Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:273
10:27:05 [Build Functional CE]  Symfony\Component\Console\Application->doRun() at /var/www/html/lib/internal/Magento/Framework/Console/Cli.php:115
10:27:05 [Build Functional CE]  Magento\Framework\Console\Cli->doRun() at /var/www/html/vendor/symfony/console/Application.php:149
10:27:05 [Build Functional CE]  Symfony\Component\Console\Application->run() at /var/www/html/bin/magento:23
10:27:05 [Build Functional CE] 

@engcom-Foxtrot engcom-Foxtrot self-assigned this Nov 30, 2020
…alardev/magento2 into feature-additional-country-regions
@nikolalardev
Copy link
Contributor Author

@magento run Functional Tests B2B

@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

2 similar comments
@nikolalardev
Copy link
Contributor Author

@magento run all tests

@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@engcom-Foxtrot engcom-Foxtrot moved this from Extended Testing (optional) to Merge in Progress in High Priority Pull Requests Dashboard Dec 18, 2020
@nikolalardev
Copy link
Contributor Author

@magento run all tests

@magento-engcom-team magento-engcom-team merged commit 1d50915 into magento:2.4-develop Dec 24, 2020
@m2-assistant
Copy link

m2-assistant bot commented Dec 24, 2020

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

@gabrieldagama gabrieldagama moved this from Merge in Progress to Recently Merged in High Priority Pull Requests Dashboard Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Component: Directory Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept QA: Added to Regression Scope Scenario was analysed and added to Regression Testing Scope Release Line: 2.4 Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] Add regions for Albania,Denmark,Greece,Iceland,Portugal and Sweden
6 participants