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

[ember-data/model] Support @attr without invoking #48654

Merged

Conversation

wagenet
Copy link
Contributor

@wagenet wagenet commented Oct 9, 2020

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test YOUR_PACKAGE_NAME.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 9, 2020

@wagenet Thank you for submitting this PR!

This is a live comment which I will keep updated.

2 packages in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners, DT maintainers or others

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 48654,
  "author": "wagenet",
  "owners": [
    "dwickern",
    "mike-north",
    "chriskrycho",
    "jamescdavis",
    "dfreeman"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "ffe7167",
  "headCommitOid": "ffe7167f2f3813a436bb2a0401ad36e323126588",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastPushDate": "2020-10-09T18:41:52.000Z",
  "lastCommentDate": "2020-10-13T15:59:55.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48654/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "newPackages": [],
  "packages": [
    "ember-data",
    "ember-data__model"
  ],
  "files": [
    {
      "path": "types/ember-data/index.d.ts",
      "kind": "definition",
      "package": "ember-data"
    },
    {
      "path": "types/ember-data__model/test/model.ts",
      "kind": "test",
      "package": "ember-data__model"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-10-10T12:50:12.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Contributor

🔔 @dwickern @mike-north @chriskrycho @jamescdavis @dfreeman — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

ember-data/v*

Comparison details for ember-data/* 📊
master #48654 diff
Batch compilation
Memory usage (MiB) 122.6 132.3 +7.9%
Type count 32908 32908 0%
Assignability cache size 8079 8079 0%
Language service
Samples taken 1079 1079 0%
Identifiers in tests 1463 1463 0%
getCompletionsAtPosition
    Mean duration (ms) 659.8 656.5 -0.5%
    Mean CV 6.2% 7.1%
    Worst duration (ms) 834.9 865.6 +3.7%
    Worst identifier T polymorphic
getQuickInfoAtPosition
    Mean duration (ms) 697.0 683.8 -1.9%
    Mean CV 9.6% 9.5% -1.6%
    Worst duration (ms) 984.9 964.5 -2.1%
    Worst identifier hasMany findAll

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

ember-data__model/v*

Comparison details for ember-data__model/* 📊
master #48654 diff
Batch compilation
Memory usage (MiB) 111.3 112.8 +1.3%
Type count 24507 24507 0%
Assignability cache size 5548 5549 0%
Language service
Samples taken 148 148 0%
Identifiers in tests 148 148 0%
getCompletionsAtPosition
    Mean duration (ms) 660.0 678.1 +2.7%
    Mean CV 8.7% 9.0%
    Worst duration (ms) 798.2 844.3 +5.8%
    Worst identifier T T
getQuickInfoAtPosition
    Mean duration (ms) 683.9 688.6 +0.7%
    Mean CV 9.0% 8.0% -10.9%
    Worst duration (ms) 958.6 839.6 -12.4%
    Worst identifier hasMany hasMany

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Oct 9, 2020
Copy link
Contributor

@jamescdavis jamescdavis left a comment

Choose a reason for hiding this comment

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

Thank you!

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Oct 10, 2020
@typescript-bot
Copy link
Contributor

@wagenet Everything looks good here. Great job! I am ready to merge this PR on your behalf.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@dwickern, @mike-north, @chriskrycho, @jamescdavis, @dfreeman: you can do this too.)

@wagenet
Copy link
Contributor Author

wagenet commented Oct 13, 2020

Ready to merge

@typescript-bot typescript-bot merged commit b3573ad into DefinitelyTyped:master Oct 13, 2020
@wagenet wagenet deleted the ember-data-model-attr branch October 13, 2020 16:00
@typescript-bot
Copy link
Contributor

I just published @types/ember-data@3.16.6 to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants