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

feat(CMF/TUI-305): omitCMFProps is the default now #1854

Merged
merged 28 commits into from
Dec 28, 2018

Conversation

jmfrancois
Copy link
Collaborator

@jmfrancois jmfrancois commented Nov 28, 2018

What is the problem this PR is trying to solve?

As we have announce with #1749 winter is coming.

What is the chosen solution to this problem?

breaking change, put the omitCMFProps by default to true.
Add a warning once and per component if omitCMFProps is set.

Please check if the PR fulfills these requirements

  • The PR commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features) And non reg done before need review
  • Docs have been added / updated (for bug fixes / features)
  • Related design / discussions / pages (not in jira), if any, are all linked or available in the PR

[x] This PR introduces a breaking change

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

1 similar comment
@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

withComponentRegistry = false,
withDispatch = false,
withDispatchActionCreator = false,
withComponentId = false,
...rest
} = {}) {
const propsToOmit = [];
if (omitCMFProps) {
if (omitCMFProps === undefined || omitCMFProps === true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can replace this double check by just if (omitCMFProps) + default value omitCMFProps = true

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

1 similar comment
@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

1 similar comment
@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@jsomsanith-tlnd jsomsanith-tlnd merged commit 7cff79c into master Dec 28, 2018
@jsomsanith-tlnd jsomsanith-tlnd deleted the jmfrancois/feat/cmf/omit-props-default-true branch December 28, 2018 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants