-
Notifications
You must be signed in to change notification settings - Fork 36
Fix incorrect versioning that occurred when adding new source documents to combined terms declarations #1207
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
bcfb6ba
Fix extractOnly step
Ndpnt 8274be0
Improve step name
Ndpnt 0ff872a
Improve function name and comments
Ndpnt 5c9ae2d
Fix condition
Ndpnt 2247c86
Improve separation of concerns
Ndpnt c78d636
Factorize code
Ndpnt d403753
Improve changelog entry
Ndpnt 53a71e2
Add tests for applyTechnicalUpgrades method
Ndpnt c74877e
Factorize code
Ndpnt 9baf315
Factorize code
Ndpnt 2615c2f
Update changelog entry
Ndpnt 216c656
Improve command description
Ndpnt a925f3c
Avoid using obsolete option as example
Ndpnt fec9ea9
Disable tests related to Mongo on Windows
Ndpnt 81e562a
Disable node matrix tests for macos and windows
Ndpnt 66d884c
Revert "Fix random tests failures on windows"
Ndpnt a24d41d
Unify command description
Ndpnt 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
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,19 @@ | ||
| #! /usr/bin/env node | ||
| import './env.js'; | ||
|
|
||
| import path from 'path'; | ||
| import { fileURLToPath, pathToFileURL } from 'url'; | ||
|
|
||
| import { program } from 'commander'; | ||
|
|
||
| const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
|
|
||
| const { applyTechnicalUpgrades } = await import(pathToFileURL(path.resolve(__dirname, '../src/index.js'))); // load asynchronously to ensure env.js is loaded before | ||
|
|
||
| program | ||
| .name('ota apply-technical-upgrades') | ||
| .description('Apply technical upgrades by generating new versions from the latest snapshots using updated declarations, engine logic, or dependencies, and by retrieving any missing snapshots for newly added source documents') | ||
| .option('-s, --services [serviceId...]', 'service IDs to apply technical upgrades to') | ||
| .option('-t, --types [termsType...]', 'terms types to apply technical upgrades to'); | ||
|
|
||
| applyTechnicalUpgrades(program.parse(process.argv).opts()); |
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.
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.