Skip to content

Commit

Permalink
0.2.1 (#9)
Browse files Browse the repository at this point in the history
* fix typo

* Fixed username was not shown in message in oa:apex:log:delete -a command
  • Loading branch information
osieckiAdam authored Jan 15, 2020
1 parent 6ac3a15 commit 97716fb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions messages/delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"jobFinishedMessage": "\nJob is finished",
"failedRecordsMessage": "Number of failed records: %i",
"successMessage": "All records were deleted sucessfully",
"noLogsMessage": "There are no Apex logs on Your org!",
"errorMessage": "Error is thrown: %s"
"noLogsMessage": "There are no Apex logs on Your org!"
}
5 changes: 3 additions & 2 deletions messages/sel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"commandDescription": "generate query for all fields from SObject (SEL * FROM SObject)",
"commandDescription": "generate query string for all fields from SObject (SEL * FROM SObject)",
"fromFlagDescription": "SObject to generate query for",
"whereFlagDescription": "Add WHERE clause to Your query"
"whereFlagDescription": "Add WHERE clause to Your query",
"successMessage": "Your query was succesfully copied to clipboard:\n + %q"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "osiecki-sfdx-plugins",
"description": "SFDX plugins by Adam Osiecki",
"version": "0.2.0",
"version": "0.2.1",
"author": "Adam Osiecki @osieckiAdam",
"bugs": "https://github.com/osieckiAdam/osiecki-sfdx-plugins/issues",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/oa/apex/log/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ sfdx oa:apex:log:delete --json'
jobId = batchDetails.jobId;
this.ux.log(messages.getMessage('jobStartedMessage', [jobId]));
if (this.flags.async) {
this.ux.log(messages.getMessage('jobStartedMessageAsync', [jobId, this.flags.targetusername]));
this.ux.log(messages.getMessage('jobStartedMessageAsync', [jobId, this.org.getConnection().getUsername()]));
resolve({ numberOfQueriedLogs: totalNumberOfRecords, jobID: jobId });
} else {
batch.poll(2000, 10000000);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/oa/data/soql/sel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Sel extends SfdxCommand {
} else {
query += res;
ncp.copy(query);
this.ux.log('Your query was succesfully copied to clipbzoard:\n' + query);
this.ux.log(messages.getMessage('successMessage', [query]));
}
});
return { query };
Expand Down
2 changes: 1 addition & 1 deletion test/commands/apex/log/delete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as deleteClass from '../../../../src/commands/oa/apex/log/delete';

class BatchMock extends EventEmitter { public poll() { } }
const mockSubscripton = new BatchMock();
const requestTimeout = 700;
const requestTimeout = 1000;

describe('apex:log:delete, 2 records queried', () => {
beforeEach(() => {
Expand Down

0 comments on commit 97716fb

Please sign in to comment.