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

Adds some admin docs #41063

Merged
merged 5 commits into from Dec 24, 2019
Merged

Adds some admin docs #41063

merged 5 commits into from Dec 24, 2019

Conversation

orta
Copy link
Collaborator

@orta orta commented Dec 16, 2019

This PR adds some docs for admins with an overview of some useful repos and does some minor cleanup on the README

@typescript-bot
Copy link
Contributor

typescript-bot commented Dec 16, 2019

@orta Thank you for submitting this PR!

Because this PR doesn't have any code reviewers, a DefinitelyTyped maintainer will be reviewing it in the next few days once the Travis CI build passes.

In the meantime, if the build fails or a merge conflict occurs, I'll let you know. Have a nice day!

@typescript-bot typescript-bot added the Unowned This PR touches a package that doesn't have any listed owners. label Dec 16, 2019
docs/admin.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
docs/admin.md Outdated Show resolved Hide resolved
##### New DefinitelyTyped Package

- Is the author also a maintainer of the library? If so, they could use [`--declaration` and `--allowJs`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#--declaration-and---allowjs) in TypeScript to generate their types.

Copy link
Contributor

Choose a reason for hiding this comment

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

at some point we should have the content of 'oh no modules' in here, plus links to the handbook. for now can you add a list like

  • no exceptions in tslint.json
  • strict: true or equivalent four (five?) settings in tsconfig.json
  • no esModuleInterop: true, no matter how tempting
  • make sure export default is actually default in the source; react-* packages get a pass on this.

Also maybe link to my slide deck: https://docs.google.com/presentation/d/1Q4xfZSY7d9yHhtxSyb-DE85fTXB38RyF3nnyVyvenwc/edit?usp=sharing


Welcome! This is a resource for the person who is on call for DefinitelyTyped. The TypeScript team always has someone
assigned to DefinitelyTyped duty, where they do a week on-call. You can see the [schedule here](http://aka.ms/DTRotation).

Copy link
Contributor

Choose a reason for hiding this comment

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

These two paragraphs are a good start, although eventually I'd like to have a bit more about the philosophy — that this isn't a code review in the usual sense, but an assessment of category and severity, followed by delegating to the people who actually know how to review the code. Since the bot tags the PRs with category and owners, it's mainly an exercise in co-ordinating between humans, and filling in any places the bot currently misses.

Also, something about how the sliding scale of package popularity affects reviews. The maintainer should review changes to popular packages, and very popular packages — those with a name you recognise, roughly — should have signoffs from at least two maintainers. Conversely, it's fine to overlook problems with changes to unpopular packages; in many cases only the author is using them anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree - I've expanded it!

@typescript-bot typescript-bot moved this from Review to Needs Author Attention in Pull Request Status Board Dec 16, 2019
@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Dec 16, 2019
@typescript-bot
Copy link
Contributor

@orta One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. Thank you!

@orta
Copy link
Collaborator Author

orta commented Dec 16, 2019

thanks bot

@orta
Copy link
Collaborator Author

orta commented Dec 16, 2019

Gave it another one-over 👍

docs/admin.md Outdated Show resolved Hide resolved
docs/admin.md Outdated
Constraints which you should consider:

- Is it popular? (e.g. do you recognise it) if so, it should probably have two sign-offs
- Will the PR break existing code? If so, check that there's a semver bump
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hard in two ways:

  1. Anything that's not a strict addition is likely to break code; and some additions break code, for example if they're to a class with subclasses.
  2. DT packages are supposed to match the source's major.minor, so to bump semver, breaking changes can only ship when updating the types to a new major version.

The result is that so far we've told people that the Right Way to consume DT packages is to pin them to an exact major.minor.patch. That's not in the README and it's not common practise, but I think those are the things to change.

@typescript-bot
Copy link
Contributor

🔔 @sandersn - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate?

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
@typescript-bot
Copy link
Contributor

typescript-bot commented Dec 17, 2019

@orta The Travis CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot
Copy link
Contributor

typescript-bot commented Dec 18, 2019

@orta The Travis CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot
Copy link
Contributor

@orta I haven't seen anything from you in a while and this PR currently has problems that prevent it from being merged. The PR will be closed tomorrow if there aren't new commits to fix the issues.

@orta
Copy link
Collaborator Author

orta commented Dec 24, 2019

Alright, I'm not gonna fight the bot - this is good for now 👍

@orta orta merged commit 9f2b299 into master Dec 24, 2019
Pull Request Status Board automation moved this from Needs Author Attention to Done Dec 24, 2019
@elibarzilay elibarzilay deleted the admin_docs branch November 28, 2020 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Revision needed This PR needs code changes before it can be merged. Unowned This PR touches a package that doesn't have any listed owners.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants