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

build(aio): fix addNotYetDocumentedProperty processor #22770

Conversation

petebacondarwin
Copy link
Member

It was running too late and so was being confused by the
description being split into shortDescription and description
properties.

I also took the opportunity to simplify it and make the docTypes configurable.

Closes #22748

It was running too late and so was being confused by the
description being split into `shortDescription` and `description`
properties.

Closes angular#22748
@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer comp: aio target: major This PR is targeted for the next major release labels Mar 14, 2018
@mary-poppins
Copy link

You can preview 5b2b04f at https://pr22770-5b2b04f.ngbuilds.io/.

@petebacondarwin petebacondarwin added this to REVIEW in docs-infra Mar 14, 2018
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.

So, what about doc.constructorDoc and doc.members?

@petebacondarwin
Copy link
Member Author

These are now covered by the docTypes = API_DOC_TYPES configuration.
Previously we were only checking EXPORT_DOC_TYPES

@gkalpak
Copy link
Member

gkalpak commented Mar 14, 2018

But afaict, there is this difference with how it worked before:

  • Assume empty description, but documented constructor.
  • Before: doc.notYetDocumented --> false
  • Now: doc.notYetDocumented --> true

Did I miss something? Does that affect something in practice? Was it intentional?

@petebacondarwin
Copy link
Member Author

petebacondarwin commented Mar 15, 2018

That is true - also of members. I.E. if any constructor or member had docs then we don't mark the container.
But this logic seemed weird and overly complex. Also it didn't account for static members either. So I ditched it.
We can do that sort of analysis at render time or in a second processor if it is deemed important.
At the moment no one uses this report or is even aware of it so we are somewhat free to redefine it.

@gkalpak
Copy link
Member

gkalpak commented Mar 15, 2018

One last thing: What happens if there is a shortDescription only (but no description)?
Wouldn't it still be (incorrectly) marked as notYetDocumented?

@petebacondarwin
Copy link
Member Author

At this point (https://github.com/angular/angular/pull/22770/files#diff-b55272a29cea0094031753ed50026aeeR5) we explicitly configure the processor to run before the splitDescription processor. So at this stage there is only a description property.

@gkalpak
Copy link
Member

gkalpak commented Mar 15, 2018

Doh! I thought shortDescription could be a standalone tag, but apparently not.
LGTM then (but it will break if we make shortDescription a standalone tag 😛).

@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 15, 2018
@mhevery mhevery closed this in 19e6b8d Mar 15, 2018
@petebacondarwin petebacondarwin removed this from REVIEW in docs-infra Mar 23, 2018
leo6104 pushed a commit to leo6104/angular that referenced this pull request Mar 25, 2018
It was running too late and so was being confused by the
description being split into `shortDescription` and `description`
properties.

Closes angular#22748

PR Close angular#22770
@petebacondarwin petebacondarwin deleted the aio-not-yet-documented-fix branch July 18, 2018 07:20
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aio: overview dump - Why does it think that getAngularJSGlobal() is undocumented?
4 participants