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
lucene: feat: Support ranged node terms #48624
Conversation
This is a much closer match to the actual data structures produced by the Lucene package. I've been using this patch for several months in a couple of private projects for a company I did work for. Also along for the ride is that the similarity field is a nullable number. Again, matches the actual code of Lucene, but not as well used in my code.
@kf6kjg Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. This PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Have you considered adding tests to cover the change you're making? Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you. 1 package in this PRCode ReviewsThis PR can be merged once it's reviewed by a DT maintainer. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 48624,
"author": "kf6kjg",
"owners": [
"bengry",
"HugoMuller"
],
"dangerLevel": "ScopedAndUntested",
"headCommitAbbrOid": "b2c2242",
"headCommitOid": "b2c2242531a238d9f7091813597fb90763cf635d",
"mergeIsRequested": false,
"stalenessInDays": 0,
"lastPushDate": "2020-10-13T18:08:48.000Z",
"lastCommentDate": "2020-10-14T15:00:10.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48624/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"newPackages": [],
"packages": [
"lucene"
],
"files": [
{
"path": "types/lucene/index.d.ts",
"kind": "definition",
"package": "lucene"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-10-14T15:00:21.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
🔔 @bengry @HugoMuller — please review this PR in the next few days. Be sure to explicitly select |
👋 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 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
@kf6kjg The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I left a couple of comments though, would like some explanations before we go ahead and merge this :).
Changes made, lemme know how that looks now. Not sure I understand the reasoning behind preferring interfaces over types, but since they are equivalent to me I made the change. |
@kf6kjg The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
Due to not actually doing this via a checked out copy, just editing on GitHub directly. strict-export-declare-modifiers requires all declarations to be exported. And some as-of-previous-commit excess semicolons.
@bengry Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
The reasoning is that
|
As mentioned in the latest commit: strict-export-declare-modifiers requires all declarations to be exported. |
Thanks, I haven't noticed that. LGTM. |
Thanks, great first contribution 👍🏻 |
I just published |
This is a much closer match to the actual data structures produced by the Lucene package. I've been using this patch for several months in a couple of private projects for a company I did work for.
Also along for the ride is that the similarity field is a nullable number. Again, matches the actual code of Lucene, but not as well used in my code.
These types were created by carefully reading and extracting the critical parts from the grammar file that I used in my code, so I make no guarantee that it's 100% complete, only that it's better than it was.
Please fill in this template.
npm test YOUR_PACKAGE_NAME
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.