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

Changed getPageConfig and getUser redux actions to fetch... to match the API #516

Merged

Conversation

devbucket
Copy link
Contributor

Description

Those two functions haven't been renamed and were now changed to the new naming convention to match the API.

Type of change

Please add an "x" into the option that is relevant:

  • [ ] Bug Fix 🐛 (non-breaking change which fixes an issue)
  • [ ] New Feature 🚀 (non-breaking change which adds functionality)
  • [ ] Breaking Change 💥 (fix or feature that would cause existing functionality to not work as expected)
  • [ x ] Polish 💅 (Just some cleanups)
  • [ ] Docs 📝 (Changes in the documentations)
  • [ ] Internal 🏠 Only relates to internal processes.

@devbucket devbucket added the enhancement New feature or request label Jan 31, 2019
@devbucket devbucket self-assigned this Jan 31, 2019
@coveralls
Copy link

coveralls commented Feb 1, 2019

Pull Request Test Coverage Report for Build 1923

  • 0 of 39 (0.0%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 46.865%

Changes Missing Coverage Covered Lines Changed/Added Lines %
themes/theme-gmd/pages/Page/subscriptions.js 0 1 0.0%
themes/theme-ios11/pages/Page/subscriptions.js 0 1 0.0%
libraries/common/actions/page/getPageConfig.js 0 2 0.0%
libraries/common/actions/user/getUser.js 0 2 0.0%
libraries/common/subscriptions/user.js 0 2 0.0%
themes/theme-gmd/pages/StartPage/subscriptions.js 0 2 0.0%
themes/theme-ios11/pages/StartPage/subscriptions.js 0 2 0.0%
libraries/common/actions/page/fetchPageConfig.js 0 10 0.0%
libraries/common/actions/user/fetchUser.js 0 17 0.0%
Totals Coverage Status
Change from base Build 1917: -0.01%
Covered Lines: 4955
Relevant Lines: 9909

💛 - Coveralls

@alexbridge
Copy link
Contributor

I enabled import/named rule to catch import issued. Cleaned up a code.

import { shouldFetchData } from '../../helpers/redux';
import * as actions from '../../action-creators/page';
import { getPageConfigById } from '../../selectors/page';
import { fetchPageConfig } from './fetchPageConfig';
Copy link
Contributor

Choose a reason for hiding this comment

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

fetchPageConfig has no named import fetchPageConfig. You need import it as default

import * as pipelines from '../../constants/Pipelines';
import * as actions from '../../action-creators/user';
import { isUserLoggedIn } from '../../selectors/user';
import { fetchUser } from './fetchUser';
Copy link
Contributor

Choose a reason for hiding this comment

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

fetchUser has no named import fetchUser . You need import it as default

@alexbridge alexbridge merged commit 38e5c46 into v6.1.0 Feb 1, 2019
@alexbridge alexbridge deleted the PWA-1658-Rename-getUser-and-getPageConfig-actions-to-fetchX branch February 1, 2019 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants