Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Addon groups UI #13

Merged
merged 9 commits into from
Aug 20, 2016
Merged

Addon groups UI #13

merged 9 commits into from
Aug 20, 2016

Conversation

rehandalal
Copy link
Contributor

r?

@@ -14,3 +14,4 @@ rules:
no-use-before-define: [warn, { functions: false }]
react/no-multi-comp: [off]
no-throw-literal: [off]
import/no-unresolved: [warn]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is included in airbnb as [error], right? I'm curious why you changed it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i was getting errors with:
https://github.com/mozilla/morgoth/pull/13/files#diff-535db65efe188b02b6f9792222d76a0bR4

Unable to resolve path to module 'redux-form-material-ui'.

couldn't get rid of them and it was working as intended so i switched to a warning so i could commit. but maybe there's a way of fixing the error?

Copy link
Contributor

Choose a reason for hiding this comment

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

I find this rule really useful, so I think it would be good to not lower it. I'll poke at this and see if I can get it working.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can reproduce the problem here. Maybe try removing node_modules, and reinstalling based on #15?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm still seeing the issue. Did a complete reinstall after rebasing and pinning the new dependencies. Then I tried upgrading ESLint. Ultimately committed with a --no-verify to see what Circle thinks.

@mythmon mythmon self-assigned this Aug 17, 2016
function receivedUpdateAddonGroup(addonGroup, saveAndContinue) {
if (!saveAndContinue) {
browserHistory.push('/addon_groups/');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Action creators should be pure, that is, have no side effects. I think it would be better to use react-router-redux's action creators for changing browserHistory, described here. This lets the redux devtools work correctly. We've found those very helpful on Normandy.

@mythmon
Copy link
Contributor

mythmon commented Aug 18, 2016

My eyes sort of glazed over, but I don't see any other issues

@mythmon mythmon assigned rehandalal and unassigned mythmon Aug 18, 2016
dispatch(push(`/addon_groups/${addonGroup.id}/`));
} else {
dispatch(push('/addon_groups/'));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

better?

@rehandalal
Copy link
Contributor Author

Circle ain't happy with this either:

===============================================================================
FAILED: eslint
===============================================================================
The react/require-extension rule is deprecated. Please use the import/extensions rule from eslint-plugin-import instead.

/app/client/ui/components/AddonGroupForm.jsx
  4:27  error  Unable to resolve path to module 'redux-form-material-ui'  import/no-unresolved

/app/client/ui/components/AddonForm.jsx
  4:27  error  Unable to resolve path to module 'redux-form-material-ui'  import/no-unresolved

✖ 2 problems (2 errors, 0 warnings)

@rehandalal
Copy link
Contributor Author

rehandalal commented Aug 19, 2016

After much painful digging I was able to figure out the issue...
erikras/redux-form-material-ui#32

@mythmon
Copy link
Contributor

mythmon commented Aug 19, 2016

Wow, that's intense. Nice job finding it. I wonder why it worked fine for me? If you want to go ahead and keep the eslint change to a warning until that PR merges, go for it. I don't have any other comments about this, for better or worse. r+

@rehandalal rehandalal merged commit 154ae99 into mozilla:master Aug 20, 2016
@rehandalal rehandalal deleted the addon-groups-ui branch August 26, 2016 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants