-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Merge development into marketplace #2529
Conversation
private/data/Shops.json
I _swear_ this worked before, but I’m not sure what got changed and when I go back to older commits, the same issue is present. The apparent problem is that the Security.permit / Security.deny collection permission security methods are running before a users Id has been loaded. The fix here is to create a new security method `ifHasRoleForActiveShop` that moves checking `Reaction.getShopId()` to the security method instead of on the `permit` or `deny` method.
I swear this worked before, but I’m not sure what got changed and when I go back to older commits, the same issue is present. The fix here is to create a new security method @zenweasel would you check this out when you get a chance. I think it's ready to merge to marketplace now and would you review the changes in After this merges I think we should be able to get the team to start working off of the marketplace branch instead of |
* correct order action workflow change * always update selected order
@spencern What exactly did you want me to review? Ddi you want me to test it? |
@zenweasel Yeah, I should have put "to test" steps up. I was specifically hoping you could look at the new security method I added to make the active shop admin permissions work correctly for client side database ops. I'm pretty sure it's fine, but seems like the type of code that should be reviewed. |
Additionally, To test:
|
* Update Eslint * Auto-fix eslint errors
import PropTypes from "prop-types"; | ||
import { Icon } from "/imports/plugins/core/ui/client/components"; | ||
|
||
class EmailTableColumn extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably in development
but why is this called EmailTableColumn
?
If I create an account and then click "Become a seller" I get a bunch of console errors:
It repeats with can't find |
@zenweasel I'd seen those errors before but couldn't reproduce them. I'll see if I can address those now |
Testing this again with a full reset I am not seeing it and can't reproduce it either. I had done a full reset before as well so I don't know what the deal it. |
package.json
Outdated
"^meteor/aldeed:simple-schema": "<rootDir>/imports/test-utils/__mocks__/meteor/aldeed-simple-schema", | ||
"^meteor/tmeasday:publish-counts": "<rootDir>/imports/test-utils/__mocks__/meteor/aldeed-simple-schema", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is wrong. Should be tmeasday:publish-counts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is wrong in development
too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identical to dev.. https://github.com/reactioncommerce/reaction/blob/development/package.json#L144-L149
Still feels wrong though
server/api/core/core.js
Outdated
@@ -85,7 +89,7 @@ export default { | |||
}, | |||
/** | |||
* registerTemplate | |||
* registers Templates into the Templates Collection | |||
* registers Templates into the Tempaltes Collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
const packages = this.Packages; | ||
// for each shop, we're loading packages in a unique registry | ||
// Object.keys(pkgConfigs).forEach((pkgName) => { | ||
for (const packageName in packages) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if packages
is an array can you just use for..of
to iterate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably could, seems like that would be better. Could lose the guard then I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, packages is an object where the keys are the packageName, not an array.
}; | ||
|
||
// Authorized content curators fo the shop get special publication of the product | ||
// all all relevant revisions all is one package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment
@@ -271,7 +216,7 @@ Meteor.publish("Product", function (productId) { | |||
]; | |||
} | |||
|
|||
// Everyone else gets the standard, visible products and variants | |||
// Everyone else gets the standard, visibile products and variants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed from correctly spelled to incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah, wonder how that snuck in.
I expect that everything I noted is probably also on |
Merges latest
development
intomarketplace
Resolves all conflicts (a lot!)