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

[@types/indy-sdk] add more detailed ledger response types #51685

Conversation

TimoGlastra
Copy link
Contributor

Signed-off-by: Timo Glastra timo@animo.id

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

@typescript-bot typescript-bot added the Author is Owner The author of this PR is a listed owner of the package. label Mar 11, 2021
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Mar 11, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 11, 2021

@TimoGlastra Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package 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": 51685,
  "author": "TimoGlastra",
  "headCommitOid": "83cca3c7fe181276c49991ef47e32f272cb792f1",
  "lastPushDate": "2021-03-11T14:00:18.000Z",
  "lastActivityDate": "2021-03-11T17:09:17.000Z",
  "maintainerBlessed": false,
  "mergeOfferDate": "2021-03-11T17:07:57.000Z",
  "mergeRequestDate": "2021-03-11T17:09:17.000Z",
  "mergeRequestUser": "TimoGlastra",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "indy-sdk",
      "kind": "edit",
      "files": [
        {
          "path": "types/indy-sdk/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/indy-sdk/indy-sdk-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "TimoGlastra",
        "jakubkoci"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "jakubkoci",
      "date": "2021-03-11T17:07:20.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @jakubkoci — 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.

@TimoGlastra
Copy link
Contributor Author

@jakubkoci this adds more detailed response types for ledger requests. We aren't correctly parsing ledger rejections in the framework, so it get's silently ignored and later on creates issues. Logging for the win!

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Mar 11, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Mar 11, 2021
@typescript-bot
Copy link
Contributor

@TimoGlastra The 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 typescript-bot removed the The CI failed When GH Actions fails label Mar 11, 2021
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Mar 11, 2021
Signed-off-by: Timo Glastra <timo@animo.id>
@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?

Comparison details 📊
master #51685 diff
Batch compilation
Memory usage (MiB) 69.7 69.1 -0.8%
Type count 9724 9824 +1%
Assignability cache size 1828 1839 +1%
Language service
Samples taken 253 316 +25%
Identifiers in tests 253 316 +25%
getCompletionsAtPosition
    Mean duration (ms) 383.7 382.5 -0.3%
    Mean CV 10.1% 9.1%
    Worst duration (ms) 488.5 490.5 +0.4%
    Worst identifier self_attested_attributes Buffer
getQuickInfoAtPosition
    Mean duration (ms) 385.3 388.3 +0.8%
    Mean CV 9.1% 9.1%
    Worst duration (ms) 477.1 503.5 +5.5%
    Worst identifier from from

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 Mar 11, 2021
@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 Mar 11, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Waiting for Author to Merge in New Pull Request Status Board Mar 11, 2021
@typescript-bot
Copy link
Contributor

@TimoGlastra Everything looks good here. Great job! I am ready to merge this PR (at 83cca3c) 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! ❤️

(@jakubkoci: you can do this too.)

@TimoGlastra
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Mar 11, 2021
@typescript-bot typescript-bot merged commit b3b986b into DefinitelyTyped:master Mar 11, 2021
@typescript-bot
Copy link
Contributor

I just published @types/indy-sdk@1.15.2 to npm.

@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author is Owner The author of this PR is a listed owner of the package. 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.

None yet

3 participants