Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Warn for missing / obsolete error docs #15844

Merged
merged 2 commits into from
Mar 24, 2017
Merged

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Mar 22, 2017

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Chore

What is the current behavior? (You can also link to an open issue here)
We don't know when error docs are missing or obsolete

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:
I have removed an obsolete animation error and moved the tpload error to the correct namespace. In the $templateRequest file, it looks like the error is created in the $compile namespace, but it actually ends up as the $templateRequest namespace, where it should be.

@Narretz Narretz added this to the Backlog milestone Mar 22, 2017
@Narretz Narretz changed the title Chore error docs Warn for missing / obsolete error docs Mar 22, 2017
Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

I'm no dgeni guru, but afaik LGTM 😃
(It would be nice to have a test for templateRequestMinErr, but not a blocker.)

💯

@@ -1,6 +1,6 @@
'use strict';

var $templateRequestMinErr = minErr('$compile');
var $templateRequestMinErr = minErr('$templateRequest');
Copy link
Member

Choose a reason for hiding this comment

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

And no test broke? Seems like we're missing one 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually a lot of tests broke. 😨 I didn't think of implications of the change. I think we said that changing the error name/ namespace is a breaking change so we can't do that in 1.6.

@Narretz
Copy link
Contributor Author

Narretz commented Mar 22, 2017

I think this is actually an issue with min Err / error extraction task / script: - The min error for $compile:tpload gets extracted as $templateRequest:tpload to errors.json which means the erro match script gets thrown off.

I think these lines might lead to minErr assigning the wrong namespace:

var $templateRequestMinErr = minErr('$compile');
or
resp = $templateRequestMinErr('tpload',

@gkalpak
Copy link
Member

gkalpak commented Mar 23, 2017

We probably shouldn't use misleading namespaces (var name !== namespace).
We could fix it in 1.7.x

@Narretz Narretz merged commit 32f38a3 into angular:master Mar 24, 2017
@Narretz Narretz deleted the chore-error-docs branch February 5, 2018 19:08
@petebacondarwin petebacondarwin modified the milestones: Backlog, 1.7.0 Feb 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants