-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-6773): add support for $lookup on encrypted collections #4427
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ec38479
feat(NODE-6774): support $lookup on encrypted collections
nbbeeken 8ae4591
chore: add options
nbbeeken 57ba430
test: multiple collection fails with a specific error when not enabled
nbbeeken 7e880c5
chore: fixes
nbbeeken 7807e60
chore: try fixing tests
nbbeeken 2abcda4
chore: version filter
nbbeeken 9925881
chore: lint
nbbeeken 47faa6f
chore: wrong filter
nbbeeken bfaf9b8
chore: more metadata
nbbeeken aedae0c
chore: run on cryptd too
nbbeeken e7ec664
chore: fix stub
nbbeeken d7089c2
chore: await append
nbbeeken 227b904
chore: comments
nbbeeken a360870
chore: bump package
nbbeeken e371fd9
fix lock file
nbbeeken 6cd6ea4
fix: copy pasta
nbbeeken a0e96d2
chore: case 9 name and version
nbbeeken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { createReadStream, promises as fs } from 'node:fs'; | ||
import path from 'node:path'; | ||
import readline from 'node:readline/promises'; | ||
|
||
/** | ||
* Takes an "exports" only bash script file | ||
* and converts it to fish syntax. | ||
* Will crash on any line that isn't: | ||
* - a comment | ||
* - an empty line | ||
* - a bash 'set' call | ||
* - export VAR=VAL | ||
*/ | ||
|
||
const fileName = process.argv[2]; | ||
const outFileName = path.basename(fileName, '.sh') + '.fish'; | ||
const input = createReadStream(process.argv[2]); | ||
const lines = readline.createInterface({ input }); | ||
const output = await fs.open(outFileName, 'w'); | ||
|
||
for await (let line of lines) { | ||
line = line.trim(); | ||
|
||
if (!line.startsWith('export ')) { | ||
if (line.startsWith('#')) continue; | ||
if (line === '') continue; | ||
if (line.startsWith('set')) continue; | ||
throw new Error('Cannot translate: ' + line); | ||
} | ||
|
||
const varVal = line.slice('export '.length); | ||
const variable = varVal.slice(0, varVal.indexOf('=')); | ||
const value = varVal.slice(varVal.indexOf('=') + 1); | ||
await output.appendFile(`set -x ${variable} ${value}\n`); | ||
} | ||
|
||
output.close(); | ||
input.close(); | ||
lines.close(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.