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

Revert "Use NoticeMessage type for pg.Client 'notice' event." #51513

Closed

Conversation

groner
Copy link
Contributor

@groner groner commented Mar 2, 2021

Reverts #51183, which has caused problems for multiple users using isolatedModules: true, due to the const enum in pg-protocol/lib/messages.

Hopefully this can be revisited in the future, if pg-protocol can be changed to expose the message interfaces without breaking isolated module builds.

#51183 (comment)
brianc/node-postgres#2473

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Mar 2, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 2, 2021

@groner 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 or DT maintainers

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 13 days — please try to get reviewers!


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 51513,
  "author": "groner",
  "headCommitOid": "b478d10f85c4a38a44516fc98f04dc7783f74794",
  "lastPushDate": "2021-03-05T02:33:23.000Z",
  "lastActivityDate": "2021-03-18T18:19:01.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "pg",
      "kind": "edit",
      "files": [
        {
          "path": "types/pg/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/pg/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/pg/pg-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "pspeter3",
        "HoldYourWaffle"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [],
  "ciResult": "pass"
}

@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Mar 2, 2021
@typescript-bot
Copy link
Contributor

🔔 @pspeter3 @HoldYourWaffle — 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?

Comparison details 📊
master #51513 diff
Batch compilation
Memory usage (MiB) 79.2 71.1 -10.3%
Type count 10370 10257 -1%
Assignability cache size 1898 1885 -1%
Language service
Samples taken 525 514 -2%
Identifiers in tests 525 514 -2%
getCompletionsAtPosition
    Mean duration (ms) 330.5 329.9 -0.2%
    Mean CV 9.8% 10.1%
    Worst duration (ms) 437.7 403.9 -7.7%
    Worst identifier catch err
getQuickInfoAtPosition
    Mean duration (ms) 338.4 338.8 +0.1%
    Mean CV 9.1% 9.0%
    Worst duration (ms) 405.9 432.2 +6.5%
    Worst identifier res connectionTimeoutMillis

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

@typescript-bot typescript-bot added Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. labels Mar 2, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Mar 5, 2021
@typescript-bot
Copy link
Contributor

@groner Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@groner groner force-pushed the revert-51183-pg-notice-event branch from 0b006c6 to b478d10 Compare March 5, 2021 02:33
@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Mar 5, 2021
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Mar 5, 2021
@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Mar 16, 2021
@typescript-bot
Copy link
Contributor

Re-ping @pspeter3, @HoldYourWaffle:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@ujwal-setlur
Copy link

FYI, this issue has been fixed upstream: brianc/node-postgres#2490

@groner
Copy link
Contributor Author

groner commented Mar 18, 2021

@ujwal-setlur thanks for the update. Hopefully a new pg release will follow soon. I'll close this for now.

@groner groner closed this Mar 18, 2021
@typescript-bot typescript-bot removed this from Waiting for Code Reviews in New Pull Request Status Board Mar 18, 2021
@ujwal-setlur
Copy link

ujwal-setlur commented Mar 18, 2021

@groner I am not sure you should close this PR. The way it was fixed upstream may not be compatible with your previous PR. For example, MessageName.** will not work. You should look at brianc/node-postgres#2490. You may actually need to tweak this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Popular package This PR affects a popular package (as counted by NPM download counts). Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants