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

[desk-tool] Keep info about type mismatch, and do type mismatch check… #311

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Oct 30, 2017

In the previous version we did automatic redirect whenever a document was attempted to be edited as a wrong type. This patch restores the original warning so the user is made aware of it, but instead adds a button that leads to the page for editing as correct type.

It also does the type mismatch check on componentWillReceiveProps. Which is needed in order to support intent links without type (for now). The type mismatch check will only trigger if type is * (which I've tend to think of as "infer").

@bjoerge bjoerge requested a review from rexxars October 30, 2017 13:59
Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

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

👍

@bjoerge bjoerge merged commit 9fe9a6d into next Oct 30, 2017
@bjoerge bjoerge deleted the feature/improve-type-mismatch-check branch October 30, 2017 15:58
bjoerge added a commit that referenced this pull request Nov 2, 2017
bjoerge added a commit that referenced this pull request Nov 2, 2017
@bjoerge bjoerge mentioned this pull request Nov 2, 2017
bjoerge added a commit that referenced this pull request Nov 2, 2017
This pull request was closed.
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.

2 participants