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

Returning Complete product tree for non admin users fixes #2029 #2063

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

hrath2015
Copy link
Collaborator

  • Clearly explain what your PR is trying to accomplish. A link to an issue is best
    For Non Admin users as per issue#2029 sold-out waring is shown. This PR fixes the Non Admin flow only. Admin flow is not touched at all to avoid any regression.
  • Provide us detailed instructions on how we can test your PR
    Please use two set of Data files(Products and Tags)
    1. as provided in issue "Sold out" message shows on products after 20+ products upload #2029.
    2. Attached here.

datafiles.zip

Please reaction reset after replacing the data files in \private\data folder.

@brent-hoover
Copy link
Collaborator

Dude, you beat me to this by about 20 minutes. :)

@hrath2015
Copy link
Collaborator Author

Next time will ensure no overlap. Please use whichever works best for RC.

@brent-hoover
Copy link
Collaborator

First is first.

@brent-hoover brent-hoover self-requested a review March 30, 2017 11:33
Copy link
Collaborator

@brent-hoover brent-hoover left a comment

Choose a reason for hiding this comment

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

Tested, Verified fixed.

@brent-hoover brent-hoover merged commit 51bf059 into development Mar 30, 2017
@brent-hoover brent-hoover deleted the hrath2015-fix2029 branch March 30, 2017 11:35
aaronjudd pushed a commit that referenced this pull request Apr 19, 2017
* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Using publish-counts to record count of orders in order tabs

* Add alert and checkout message when item quantities have been adjusted

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Update errors to include when cart is already full

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Actually deny when out of stock

* Fix 'Show More' button functionality

* Add more descriptive error messages

* Using publish-counts to record count of orders in order tabs

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Fix 'Show More' button functionality

* Fix console error on Quantity

* Fix PR arising issue on quantity

* Using reactiveDict to store order limits

* Using camelcase for naming

* Passing filter to PaginatedOrders subscription for query builder in publish

* Publishing order counts using Mongo aggregate pipeline

* Clean up a few edge cases

* Add i18n translations

* Remove file changes different from development

* Turns out I don't need this publication; it doesn't work well anyway because it doesn't return a Mongo cursor

* Remove all references to addressbook.js

* Set custom layout to override based on priority field (#2023)

* Set Custom layout to override based on priority field

* Update existing priority field to use new default

* Migrate existing priority fields

* Fix audience schema to be array of Strings

* Check before updating during migration

* Add down migration and refactor

* Add reaction packages with layouts to migrate

* Method to aggregate order counts

* fix createDefaultAdminUser behavior with users in the system

* Resolve cart addition issue (#2048)

* Calling aggregate function in React container

* Rewriting aggregate method to use wrapAsync

* Returning Toplevel products as per scroll limit for non admin users fixes #2029 (#2063)

* Refactor calling aggregate function in React container

* Removing unnecessary order subscriptions in order template

* Removing unnecessary order Counts.publish from Orders publication

* [WIP] Broken Formatting for Non-USD currencies (#2062)

* fix nonUSD currencies formatting error

* add proper formatting for tax, discount and shipping fields

* Set order count to 0 if there are no orders in the database

* Remove unnecessary parameter to order/count

* Changes to order template:
Increasing order limit variables and increment value: using order count to render 'Show More' button

* Using publish-counts to display order counts

* Removing unnecessary orders/count method

* Adding i18n on Show More button

* Adding optional check on filter in PaginatedOrders publication

* Sending subscription limit as props to React component

* Don't subscribe to all media (#2073)

* Don't subscribe to all media

- Publish brand assets globally in media publication
- Publish product media in the `Products` and `Product` publications
- Limit media to only published products

* De-duplicate fetch product media functionality

Ensure permissions and workflows are checked when fetching the media.

* Update logic of if / else inclusion / exclusion by workflow

* Fix endless spinner issue

* Add requirements to readme

Adds link to requirements docs above installation instructions

* Move requirements below installation

* Remove isHidden check from core startup b/c blocking safari - fixes #2088

* Request versions (reaction -v) output in issue template (#2087)

* Fetch all Shippo carriers (#2078)

* Init second request on after next url returned

* Refactor to fetch carriers recursively from api

* Fix transliteration package to 1.5.2 which doesn’t leak ES6 into bundle

* Fix issue #2026 changed price not displayed for prod on grid page (#2064)

* Fix issue #2016 changed price not displayed for prod on grid page

* Add getVariantQuantity function to ProductRevision

* Convert text field to select field for countries (#2082)

* [WIP] #2070 Fix PDP Url Path For Grid Settings (#2094)

* fix pdp url path for grid settings

* remove commented code

* Remove legacy PDP (#2097)

* Remove revision conditional

* Remove templates

* Set total quantity as actual sum of quantity

* Don't break out order items

* set cartItemId to just _id since they are the same now

* Fix unrelated error with missing import

* Create shipping record

* Don't use cartItemId

* Group lineItems by _id rather than cartItemId

* Use _id rather than cartItemId. Use sum of quantities rather than length

* Restore check for empty items array to fix test

* Change cartItemId to _id

* 2067 Improper Product Title Wrap (#2108)

* fix improper word wrap in product grid

* fix improper product title wrap in firefox

* Fix Avalara document id (#2114)

* Don't pass in a cartID, pass in orderId for SalesInvoice

* Don't try to parse lines unless we know we have it. No lines, no tax.

* Use order.items to display line items

* Update core.js

Changed "admin" to "owner", which is the default user we're really checking for.

* Meteor 1.4.4.1

* Release 1.1.1

* If cartItemId exists from legacy orders, then use those

* Don't create default admin user when running in app test mode

* Fix "Set Custom Value" on Avalara Usage Type (#2107)

* Get correct id value

* Prevent autoform from removing old values

* Roll back. Autoform still resetting to old values

* Prevent autoform from overriding custom val

* show input field for custom; pre-fill with existing custom val

* Adjust comment

* Adjust comment

* Update form reset

* Refactor subscription

* Fixes #2116 failure to send email (#2118)

* Fix parens that were out of place in wrapAsync of Email.verifyConfig

* Revert the wrapAsync function - I didn’t understand how it worked and it wasn’t the core issue

* Don’t set secure to true for port 587

http://stackoverflow.com/a/22468122/1179341 pointed me in the right direction

* Fix async tests (#2128)

* Take some newer versions of packages from `meteor update`

* Fix test with mixed sync and async

* When calling a method with a callback, but the expectations in that callback

* Docker base v1.3.0 (#2129)

* Fix missing import

* Add import, adjust Proptypes

* Update read only Quantity in top variant #1919 (#2065)

* Update quantity if child variants exist

* Change method not to add inentory Quantity when undefined

* Add default value for inventoryQuantinty

* Fixing non-reactivity of updating quantity field

* missing word added to Readme

* Fix linting error (#2140)

* 1994 Console Dropzone Warnings (#2138)

* upgrade react-dropzone to latest version

* upgrade react-dropzone to latest version

* Add npm-shrinkwrap.json

Pinned react, node mailer, griddle
aaronjudd pushed a commit that referenced this pull request May 17, 2017
* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Using publish-counts to record count of orders in order tabs

* Add alert and checkout message when item quantities have been adjusted

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Update errors to include when cart is already full

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Actually deny when out of stock

* Fix 'Show More' button functionality

* Add more descriptive error messages

* Using publish-counts to record count of orders in order tabs

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Fix 'Show More' button functionality

* Fix console error on Quantity

* Fix PR arising issue on quantity

* Using reactiveDict to store order limits

* Using camelcase for naming

* Passing filter to PaginatedOrders subscription for query builder in publish

* Publishing order counts using Mongo aggregate pipeline

* Clean up a few edge cases

* Add i18n translations

* Remove file changes different from development

* Turns out I don't need this publication; it doesn't work well anyway because it doesn't return a Mongo cursor

* Remove all references to addressbook.js

* Set custom layout to override based on priority field (#2023)

* Set Custom layout to override based on priority field

* Update existing priority field to use new default

* Migrate existing priority fields

* Fix audience schema to be array of Strings

* Check before updating during migration

* Add down migration and refactor

* Add reaction packages with layouts to migrate

* Method to aggregate order counts

* fix createDefaultAdminUser behavior with users in the system

* Resolve cart addition issue (#2048)

* Calling aggregate function in React container

* Rewriting aggregate method to use wrapAsync

* Returning Toplevel products as per scroll limit for non admin users fixes #2029 (#2063)

* Refactor calling aggregate function in React container

* Removing unnecessary order subscriptions in order template

* Removing unnecessary order Counts.publish from Orders publication

* [WIP] Broken Formatting for Non-USD currencies (#2062)

* fix nonUSD currencies formatting error

* add proper formatting for tax, discount and shipping fields

* Set order count to 0 if there are no orders in the database

* Remove unnecessary parameter to order/count

* Changes to order template:
Increasing order limit variables and increment value: using order count to render 'Show More' button

* Using publish-counts to display order counts

* Removing unnecessary orders/count method

* Adding i18n on Show More button

* Adding optional check on filter in PaginatedOrders publication

* Sending subscription limit as props to React component

* Don't subscribe to all media (#2073)

* Don't subscribe to all media

- Publish brand assets globally in media publication
- Publish product media in the `Products` and `Product` publications
- Limit media to only published products

* De-duplicate fetch product media functionality

Ensure permissions and workflows are checked when fetching the media.

* Update logic of if / else inclusion / exclusion by workflow

* Fix endless spinner issue

* Add requirements to readme

Adds link to requirements docs above installation instructions

* Move requirements below installation

* Remove isHidden check from core startup b/c blocking safari - fixes #2088

* Request versions (reaction -v) output in issue template (#2087)

* Fetch all Shippo carriers (#2078)

* Init second request on after next url returned

* Refactor to fetch carriers recursively from api

* Fix transliteration package to 1.5.2 which doesn’t leak ES6 into bundle

* Fix issue #2026 changed price not displayed for prod on grid page (#2064)

* Fix issue #2016 changed price not displayed for prod on grid page

* Add getVariantQuantity function to ProductRevision

* Convert text field to select field for countries (#2082)

* [WIP] #2070 Fix PDP Url Path For Grid Settings (#2094)

* fix pdp url path for grid settings

* remove commented code

* Remove legacy PDP (#2097)

* Remove revision conditional

* Remove templates

* Set total quantity as actual sum of quantity

* Don't break out order items

* set cartItemId to just _id since they are the same now

* Fix unrelated error with missing import

* Create shipping record

* Don't use cartItemId

* Group lineItems by _id rather than cartItemId

* Use _id rather than cartItemId. Use sum of quantities rather than length

* Restore check for empty items array to fix test

* Change cartItemId to _id

* 2067 Improper Product Title Wrap (#2108)

* fix improper word wrap in product grid

* fix improper product title wrap in firefox

* Fix Avalara document id (#2114)

* Don't pass in a cartID, pass in orderId for SalesInvoice

* Don't try to parse lines unless we know we have it. No lines, no tax.

* Use order.items to display line items

* Update core.js

Changed "admin" to "owner", which is the default user we're really checking for.

* If cartItemId exists from legacy orders, then use those

* Don't create default admin user when running in app test mode

* Fix "Set Custom Value" on Avalara Usage Type (#2107)

* Get correct id value

* Prevent autoform from removing old values

* Roll back. Autoform still resetting to old values

* Prevent autoform from overriding custom val

* show input field for custom; pre-fill with existing custom val

* Adjust comment

* Adjust comment

* Update form reset

* Refactor subscription

* Fixes #2116 failure to send email (#2118)

* Fix parens that were out of place in wrapAsync of Email.verifyConfig

* Revert the wrapAsync function - I didn’t understand how it worked and it wasn’t the core issue

* Don’t set secure to true for port 587

http://stackoverflow.com/a/22468122/1179341 pointed me in the right direction

* Fix missing import

* Add import, adjust Proptypes

* Update read only Quantity in top variant #1919 (#2065)

* Update quantity if child variants exist

* Change method not to add inentory Quantity when undefined

* Add default value for inventoryQuantinty

* Fixing non-reactivity of updating quantity field

* 1994 Console Dropzone Warnings (#2138)

* upgrade react-dropzone to latest version

* upgrade react-dropzone to latest version

* Update Summary Card for Order (#2105)

* order summary in react

* Add data to container for order details

* Get badge onto display and container

* Remove unused code clean up UI

* Rearrange fields to match design

* Change id to order id

* Remove gap at the top

* Add printableLabels

* Add address 2 if exists to ordersummary

* Remove all template code move everything into container

* Fix weird capture spinning state

* Add to Cart Alert Behavior (#2076)

* typo fix

* Fix Cart Alert Behavior

implement re-appearance of alert when add-to-cart is clicked rapidly

Resolves 1445

* migrate cartSubtotals template to react

* remove unused imports

* remove commented code

* migrate cartPanel template to react

* fix linting issue

* migrate cartItems template to React

* finish migrating cartDrawer and checkout popup to React

* remove debugging code

* fix linting issues

* add spinner to checkout alert

* fix linting issues

* update quantity in text on rapid clicks

* refactor cartItem component

* remove unused props

* remove jsx code from container

* implement changes from review

* refactor container method

* fix error in checkout and weird shipping display in cartDrawer

* fix cartItem title

* fadeOut remove-from-cart icon before product is removed from cart

* increase spinner size

* fix spacing and swiper issue

* escape single quote

* replace single quote with HTML entity

* [WIP] 2137 Specify Shippo Version (#2146)

* specify shippo api version in request header

* specify shippo api version in request header

* fix currency formatting in invoice (#2147)

* language dropdown updates (#2148)

* rework allOn / allOff language toggle

kill the ability to “turn off” default language

* files no longer used

new files inside the header folder

* add check to hide languages when less than 2 enabled

* update settings panel to never allow default currency to be disabled

* add check to only show dropdown if more than 1 currency is enabled

* fix dark-gray background on notification hover state (#2163)

* Cancel Order (#2022)

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Detail on invoices captured

* Add roll over list capability

* Add single invoice render

* Add roll down list not quantity based

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Detail on invoices captured

* Add roll over list capability

* Add single invoice render

* Add roll down list not quantity based

* Display unique items only

* Add quantities to line items

* Remove unnecessary parts of the view

* Seperate components for roll up lists and line items

* Add cancel capability

* Clean up UI

* Add item functions

* Fix Sidebar Context (#1932)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Remove Inventory subscription that is not in use (#1951)

* Get package data by shopId as well as package name (#1949)

* Add capture payments capability

* Add refunds fields

* Seperate concerns in invoice component

* Clean up invoice code

* Refactorline items

* Updated i18n settings panel (#1947)

* Updated i18n settings panel

- added new package for i18n settings
- converted to react
- added currency list
- added ability to save open state to SettingsCard to user preferences
- added ability to pluck fields in form component to enable concise
forms

* Update currency lists in admin

- Only show enabled currencies in dropdown
- Do not sure updatedAt field

* Added ability to toggle all on or all off for languages and currencies

* Removed unused code

* Updated colors for card toolbar

* fix props to show correct attribute

* fixes z-index issue on select container

* fix language props

* fix prop to show enabled languages only

* Avalara Tax Compliance (#1870)

* Save company object from Avalara API

* Load `appVersion` from package,json at startup. Create global `getAppVersion`

* create avaGet function to pass in extra header info. Add getTaxCodes function

* Extend plugin to also provide tax codes

* Add Test connection option in Avalara admin dashboard

* Send taxCode along with cart/orders

* Capture full tax detail in "taxes" field

* Update Test Credentials to use companyCode API

* Add input field for shipping tax code

* Add provides: taxCodes API to taxcloud

* add itemCode to cart/order payload

* use item id as line number. Pass in correct productId

* Pass in shipping as additional non-taxable (based on taxcode) item

* allow avaPost/avaGet to be used asynchronously

* Add setting to turn off tax calculation separately from disabling the module

* Add the rest of the fields to the form (except validation countries)

* Use correct UID and correct URL for getTaxCode

* Add setup for address validation by country

* Don't commit documents when commit is turned off. Eliminate unneeded functions

* Eliminate async versions of avaGet/avaPost. These should never be called by external module

* Add defaults for new configuration settings. Make shippingTaxCode required

* Make get/post methods use timeout, do some logging.

* Don't do address validation when package is disabled, even when addressvalidation is enabled

* Enable addressValidation by default

* Enable addressValidation by default

* Fix date parameter

* Merge. Fix conflicts.

* Modify auth arg for test credentials setup

* Extend timeout during test credentials call

* Limit address validation country options to US and CA

* Fix returned object for non-validated addresses

* Log Avalara details to custom Avalogger

* Set new defaults

* Add tax settings to account profile page

* Update account find for taxsettings to subscribe

* Only log if logging is enabled

* Write out Avalara requests to Logs collection via Bunyan logger

* Add log retention duration setting

* Add jobs to cleanup logs older than configured setting

* Add logs subscription that totally doesn't work

* Add logs publication

* Get logs and pass into Template

* Add Log-specific wrapper for Griddle

* Show individual log records in detail form

* Refine grid and detail results

* Populate entity codes and plug into taxCalc

* Use new field names confirmed by AvaTax

* Add taxSettings to recordOrder

* Update entity code field key

* removed excess panel wrapper around griddle table

* Add translations

* Show tax settings only if avalara enabled

* Fix import order.

* Setup error handling on Avalara methods

* Add dimensions/tax code to PDP (#1931)

* Edit product's schema file to include product dimensions

* Add product dimensions in variant form

* Edit product's schema and product admin form to include country of origin

* Edit product's schema and product admin form to include tax description

* Edit product's schema and product variant form to include origin country (yet to pre-populate from product's origin country)

* Edit variant form to include list of tax codes

* Refactor listTaxCodes method

* Refactor listTaxCodes method to use template state instead of sessions

* Refactor listTaxCodes method to use template state instead of sessions - template state now works

* Edit taxCodes schema to include more descriptive fields

* Include server method to save tax codes to TaxCodes collection

* (First attempt) saving taxcodes to database

* Successfully fetching taxcodes from database

* Add error block in fetching from db method

* change value of taxcode being saved in product details

* Adding select2 package

* Using select2 to display tax codes in nicer looking select box

* Correcting import order

* Editing required fields in product schema

* Using plain select field to display tax codes

* Remove tax code label; add select2 call in onRendered function instead of onCreated

* Displaying default tax code as selected in select box

* Removing unused meteor package; correcting import order

* Throwing more descriptive meteor error on insertTaxCodes method

* Display simple input box if tax provider is not enabled

* Correct the way we test for validation on address2

* Remove extra panel divs

* Add account ID to account management screen

* Adjust log details for when there is no document type

* Rename files to match style guide

* Use individual taxSettings form each account

* Add check to prevent populating duplicates

* Fix reference to accountschema

* Fix form update to corresponding accounts

* Add unique tax setting by customer to Avalara payload

* Fix exception error on geoCoder call

* Only pass in regions when it's a "country with regions"

* Revert "Only pass in regions when it's a "country with regions""

This reverts commit b809085.

* Create a refundReference which is cartId + date

* Ignore line items are not marked taxable

* Move taxDescription down to the variant level and pass if exists

* Move tax settings form into manage sidebar

* Fix tax settings saving bug

* Renamed files to fit style guide

* Don't allow a wide-open Account publication

* Remove unnecessary subscription

* Don't call API if entity codes is already populated

* Simplify logic for returning no results

* Don't select a tax rate but a tax code

* Rename function

* Properly set Avalara countryList defaultValues

* Eliminate extra slash

* Eliminate all extra slashes

* Check to ensure data is returned from API

* Also log errors in Avalogger. Correctly filter for taxable items.

* Require shopId

* linting fixes

* Add label to plain select. Rename method

* JSDoc linting

* Remove unused import

* Remove unused import

* Linting

* Check configuration and throw meaningful errors if not configured properly

* Add level to log so we can filter for errors

* Tweak HTML and styling in settings panel

* Fix i18n and timeout on testCredential

* Log error with error log level

* Moving select2 under community packages

* Adding error checks to taxcodes method

* Skip config check when testing credentials

* Trigger form validation before testcredentials

* Use native methods for assign and each

* Handle error on populating Avalara entity codes

* Add i18n for custom label

* Move i18n entry to appropriate module

* Move exemption settings into avalara module

* Implement i18n for missing fields in PDP

* Fix CircleCI failed tests

* Fix CircleCI failed tests

* Revert "Fix CircleCI failed tests"

This reverts commit 3b238a8.

* Revert "Fix CircleCI failed tests"

This reverts commit 66f0f78.

* Removing empty selector per CR

* Use import rather than fs to get package.json

* Change per CR

* Restructure Class syntax per CR

* Put back "Custom Packages" header

* Add TODO

* Changing default timeout to 3000 ms

* Correct error name and make error message more specific

* - updated Accounts publication name

- Update Accounts.single to UserAccount

* Fix: Dashboard panel keeps re-opening during checkout (#1956)

* Show sidebar only if shipping is not configured

* Refactor: Show sidebar only if shipping is not configured

* Fix to show sidebar only if payment is not configured

* localize prices in emails (#1957)

* add GetShopCurrency helper

* update cart currency when user changes currency

* update schema to include currency in cart / order

* add userCurrency and exchangeRate to carts orders

* update email templates to display formatted price

* update user emails to use user currency

* Use select box of countries rather than text field for "Origin Country" (#1967)

* Fix 404 when adding handle and then editing a variant before publishing.

* Fixed misspelling in comment

* Remove z-index from dropdown as it creates more issues than it solves

* Moved ColumnData component to its own file. (#1972)

* Prevent hiding of nested tags on mobile (#1971)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Add presentational aspect for invoice

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Add state to the invoice view

* Detail on invoices captured

* Detail on invoices captured

* Add roll over list capability

* Add roll over list capability

* Add single invoice render

* Add single invoice render

* Add roll down list not quantity based

* Display unique items only

* Add quantities to line items

* Remove unnecessary parts of the view

* Seperate components for roll up lists and line items

* Add cancel capability

* Clean up UI

* Add item functions

* Add capture payments capability

* Add refunds fields

* Seperate concerns in invoice component

* Clean up invoice code

* Refactorline items

* Add data into individual line items

* linting and minor error fixes (#1973)

* remove extra unneeded check for userId

This was causing the Logger error we were seeing

* update import order

* change way of calling userId

* fixed Shops.findOne

* updated variable name

* removed html error code from meteor error

* cart.billing should now be defined to include currency

* setting default currency if shop.currency is unavailable

* update client to match server

* lint fixes

* Avalara error handling (#1968)

* Taxcloud doesn't really support getTaxCodes yet

* Ok, calm down

* Taxcloud doesn't really provide taxCodes yet

* Log Tax code errors to Logs collection rather than throwing a Meteor.Error

* Add missing import

* Use name from namespaced provides rather than name

* Pulling tax codes from TaxCloud

* Configure saving taxcloud taxes to db and displaying them

* Move around UI components

* Move around UI components

* Add total price of line items

* Format pricing to have dollar signs

* Finalize on tax data

* add cancel meteor method for orders

* Iterate on design

* Review tax display

* finish up allowing an admin cancel an order

* add cancel order workflow

* add test for orders

* add test for start and complete cancel order methods

* finish up on cancel order

* remove swal from shippingInvoice file

* solve linting issues

* fix linting issues in orders test

* fix template issues in shippingInvoice html

* create multi-action button

* refactor code based on reviews

* update shippingInvoice.js

* remove unwanted newlines in changed files

* fix eslint errors

* fix multi-action button

* refactor code based on reviews

* refactor buttonSelect

* fix test

* fix indentation issues

* fix indentation issues

* update code based on review

* update code based on reviews

* fix cancel order test

* fix bugs

* add i18nKeyLabel to multi-function button

* turn multi-function dropdown item to button

* refactor button props fr multi-function button

* fix paypal express refund method

* add payment provider payment methods

* fix payment provider refund issues

* complete test for cancel order methods

* remove inline style from translation

* add error handling for failing refunds

* remove unneccessary lines of code

* add error handling

* fix issue based on reviews

* remove shipment panel when order has been canceled

* remove newline

* Adds Reaction method for adding roles to a default role set.

Makes it trivial to create and add roles needed by a plugin to default visitor set
Usage looks like this:
```
import { Reaction, Hooks } from "/server/api";

Hooks.Events.add("afterCoreInit", () => {
  Reaction.addRolesToDefaultRoleSet({
    allShops: true,
    roleSets: ["defaultRoles", "defaultVisitorRole", "defaultSellerRoles"],
    roles: ["stripe-connect-redirect", "test-role33"]
  });
});
```

* Tests for adding default roles

* One more test

* Run all tests instead of just `addDefaultRoles` tests

* Fix for Account Meteor Method tests that relied on Shops not being reset

* [WIP] 2115 Inconsistent Product Image of Cart Item (#2171)

* fix inconsistent cartItem image and productField console error

* fix fetching too many records from media

* fix fetching archived images to client

* fix display variant/product image for item without image

* Order methods test (#2159)

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Detail on invoices captured

* Add roll over list capability

* Add single invoice render

* Add roll down list not quantity based

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Detail on invoices captured

* Add roll over list capability

* Add single invoice render

* Add roll down list not quantity based

* Display unique items only

* Add quantities to line items

* Remove unnecessary parts of the view

* Seperate components for roll up lists and line items

* Add cancel capability

* Clean up UI

* Add item functions

* Fix Sidebar Context (#1932)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Remove Inventory subscription that is not in use (#1951)

* Get package data by shopId as well as package name (#1949)

* Add capture payments capability

* Add refunds fields

* Seperate concerns in invoice component

* Clean up invoice code

* Refactorline items

* Updated i18n settings panel (#1947)

* Updated i18n settings panel

- added new package for i18n settings
- converted to react
- added currency list
- added ability to save open state to SettingsCard to user preferences
- added ability to pluck fields in form component to enable concise
forms

* Update currency lists in admin

- Only show enabled currencies in dropdown
- Do not sure updatedAt field

* Added ability to toggle all on or all off for languages and currencies

* Removed unused code

* Updated colors for card toolbar

* fix props to show correct attribute

* fixes z-index issue on select container

* fix language props

* fix prop to show enabled languages only

* Avalara Tax Compliance (#1870)

* Save company object from Avalara API

* Load `appVersion` from package,json at startup. Create global `getAppVersion`

* create avaGet function to pass in extra header info. Add getTaxCodes function

* Extend plugin to also provide tax codes

* Add Test connection option in Avalara admin dashboard

* Send taxCode along with cart/orders

* Capture full tax detail in "taxes" field

* Update Test Credentials to use companyCode API

* Add input field for shipping tax code

* Add provides: taxCodes API to taxcloud

* add itemCode to cart/order payload

* use item id as line number. Pass in correct productId

* Pass in shipping as additional non-taxable (based on taxcode) item

* allow avaPost/avaGet to be used asynchronously

* Add setting to turn off tax calculation separately from disabling the module

* Add the rest of the fields to the form (except validation countries)

* Use correct UID and correct URL for getTaxCode

* Add setup for address validation by country

* Don't commit documents when commit is turned off. Eliminate unneeded functions

* Eliminate async versions of avaGet/avaPost. These should never be called by external module

* Add defaults for new configuration settings. Make shippingTaxCode required

* Make get/post methods use timeout, do some logging.

* Don't do address validation when package is disabled, even when addressvalidation is enabled

* Enable addressValidation by default

* Enable addressValidation by default

* Fix date parameter

* Merge. Fix conflicts.

* Modify auth arg for test credentials setup

* Extend timeout during test credentials call

* Limit address validation country options to US and CA

* Fix returned object for non-validated addresses

* Log Avalara details to custom Avalogger

* Set new defaults

* Add tax settings to account profile page

* Update account find for taxsettings to subscribe

* Only log if logging is enabled

* Write out Avalara requests to Logs collection via Bunyan logger

* Add log retention duration setting

* Add jobs to cleanup logs older than configured setting

* Add logs subscription that totally doesn't work

* Add logs publication

* Get logs and pass into Template

* Add Log-specific wrapper for Griddle

* Show individual log records in detail form

* Refine grid and detail results

* Populate entity codes and plug into taxCalc

* Use new field names confirmed by AvaTax

* Add taxSettings to recordOrder

* Update entity code field key

* removed excess panel wrapper around griddle table

* Add translations

* Show tax settings only if avalara enabled

* Fix import order.

* Setup error handling on Avalara methods

* Add dimensions/tax code to PDP (#1931)

* Edit product's schema file to include product dimensions

* Add product dimensions in variant form

* Edit product's schema and product admin form to include country of origin

* Edit product's schema and product admin form to include tax description

* Edit product's schema and product variant form to include origin country (yet to pre-populate from product's origin country)

* Edit variant form to include list of tax codes

* Refactor listTaxCodes method

* Refactor listTaxCodes method to use template state instead of sessions

* Refactor listTaxCodes method to use template state instead of sessions - template state now works

* Edit taxCodes schema to include more descriptive fields

* Include server method to save tax codes to TaxCodes collection

* (First attempt) saving taxcodes to database

* Successfully fetching taxcodes from database

* Add error block in fetching from db method

* change value of taxcode being saved in product details

* Adding select2 package

* Using select2 to display tax codes in nicer looking select box

* Correcting import order

* Editing required fields in product schema

* Using plain select field to display tax codes

* Remove tax code label; add select2 call in onRendered function instead of onCreated

* Displaying default tax code as selected in select box

* Removing unused meteor package; correcting import order

* Throwing more descriptive meteor error on insertTaxCodes method

* Display simple input box if tax provider is not enabled

* Correct the way we test for validation on address2

* Remove extra panel divs

* Add account ID to account management screen

* Adjust log details for when there is no document type

* Rename files to match style guide

* Use individual taxSettings form each account

* Add check to prevent populating duplicates

* Fix reference to accountschema

* Fix form update to corresponding accounts

* Add unique tax setting by customer to Avalara payload

* Fix exception error on geoCoder call

* Only pass in regions when it's a "country with regions"

* Revert "Only pass in regions when it's a "country with regions""

This reverts commit b809085.

* Create a refundReference which is cartId + date

* Ignore line items are not marked taxable

* Move taxDescription down to the variant level and pass if exists

* Move tax settings form into manage sidebar

* Fix tax settings saving bug

* Renamed files to fit style guide

* Don't allow a wide-open Account publication

* Remove unnecessary subscription

* Don't call API if entity codes is already populated

* Simplify logic for returning no results

* Don't select a tax rate but a tax code

* Rename function

* Properly set Avalara countryList defaultValues

* Eliminate extra slash

* Eliminate all extra slashes

* Check to ensure data is returned from API

* Also log errors in Avalogger. Correctly filter for taxable items.

* Require shopId

* linting fixes

* Add label to plain select. Rename method

* JSDoc linting

* Remove unused import

* Remove unused import

* Linting

* Check configuration and throw meaningful errors if not configured properly

* Add level to log so we can filter for errors

* Tweak HTML and styling in settings panel

* Fix i18n and timeout on testCredential

* Log error with error log level

* Moving select2 under community packages

* Adding error checks to taxcodes method

* Skip config check when testing credentials

* Trigger form validation before testcredentials

* Use native methods for assign and each

* Handle error on populating Avalara entity codes

* Add i18n for custom label

* Move i18n entry to appropriate module

* Move exemption settings into avalara module

* Implement i18n for missing fields in PDP

* Fix CircleCI failed tests

* Fix CircleCI failed tests

* Revert "Fix CircleCI failed tests"

This reverts commit 3b238a8.

* Revert "Fix CircleCI failed tests"

This reverts commit 66f0f78.

* Removing empty selector per CR

* Use import rather than fs to get package.json

* Change per CR

* Restructure Class syntax per CR

* Put back "Custom Packages" header

* Add TODO

* Changing default timeout to 3000 ms

* Correct error name and make error message more specific

* - updated Accounts publication name

- Update Accounts.single to UserAccount

* Fix: Dashboard panel keeps re-opening during checkout (#1956)

* Show sidebar only if shipping is not configured

* Refactor: Show sidebar only if shipping is not configured

* Fix to show sidebar only if payment is not configured

* localize prices in emails (#1957)

* add GetShopCurrency helper

* update cart currency when user changes currency

* update schema to include currency in cart / order

* add userCurrency and exchangeRate to carts orders

* update email templates to display formatted price

* update user emails to use user currency

* Use select box of countries rather than text field for "Origin Country" (#1967)

* Fix 404 when adding handle and then editing a variant before publishing.

* Fixed misspelling in comment

* Remove z-index from dropdown as it creates more issues than it solves

* Moved ColumnData component to its own file. (#1972)

* Prevent hiding of nested tags on mobile (#1971)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Add presentational aspect for invoice

* Add presentational aspect for invoice

* Add presentational view for invoice

* Add presentational view for invoice

* Add state to the invoice view

* Add state to the invoice view

* Detail on invoices captured

* Detail on invoices captured

* Add roll over list capability

* Add roll over list capability

* Add single invoice render

* Add single invoice render

* Add roll down list not quantity based

* Display unique items only

* Add quantities to line items

* Remove unnecessary parts of the view

* Seperate components for roll up lists and line items

* Add cancel capability

* Clean up UI

* Add item functions

* Add capture payments capability

* Add refunds fields

* Seperate concerns in invoice component

* Clean up invoice code

* Refactorline items

* Add data into individual line items

* linting and minor error fixes (#1973)

* remove extra unneeded check for userId

This was causing the Logger error we were seeing

* update import order

* change way of calling userId

* fixed Shops.findOne

* updated variable name

* removed html error code from meteor error

* cart.billing should now be defined to include currency

* setting default currency if shop.currency is unavailable

* update client to match server

* lint fixes

* Avalara error handling (#1968)

* Taxcloud doesn't really support getTaxCodes yet

* Ok, calm down

* Taxcloud doesn't really provide taxCodes yet

* Log Tax code errors to Logs collection rather than throwing a Meteor.Error

* Add missing import

* Use name from namespaced provides rather than name

* Pulling tax codes from TaxCloud

* Configure saving taxcloud taxes to db and displaying them

* Move around UI components

* Move around UI components

* Add total price of line items

* Format pricing to have dollar signs

* Finalize on tax data

* add cancel meteor method for orders

* Iterate on design

* Review tax display

* finish up allowing an admin cancel an order

* add cancel order workflow

* add test for orders

* add test for start and complete cancel order methods

* finish up on cancel order

* remove swal from shippingInvoice file

* solve linting issues

* fix linting issues in orders test

* fix template issues in shippingInvoice html

* create multi-action button

* refactor code based on reviews

* update shippingInvoice.js

* remove unwanted newlines in changed files

* fix eslint errors

* fix multi-action button

* refactor code based on reviews

* refactor buttonSelect

* fix test

* fix indentation issues

* fix indentation issues

* update code based on review

* update code based on reviews

* fix cancel order test

* fix bugs

* add i18nKeyLabel to multi-function button

* turn multi-function dropdown item to button

* refactor button props fr multi-function button

* test order methods

* fix paypal express refund method

* add payment provider payment methods

* fix payment provider refund issues

* complete test for cancel order methods

* remove inline style from translation

* add error handling for failing refunds

* remove unneccessary lines of code

* integration test for orders/approvePayment

* test for orders/shipmentDelivered

* add error handling

* write test for sendNotifications

* write more test

* finish writing test for order methods

* update changes based on reviews

* fix typo

* PDP Cleanup - Basic Details Card, Tax Card & Inventory Card (#2086)

* Rewrite product variantForm to render React component

* React component/container for product variantForm

* Adding checkboxes, divider, and changing i18n

* Refine PDP variant form UI to be up to standard

* Using Switch component instead of native checkbox

* Use settings card to wrap taxable and inventory tracking sections

* Displaying data via props(to be refined)

* Rendering tax code field depenging on enabled tax code provider

* Populating taxCode dropdown with data from db

* Populating taxCode collection with taxCodes on successful test credentials

* Remove unnecessary Meteor method

* Rename 'selectedVariant' to 'variant'

* Disabling fields based on child variants

* Passing variant object down from Template.currentData

* Activate restore/remove and clone variant buttons (to be refined)

* Subscribing to TaxCodes publication for display

* Removing alternate Blaze function

* Handle select and textfield input edit

* Handle switch toggle

* Updating state of select box

* onChange for regular input fields

* Removing alternate Blaze function

* Removing alternate Blaze functions

* Render archive label if variant is deleted

* Partly implement update quantity based on child variants

* Remove unnecessary input callback methods

* Make restore button change reactively to discard when isDeleted is false

* Make discard button change reactively to restore when isDeleted is true

* Remove unnecessary expandCard methods

* Fix uncontrolled input warning being thrown in browser console from React

* Make tax code field editable when no tax provider is enabled

* Revert taxable and inventory tracking back to defaulting to true

* Fix open/close of cards (to be refined)

* Attempting validation

* Adding style and disabled to textfield component

* Fixing opening of side panel when variant is clicked

* Fix accidental toggle of allow backorder switch

* update the way address data is provided (#2208)

* update the way address data is provided

* update const

* Change `profile` variable name to `profileAddress` to be more descriptive

* And `profileShippingAddress` is even better

* METEOR 1.4.4.2 (#2206)

* METEOR 1.4.4.2

* update Docker base to v1.3.1

* Jobs patch

As found by @jshimko

* Remove unneeded jobs import

* Added Kuwait, Saudi Arabia and Qatar currencies (#2204)

* added kuweit, saudi arabia and qatar currencies

* typos

* fix email log panel closing when email is sent (#2205)

* add order id to completed screen (#2202)

* Fix Email Notification During Order Refund (#2200)

* fix email notification when issuing a refund more than the total

* fix refunding loading

* add i18n

* 1638 Completed Order Logged Out State (#2201)

* add signIn page for completed order url when user user is logged out

* remove commented out code

* fix display notFound for orders that doesn't belong to user

* fix style nitpick

* implement review

* fix flashing `notFound` page before order completed

* Add in missing line break

* fix create product should flip into edit mode (#2221)

* Toggle Variant Visibility when Ancestor Product Visibility is Toggled (#2222)

* fix issue

* add fix to product grid settings

* Fix missing shop (#2224)

* make sure default shop fixture data is loaded before anything else happens

* fix inconsistent logging of whether register.json was found

* fix error logger syntax

* fix a few more logger syntax instances

* Add mute for known package dependencies

- Holding on a full React update
- Latest transliteration doesn’t load correctly
- nodemailer, griddle have upgrade blockers

* Add mute for known package dependencies

Missed a react dependency.

* swap unicode with missing semi-colon for regular apostrophe (#2223)

* swap unicode with missing semi-colon for regular apostrophe

* updated to use <Translation> instead of i18n-data

Also updated to spit out better / valid HTML.

- Changed tag from <h1> (“Empty Cart” shouldn’t be H1) to <p>, and also
removed the embedded <p> from inside the H1.

* made social share buttons on PDP ADA compliant (#2196)

* Fix permissions for items shown in admin dashboard (#2145)

* Initial test of filtering pkgs

* Filter showing packages by permissions

* Resolve issue with hasAccess check on registry items

* Comment

* Comment edit

* Call packages coll without filter

* Move audience addition to ReactionApps

* Better comment

* Check not needed again.Apps come based on access level

* space fix

* Test: Permissions on toolbar component

* hasProduct access on toolbar

* Fix data

* Use createProduct as filter

* Refactor toolbar permission check

* Improve Comment

* Add missing perms in pub

* remove comment

* Add comment on filter line

* Pin vsivsi:job-collection meteor package to 1.4.0 (#2228)

* React Router (#2123)

* Initial push for React Router conversion

* Implement more global router functions

- Added `Router.getQueryParam`
- Added `Router.isActiveClassName`
- Added shop prefix for routes
- Added blaze event for brand link to use `Router.go`
- Added `query-parse` nom module to parse query strings
- Added route to currentRoute on route change

* Route rendering

- Router initialize
- Rewrite reaction layout to better handle layout generation
- Add `App` component as router base component
- Add Router.replace function for push state replace

* Move rest of router from client dir, into router package

* Use Router.go for tagLink

* Fixes issue with browserRouter router initializing before router core
is ready.

* Fixed route resolution for to exact matches

* Updated dependencies and shrink-wrap

* Not found and unauthorized routes and redirects

* Rename admin template to coreLayout

- use layout name to get proper layout

* Fix broken import

* Fix redirect url for PayPal pay flow express

Double slash in url causes no route to be matched for react router.
Added new helper method that wraps Meteor.absoluteUrl() and fetches the
shop prefix without a leading slash.

* Enable onEnter and legacy enter hooks

* Added exit hooks and improved hook handling logic

Re-implement metadata hook

* Show package settings shortcuts only if requested

* Added Router.watchPathChange()

* Remove unused function

* Added router go for grid item click event

* Fix eslint issues

* Added router go for cart items

* Fix router context for hooks

* Added special handling for print layout

* Scrolling for content area as admin

* Fix router reload when auth state changes

* Fix lint issues

* Fix lint issues

* Fix blank pdf view

* Prevent route change when previous and next routes match.

-Remove reactivity from `Router.current()` to better align with flow
router api.
- Add reactive dependencies query and url param functions.

* Fixed reference for getShopName()

* Fixing broken blaze layout

- Extend the react-in-blaze component, and rename conflicting
`template` prop to `blazeTemplate` to avoid a naming collision with our
layouts.
- Added check for foundLayout, verify its defined before trying to
access
- Added support for blaze based layouts, if a react layout cannot be
found

* Removed unused packages

* Adjust width of container to alleviate some scrolling issues

* Higher zindex for cart slide out

* Fix getSlug reference

* Fixes issue with incorrectly displaying unauthorized template

* LingoHub based on development (#2218)

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Brent Hoover.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Brent Hoover.
Project: reaction

Made with ❤️ by https://lingohub.com

* LingoHub Update 🚀

Manual push by LingoHub User: Brent Hoover.
Project: reaction

Made with ❤️ by https://lingohub.com

* 2217 Add Product Name To Invoice (#2226)

* add product name to invoice

* add Product name to title

* Permissions Fix: Use passed in "audience" param in ReactionApps (#2235)

* wip

* Use passed in audience for ReactionApps

* Remove debug

* fix display of unpublished option images (#2236)

* Restore helper to limit dropdown icons

* 1987 Panel Expander Arrow Overlapping on Dropdown (#2211)

* fix dropdown z-index

* use z-index variable

* reduce zindex-select variable value

* override `react-select` select menu z-index

* remove commented out style

* fix improper variable value alignment

* move import to main.less

* Fixes #2243 Paypal Express requiring login for guest accounts (#2255)

Adds `reaction-paypal/paypalDone` and `reaction-paypal/paypalCancel` roles to the defaultRoles and defaultVisitorRoles set

* Updated README.md

* Update version

* readme.md updates

* Removed unused code

* fix 2278 Router tables not initializing (#2279)

* fix notification dropdown links (#2280)

* update Router to adjust when shop URL is in provided data

* update notification onClick to open dashboard panel when needed

* re-add markOneAsRead

* style / small updates for release 1.2 (#2283)

* update import of Reaction

* readme updates

* import fixes

* add meteor import

* import order fix

* comment fixes

* add meteor import

* removed flow router import

* import order

* import fix

* update i18n key

* update translations

* wrap full app in translation provider
minimart added a commit to evereveofficial/reaction that referenced this pull request May 18, 2017
* changes to PDP product information display

* Release 1.1.1 (reactioncommerce#2117)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Using publish-counts to record count of orders in order tabs

* Add alert and checkout message when item quantities have been adjusted

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Update errors to include when cart is already full

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Actually deny when out of stock

* Fix 'Show More' button functionality

* Add more descriptive error messages

* Using publish-counts to record count of orders in order tabs

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Fix 'Show More' button functionality

* Fix console error on Quantity

* Fix PR arising issue on quantity

* Using reactiveDict to store order limits

* Using camelcase for naming

* Passing filter to PaginatedOrders subscription for query builder in publish

* Publishing order counts using Mongo aggregate pipeline

* Clean up a few edge cases

* Add i18n translations

* Remove file changes different from development

* Turns out I don't need this publication; it doesn't work well anyway because it doesn't return a Mongo cursor

* Remove all references to addressbook.js

* Set custom layout to override based on priority field (reactioncommerce#2023)

* Set Custom layout to override based on priority field

* Update existing priority field to use new default

* Migrate existing priority fields

* Fix audience schema to be array of Strings

* Check before updating during migration

* Add down migration and refactor

* Add reaction packages with layouts to migrate

* Method to aggregate order counts

* fix createDefaultAdminUser behavior with users in the system

* Resolve cart addition issue (reactioncommerce#2048)

* Calling aggregate function in React container

* Rewriting aggregate method to use wrapAsync

* Returning Toplevel products as per scroll limit for non admin users fixes reactioncommerce#2029 (reactioncommerce#2063)

* Refactor calling aggregate function in React container

* Removing unnecessary order subscriptions in order template

* Removing unnecessary order Counts.publish from Orders publication

* [WIP] Broken Formatting for Non-USD currencies (reactioncommerce#2062)

* fix nonUSD currencies formatting error

* add proper formatting for tax, discount and shipping fields

* Set order count to 0 if there are no orders in the database

* Remove unnecessary parameter to order/count

* Changes to order template:
Increasing order limit variables and increment value: using order count to render 'Show More' button

* Using publish-counts to display order counts

* Removing unnecessary orders/count method

* Adding i18n on Show More button

* Adding optional check on filter in PaginatedOrders publication

* Sending subscription limit as props to React component

* Don't subscribe to all media (reactioncommerce#2073)

* Don't subscribe to all media

- Publish brand assets globally in media publication
- Publish product media in the `Products` and `Product` publications
- Limit media to only published products

* De-duplicate fetch product media functionality

Ensure permissions and workflows are checked when fetching the media.

* Update logic of if / else inclusion / exclusion by workflow

* Fix endless spinner issue

* Add requirements to readme

Adds link to requirements docs above installation instructions

* Move requirements below installation

* Remove isHidden check from core startup b/c blocking safari - fixes reactioncommerce#2088

* Request versions (reaction -v) output in issue template (reactioncommerce#2087)

* Fetch all Shippo carriers (reactioncommerce#2078)

* Init second request on after next url returned

* Refactor to fetch carriers recursively from api

* Fix transliteration package to 1.5.2 which doesn’t leak ES6 into bundle

* Fix issue reactioncommerce#2026 changed price not displayed for prod on grid page (reactioncommerce#2064)

* Fix issue reactioncommerce#2016 changed price not displayed for prod on grid page

* Add getVariantQuantity function to ProductRevision

* Convert text field to select field for countries (reactioncommerce#2082)

* [WIP] reactioncommerce#2070 Fix PDP Url Path For Grid Settings (reactioncommerce#2094)

* fix pdp url path for grid settings

* remove commented code

* Remove legacy PDP (reactioncommerce#2097)

* Remove revision conditional

* Remove templates

* Set total quantity as actual sum of quantity

* Don't break out order items

* set cartItemId to just _id since they are the same now

* Fix unrelated error with missing import

* Create shipping record

* Don't use cartItemId

* Group lineItems by _id rather than cartItemId

* Use _id rather than cartItemId. Use sum of quantities rather than length

* Restore check for empty items array to fix test

* Change cartItemId to _id

* 2067 Improper Product Title Wrap (reactioncommerce#2108)

* fix improper word wrap in product grid

* fix improper product title wrap in firefox

* Fix Avalara document id (reactioncommerce#2114)

* Don't pass in a cartID, pass in orderId for SalesInvoice

* Don't try to parse lines unless we know we have it. No lines, no tax.

* Use order.items to display line items

* Update core.js

Changed "admin" to "owner", which is the default user we're really checking for.

* Meteor 1.4.4.1

* Release 1.1.1

* If cartItemId exists from legacy orders, then use those

* Don't create default admin user when running in app test mode

* Fix "Set Custom Value" on Avalara Usage Type (reactioncommerce#2107)

* Get correct id value

* Prevent autoform from removing old values

* Roll back. Autoform still resetting to old values

* Prevent autoform from overriding custom val

* show input field for custom; pre-fill with existing custom val

* Adjust comment

* Adjust comment

* Update form reset

* Refactor subscription

* Fixes reactioncommerce#2116 failure to send email (reactioncommerce#2118)

* Fix parens that were out of place in wrapAsync of Email.verifyConfig

* Revert the wrapAsync function - I didn’t understand how it worked and it wasn’t the core issue

* Don’t set secure to true for port 587

http://stackoverflow.com/a/22468122/1179341 pointed me in the right direction

* Fix async tests (reactioncommerce#2128)

* Take some newer versions of packages from `meteor update`

* Fix test with mixed sync and async

* When calling a method with a callback, but the expectations in that callback

* Docker base v1.3.0 (reactioncommerce#2129)

* Fix missing import

* Add import, adjust Proptypes

* Update read only Quantity in top variant reactioncommerce#1919 (reactioncommerce#2065)

* Update quantity if child variants exist

* Change method not to add inentory Quantity when undefined

* Add default value for inventoryQuantinty

* Fixing non-reactivity of updating quantity field

* missing word added to Readme

* Fix linting error (reactioncommerce#2140)

* 1994 Console Dropzone Warnings (reactioncommerce#2138)

* upgrade react-dropzone to latest version

* upgrade react-dropzone to latest version

* Add npm-shrinkwrap.json

Pinned react, node mailer, griddle

* added functional crumbnav to pdp, pointed imports/plugins/custom to new development with merged crumbnav branch (#12)

* updated submodules

* updated eePlugins and ReactionPublicCustomFolder (both submodules)

* Ecomm 305 (#15)

* ecomm-305 in plugins folder

* ecomm-305 in plugins folder

* submodule update

* including image placeholder for Wear it with in public custom folder

* submodule update

* submodule updates

* merged PR #20 to development (#21)

* submodule update

* created submodule for private/settings/reaction.json

* submodule changes

* submodule update

* added style clean up PR (#26)

* updated eePlugins and ReactionPublicCustomFolder

* submodule updates

* submodule updates

* updating submodules.. it has been a while I think

* publiccustomfolder updates

* update submodules

* update submodules

* submodule update

* updated submodules (#33)
minimart added a commit to evereveofficial/reaction that referenced this pull request May 30, 2017
* changes to PDP product information display

* Release 1.1.1 (reactioncommerce#2117)

* Show Sidebar shipping in checkout

* Set actionView after payment checkout step

* Hide sidebar on entry to profile page

* Using publish-counts to record count of orders in order tabs

* Add alert and checkout message when item quantities have been adjusted

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Update errors to include when cart is already full

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Actually deny when out of stock

* Fix 'Show More' button functionality

* Add more descriptive error messages

* Using publish-counts to record count of orders in order tabs

* Code cleanup

* Add 'Show More' button for pagination (to be refined)

* Removing unnecessary subscription.ready from composer function

* Modify orders cursor to use state instead; identify filter from 'show more' button

* Fix 'Show More' button functionality

* Fix console error on Quantity

* Fix PR arising issue on quantity

* Using reactiveDict to store order limits

* Using camelcase for naming

* Passing filter to PaginatedOrders subscription for query builder in publish

* Publishing order counts using Mongo aggregate pipeline

* Clean up a few edge cases

* Add i18n translations

* Remove file changes different from development

* Turns out I don't need this publication; it doesn't work well anyway because it doesn't return a Mongo cursor

* Remove all references to addressbook.js

* Set custom layout to override based on priority field (reactioncommerce#2023)

* Set Custom layout to override based on priority field

* Update existing priority field to use new default

* Migrate existing priority fields

* Fix audience schema to be array of Strings

* Check before updating during migration

* Add down migration and refactor

* Add reaction packages with layouts to migrate

* Method to aggregate order counts

* fix createDefaultAdminUser behavior with users in the system

* Resolve cart addition issue (reactioncommerce#2048)

* Calling aggregate function in React container

* Rewriting aggregate method to use wrapAsync

* Returning Toplevel products as per scroll limit for non admin users fixes reactioncommerce#2029 (reactioncommerce#2063)

* Refactor calling aggregate function in React container

* Removing unnecessary order subscriptions in order template

* Removing unnecessary order Counts.publish from Orders publication

* [WIP] Broken Formatting for Non-USD currencies (reactioncommerce#2062)

* fix nonUSD currencies formatting error

* add proper formatting for tax, discount and shipping fields

* Set order count to 0 if there are no orders in the database

* Remove unnecessary parameter to order/count

* Changes to order template:
Increasing order limit variables and increment value: using order count to render 'Show More' button

* Using publish-counts to display order counts

* Removing unnecessary orders/count method

* Adding i18n on Show More button

* Adding optional check on filter in PaginatedOrders publication

* Sending subscription limit as props to React component

* Don't subscribe to all media (reactioncommerce#2073)

* Don't subscribe to all media

- Publish brand assets globally in media publication
- Publish product media in the `Products` and `Product` publications
- Limit media to only published products

* De-duplicate fetch product media functionality

Ensure permissions and workflows are checked when fetching the media.

* Update logic of if / else inclusion / exclusion by workflow

* Fix endless spinner issue

* Add requirements to readme

Adds link to requirements docs above installation instructions

* Move requirements below installation

* Remove isHidden check from core startup b/c blocking safari - fixes reactioncommerce#2088

* Request versions (reaction -v) output in issue template (reactioncommerce#2087)

* Fetch all Shippo carriers (reactioncommerce#2078)

* Init second request on after next url returned

* Refactor to fetch carriers recursively from api

* Fix transliteration package to 1.5.2 which doesn’t leak ES6 into bundle

* Fix issue reactioncommerce#2026 changed price not displayed for prod on grid page (reactioncommerce#2064)

* Fix issue reactioncommerce#2016 changed price not displayed for prod on grid page

* Add getVariantQuantity function to ProductRevision

* Convert text field to select field for countries (reactioncommerce#2082)

* [WIP] reactioncommerce#2070 Fix PDP Url Path For Grid Settings (reactioncommerce#2094)

* fix pdp url path for grid settings

* remove commented code

* Remove legacy PDP (reactioncommerce#2097)

* Remove revision conditional

* Remove templates

* Set total quantity as actual sum of quantity

* Don't break out order items

* set cartItemId to just _id since they are the same now

* Fix unrelated error with missing import

* Create shipping record

* Don't use cartItemId

* Group lineItems by _id rather than cartItemId

* Use _id rather than cartItemId. Use sum of quantities rather than length

* Restore check for empty items array to fix test

* Change cartItemId to _id

* 2067 Improper Product Title Wrap (reactioncommerce#2108)

* fix improper word wrap in product grid

* fix improper product title wrap in firefox

* Fix Avalara document id (reactioncommerce#2114)

* Don't pass in a cartID, pass in orderId for SalesInvoice

* Don't try to parse lines unless we know we have it. No lines, no tax.

* Use order.items to display line items

* Update core.js

Changed "admin" to "owner", which is the default user we're really checking for.

* Meteor 1.4.4.1

* Release 1.1.1

* If cartItemId exists from legacy orders, then use those

* Don't create default admin user when running in app test mode

* Fix "Set Custom Value" on Avalara Usage Type (reactioncommerce#2107)

* Get correct id value

* Prevent autoform from removing old values

* Roll back. Autoform still resetting to old values

* Prevent autoform from overriding custom val

* show input field for custom; pre-fill with existing custom val

* Adjust comment

* Adjust comment

* Update form reset

* Refactor subscription

* Fixes reactioncommerce#2116 failure to send email (reactioncommerce#2118)

* Fix parens that were out of place in wrapAsync of Email.verifyConfig

* Revert the wrapAsync function - I didn’t understand how it worked and it wasn’t the core issue

* Don’t set secure to true for port 587

http://stackoverflow.com/a/22468122/1179341 pointed me in the right direction

* Fix async tests (reactioncommerce#2128)

* Take some newer versions of packages from `meteor update`

* Fix test with mixed sync and async

* When calling a method with a callback, but the expectations in that callback

* Docker base v1.3.0 (reactioncommerce#2129)

* Fix missing import

* Add import, adjust Proptypes

* Update read only Quantity in top variant reactioncommerce#1919 (reactioncommerce#2065)

* Update quantity if child variants exist

* Change method not to add inentory Quantity when undefined

* Add default value for inventoryQuantinty

* Fixing non-reactivity of updating quantity field

* missing word added to Readme

* Fix linting error (reactioncommerce#2140)

* 1994 Console Dropzone Warnings (reactioncommerce#2138)

* upgrade react-dropzone to latest version

* upgrade react-dropzone to latest version

* Add npm-shrinkwrap.json

Pinned react, node mailer, griddle

* added functional crumbnav to pdp, pointed imports/plugins/custom to new development with merged crumbnav branch (#12)

* updated submodules

* updated eePlugins and ReactionPublicCustomFolder (both submodules)

* Ecomm 305 (#15)

* ecomm-305 in plugins folder

* ecomm-305 in plugins folder

* submodule update

* including image placeholder for Wear it with in public custom folder

* submodule update

* submodule updates

* merged PR #20 to development (#21)

* submodule update

* created submodule for private/settings/reaction.json

* submodule changes

* submodule update

* added style clean up PR (#26)

* updated eePlugins and ReactionPublicCustomFolder

* submodule updates

* submodule updates

* updating submodules.. it has been a while I think

* publiccustomfolder updates

* update submodules

* update submodules

* submodule update

* updated submodules (#33)

* changed public custom folder to new repo (#36)

* changed public custom folder to new repo

* fixing circle problems maybe.
@aaronjudd aaronjudd mentioned this pull request Jun 17, 2017
@spencern spencern mentioned this pull request Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants