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

Fix displaying warning in editor when there is kept invalid markup #3670

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

westonruter
Copy link
Member

Summary

I discovered that the warning notices in the editor do not accurately reflect the scenario when there is one or more bit of invalid markup which is kept. The issue stems from the status not being included among the validationErrors which are stored.

I also realized that the the messages were not updated after the rebranding in #3630. Some of the code also could be simplified. (See #3545/#3350.)

Validation Error(s) Kept

Given a URL that has errors in all 4 validation states:

image

Before:

image

image

After:

image

image

Validation Errors Removed

Before:

image

image

After:

image

image

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

Also update editor messages based on validation error rebranding
@westonruter westonruter added the Bug Something isn't working label Oct 30, 2019
@westonruter westonruter added this to the v1.4 milestone Oct 30, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Oct 30, 2019
Copy link
Member

@amedina amedina left a comment

Choose a reason for hiding this comment

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

Phew. Ship it!

@pierlon
Copy link
Contributor

pierlon commented Oct 30, 2019

Nice catch @westonruter!

@westonruter
Copy link
Member Author

Failing tests are due to E2E issue, unrelated to changes here.

@westonruter westonruter merged commit c0a0eef into develop Oct 30, 2019
@westonruter westonruter deleted the fix/accepted-language branch October 30, 2019 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working cla: yes Signed the Google CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants