Skip to content

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

Merged
westonruter merged 1 commit intodevelopfrom
fix/accepted-language
Oct 30, 2019
Merged

Fix displaying warning in editor when there is kept invalid markup#3670
westonruter merged 1 commit intodevelopfrom
fix/accepted-language

Conversation

@westonruter
Copy link
Copy Markdown
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
@westonruter westonruter requested a review from amedina October 30, 2019 22:23
@googlebot googlebot added the cla: yes Signed the Google CLA label Oct 30, 2019
Copy link
Copy Markdown
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
Copy Markdown
Contributor

pierlon commented Oct 30, 2019

Nice catch @westonruter!

@westonruter
Copy link
Copy Markdown
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