Skip to content

Commit 055d77a

Browse files
authored
Merge pull request #199 from salesforcecli:bm/W-9740004
chore: remove deprecation message
2 parents 1ed9d3d + afd312d commit 055d77a

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

messages/list.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
"deleteOrgs": "You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run force:org:list --clean.",
1616
"noOrgsFound": "No orgs can be found.",
1717
"noOrgsFoundAction": "Use one of the auth commands or force:org:create to add or create a scratch org.",
18-
"scratchOrgRemoveConnectedStatusProperty": "Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs.",
1918
"noResultsFound": "No non-scratch orgs found."
2019
}

src/commands/force/org/list.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class OrgListCommand extends SfdxCommand {
7777
? groupedSortedOrgs.scratchOrgs
7878
: groupedSortedOrgs.scratchOrgs.filter(identifyActiveOrgByStatus),
7979
};
80-
this.ux.warn(messages.getMessage('scratchOrgRemoveConnectedStatusProperty'));
8180
this.ux.styledHeader('Orgs');
8281

8382
this.printOrgTable(result.nonScratchOrgs, this.flags.skipconnectionstatus);

src/shared/orgListUtil.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ export class OrgListUtil {
272272
scratchOrgInfo.expirationDate = updatedOrgInfo.ExpirationDate;
273273
scratchOrgInfo.isExpired = updatedOrgInfo.Status === 'Deleted';
274274
scratchOrgInfo.namespace = updatedOrgInfo.Namespace;
275-
// the old toolbelt code always said Unknown. I'd love to get rid of it.
276-
scratchOrgInfo.connectedStatus = 'Unknown';
277275
} else {
278276
const logger = await OrgListUtil.retrieveLogger();
279277
logger.warn(`Can't find ${scratchOrgInfo.username} in the updated contents`);

test/shared/orgListUtil.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ describe('orgListUtil tests', () => {
176176
expect(retrieveScratchOrgInfoFromDevHubStub.calledOnce).to.be.true;
177177
expect(spies.get('reduceScratchOrgInfo').calledOnce).to.be.true;
178178
expect(orgGroups.scratchOrgs[0].signupUsername).to.equal(orgAuthConfigFields.username);
179-
// current default on every scratch org, warning in v51, deprecation in v52
180-
expect(orgGroups.scratchOrgs[0].connectedStatus).to.equal('Unknown');
181179
expect(orgGroups.scratchOrgs[0]).to.include.keys([
182180
'signupUsername',
183181
'createdBy',

0 commit comments

Comments
 (0)