File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/compass-schema/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ describe('compass-schema utils', function () {
3232 expect (
3333 getAtlasPerformanceAdvisorLink ( {
3434 metricsId : '123456' ,
35- metricsType : 'host ' ,
35+ metricsType : 'replicaSet ' ,
3636 clusterName : 'Cluster0' ,
3737 } )
38- ) . to . equal ( '#/metrics/host /123456/advisor' ) ;
38+ ) . to . equal ( '#/metrics/replicaSet /123456/advisor' ) ;
3939 } ) ;
4040 it ( 'encodes the parameters' , function ( ) {
4141 expect (
Original file line number Diff line number Diff line change @@ -124,14 +124,15 @@ async function main() {
124124 const args = process . argv . slice ( 2 ) ;
125125 const interactive = args . includes ( '--interactive' ) ;
126126 const command = args . find ( ( arg ) => ! arg . startsWith ( '-' ) ) ;
127+ const since = args . includes ( '--force-all' ) ? '' : ' --since origin/HEAD' ;
127128
128129 /** @type {{ name: string }[] } */
129130 const changedPackages = await withProgress (
130131 'Looking up packages changed since origin/HEAD' ,
131132 async function ( ) {
132133 const spinner = this ;
133134 const { stdout } = await runInDir (
134- ' npx lerna list --all -- since origin/HEAD --json --exclude-dependents'
135+ ` npx lerna list --all${ since } --json --exclude-dependents --toposort`
135136 ) ;
136137 const result = JSON . parse ( stdout ) ;
137138 spinner . text =
You can’t perform that action at this time.
0 commit comments