taxjar / taxjar-magento2-extension

Magento 2 Sales Tax Extension by TaxJar
http://www.taxjar.com/guides/integrations/magento2/
Open Software License 3.0
22 stars 30 forks source link

feat: Allows AMQP message queue configuration #287

Closed sethobey closed 2 years ago

sethobey commented 2 years ago

Context

Closes #242

Description

Corrects queue implementation for TaxJar-related topics/exchanges

Performance

Allows for AMQP configuration

Testing

Backup Rates (MySQL-adapter)

  1. Sync nexus and enable backup rates feature from store config
  2. Observe create rates job queued
  3. Run bin/magento queue:consumers:start taxjar.backup_rates.create
  4. Observe create rates job processed
  5. Disable backup rates feature from store config
  6. Observe create rates job queued
  7. Run bin/magento queue:consumers:start taxjar.backup_rates.delete
  8. Observe delete rates job processed

Backup Rates (AMQP config)

(Modify app/etc/env.php section queue with adapter config... see #242)

  1. Sync nexus and enable backup rates feature from store config
  2. Observe create rates job queued (In RabbitMQ UI, messages queued with status "ready")
  3. Run bin/magento queue:consumers:start taxjar.backup_rates.create
  4. Observe create rates job processed (In RabbitMQ UI, messages move to "acknowledged")
  5. Disable backup rates feature from store config
  6. Observe create rates job queued
  7. Run bin/magento queue:consumers:start taxjar.backup_rates.delete
  8. Observe delete rates job processed (In RabbitMQ UI, messages move to "acknowledged")

Transaction Sync (MySQL-adapter)

  1. With sample data or existing completed orders, enable transaction sync feature from store config
  2. Force sync transactions over date range inclusive of "complete" order(s)
  3. Run bin/magento queue:consumers:start taxjar.trasactions.sync
  4. Observe transaction sync processed (verified by the Order's TJ Last Synced Date)

Transaction Sync (AMQP config)

(Modify app/etc/env.php section queue with adapter config... see #242)

  1. With sample data or existing completed orders, enable transaction sync feature from store config
  2. Force sync transactions over date range inclusive of "complete" order(s)
  3. Run bin/magento queue:consumers:start taxjar.trasactions.sync
  4. Observe transaction sync processed (In RabbitMQ UI, messages move to "acknowledged")

Versions

lbajsarowicz commented 2 years ago

Thank you @sethobey - That is wonderful news.

sethobey commented 2 years ago

@lbajsarowicz you're very welcome, thank you for your contributions!