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

(chore) #1364 rename Import to Importer #3613

Merged

Conversation

willopez
Copy link
Member

@willopez willopez commented Jan 30, 2018

Resolves #1364
Impact: breaking
Type: refactor

Issue

Rename Import module to Importer. This prevents the usage of a reserved keyword.

Solution

  1. Rename the core import at server/api/core/import.js to server/api/core/importer.js
  2. Update all usage instances in the code base.

Testing

  • Reset database
  • Start app
  • Confirm the data from the following packages wast imported correctly:
    core/layout, core/taxes,included/shipping-shippo, included/taxes-taxcloud, core/core(settings), core/temaplates.js, server/startup/load-data.js,
  • Run reaction test and confirm no tests are failing

@pmn4
Copy link
Collaborator

pmn4 commented Jan 30, 2018

lgtm

@machikoyasuda
Copy link
Contributor

machikoyasuda commented Feb 14, 2018

Once this PR is merged, please update https://docs.reactioncommerce.com/reaction-docs/master/reaction-import in the docs with this ticket: reactioncommerce/reaction-docs#491

@willopez willopez changed the base branch from master to release-1.8.0 February 21, 2018 19:37
kieckhafer
kieckhafer previously approved these changes Feb 22, 2018
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

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

Looks good.

Seeing this warning inside the tests, but all tests pass and this is not specific to this PR:

W20180222-10:42:59.216(-8)? (STDERR) (node:40145) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 152): Error: Method 'reaction/getUserId' not found [404]

@willopez willopez changed the base branch from release-1.8.0 to master February 22, 2018 23:41
@aaronjudd aaronjudd changed the base branch from master to release-1.8.2 February 27, 2018 23:51
@aaronjudd aaronjudd changed the title Refactor 1364 willopez rename import to importer (chore) #1364 rename import to importer Feb 27, 2018
@aaronjudd aaronjudd changed the title (chore) #1364 rename import to importer (chore) #1364 rename Import to Importer Feb 27, 2018
@spencern spencern changed the base branch from release-1.8.2 to master February 28, 2018 01:20
@spencern
Copy link
Contributor

@willopez I think the tests broke when I merged 1.8.2 in to this branch to get it ready to release. Let's pair on it tomorrow am and get it ready for 1.9

@willopez
Copy link
Member Author

@spencern sure, just ping me.

Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

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

Fixed after issue from merge conflict.

@@ -330,7 +330,7 @@ export const methods = {
Meteor.call("orders/shipmentDelivered", order);
}

// A batch update might be better option. Unfortunately Reaction.import doesn't support
// A batch update might be better option. Unfortunately Reaction.importer doesn't support
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be capitalized Reaction.Importer as Reaction.importer doesn't exist.

@spencern spencern changed the base branch from master to release-1.9.0 March 5, 2018 16:34
@spencern spencern merged commit a47a1ba into release-1.9.0 Mar 5, 2018
@spencern spencern deleted the refactor-1364-willopez-rename-import-to-importer branch March 5, 2018 16:34
@spencern spencern mentioned this pull request Mar 8, 2018
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.

None yet

5 participants