Skip to content

Commit

Permalink
docs: Stop assuming the user's gender in code comments (no-changelog) (
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Apr 19, 2023
1 parent 9817a15 commit c87262a
Show file tree
Hide file tree
Showing 95 changed files with 306 additions and 306 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export = {
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);

// user does not have workflows hence no executions
// or the execution he is trying to access belongs to a workflow he does not own
// or the execution they are trying to access belongs to a workflow they do not own
if (!sharedWorkflowsIds.length) {
return res.status(404).json({ message: 'Not Found' });
}
Expand Down Expand Up @@ -52,7 +52,7 @@ export = {
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);

// user does not have workflows hence no executions
// or the execution he is trying to access belongs to a workflow he does not own
// or the execution they are trying to access belongs to a workflow they do not own
if (!sharedWorkflowsIds.length) {
return res.status(404).json({ message: 'Not Found' });
}
Expand Down Expand Up @@ -90,7 +90,7 @@ export = {
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);

// user does not have workflows hence no executions
// or the execution he is trying to access belongs to a workflow he does not own
// or the execution they are trying to access belongs to a workflow they do not own
if (!sharedWorkflowsIds.length || (workflowId && !sharedWorkflowsIds.includes(workflowId))) {
return res.status(200).json({ data: [], nextCursor: null });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export = {

const workflow = await WorkflowsService.delete(req.user, workflowId);
if (!workflow) {
// user trying to access a workflow he does not own
// user trying to access a workflow they do not own
// or workflow does not exist
return res.status(404).json({ message: 'Not Found' });
}
Expand All @@ -78,7 +78,7 @@ export = {
const sharedWorkflow = await getSharedWorkflow(req.user, id);

if (!sharedWorkflow) {
// user trying to access a workflow he does not own
// user trying to access a workflow they do not own
// or workflow does not exist
return res.status(404).json({ message: 'Not Found' });
}
Expand Down Expand Up @@ -158,7 +158,7 @@ export = {
const sharedWorkflow = await getSharedWorkflow(req.user, id);

if (!sharedWorkflow) {
// user trying to access a workflow he does not own
// user trying to access a workflow they do not own
// or workflow does not exist
return res.status(404).json({ message: 'Not Found' });
}
Expand Down Expand Up @@ -212,7 +212,7 @@ export = {
const sharedWorkflow = await getSharedWorkflow(req.user, id);

if (!sharedWorkflow) {
// user trying to access a workflow he does not own
// user trying to access a workflow they do not own
// or workflow does not exist
return res.status(404).json({ message: 'Not Found' });
}
Expand Down Expand Up @@ -246,7 +246,7 @@ export = {
const sharedWorkflow = await getSharedWorkflow(req.user, id);

if (!sharedWorkflow) {
// user trying to access a workflow he does not own
// user trying to access a workflow they do not own
// or workflow does not exist
return res.status(404).json({ message: 'Not Found' });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ describe('GET /workflows/:id', () => {
{
id: savedCredential.id,
name: savedCredential.name,
currentUserHasAccess: false, // although owner can see, he does not have access
currentUserHasAccess: false, // although owner can see, they do not have access
},
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class ActiveCampaign implements INodeType {

methods = {
loadOptions: {
// Get all the available custom fields to display them to user so that he can
// Get all the available custom fields to display them to user so that they can
// select them easily
async getContactCustomFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -260,7 +260,7 @@ export class ActiveCampaign implements INodeType {
}
return returnData;
},
// Get all the available custom fields to display them to user so that he can
// Get all the available custom fields to display them to user so that they can
// select them easily
async getAccountCustomFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -281,7 +281,7 @@ export class ActiveCampaign implements INodeType {
}
return returnData;
},
// Get all the available tags to display them to user so that he can
// Get all the available tags to display them to user so that they can
// select them easily
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class ActiveCampaignTrigger implements INodeType {

methods = {
loadOptions: {
// Get all the events to display them to user so that he can
// Get all the events to display them to user so that they can
// select them easily
async getEvents(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
6 changes: 3 additions & 3 deletions packages/nodes-base/nodes/Affinity/Affinity.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Affinity implements INodeType {

methods = {
loadOptions: {
// Get all the available organizations to display them to user so that he can
// Get all the available organizations to display them to user so that they can
// select them easily
async getOrganizations(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -103,7 +103,7 @@ export class Affinity implements INodeType {
}
return returnData;
},
// Get all the available persons to display them to user so that he can
// Get all the available persons to display them to user so that they can
// select them easily
async getPersons(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -127,7 +127,7 @@ export class Affinity implements INodeType {
}
return returnData;
},
// Get all the available lists to display them to user so that he can
// Get all the available lists to display them to user so that they can
// select them easily
async getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Asana/Asana.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ export class Asana implements INodeType {

methods = {
loadOptions: {
// Get all the available workspaces to display them to user so that he can
// Get all the available workspaces to display them to user so that they can
// select them easily
getWorkspaces,

Expand Down Expand Up @@ -1764,7 +1764,7 @@ export class Asana implements INodeType {
return returnData;
},

// Get all the available teams to display them to user so that he can
// Get all the available teams to display them to user so that they can
// select them easily
async getTeams(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const workspaceId = this.getCurrentNodeParameter('workspace');
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class AsanaTrigger implements INodeType {

methods = {
loadOptions: {
// Get all the available workspaces to display them to user so that he can
// Get all the available workspaces to display them to user so that they can
// select them easily
async getWorkspaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const workspaces = await getWorkspaces.call(this);
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Automizy/Automizy.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Automizy implements INodeType {

methods = {
loadOptions: {
// Get all the tags to display them to user so that he can
// Get all the tags to display them to user so that they can
// select them easily
async getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ export class AwsSes implements INodeType {

methods = {
loadOptions: {
// Get all the available templates to display them to user so that he can
// Get all the available templates to display them to user so that they can
// select them easily
async getTemplates(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Bannerbear/Bannerbear.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Bannerbear implements INodeType {

methods = {
loadOptions: {
// Get all the available templates to display them to user so that he can
// Get all the available templates to display them to user so that they can
// select them easily
async getTemplates(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -80,7 +80,7 @@ export class Bannerbear implements INodeType {
return returnData;
},

// Get all the available modifications to display them to user so that he can
// Get all the available modifications to display them to user so that they can
// select them easily
async getModificationNames(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const templateId = this.getCurrentNodeParameter('templateId');
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Beeminder/Beeminder.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class Beeminder implements INodeType {

methods = {
loadOptions: {
// Get all the available groups to display them to user so that he can
// Get all the available groups to display them to user so that they can
// select them easily
async getGoals(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const credentials = await this.getCredentials('beeminderApi');
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Bitly/Bitly.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Bitly implements INodeType {

methods = {
loadOptions: {
// Get all the available groups to display them to user so that he can
// Get all the available groups to display them to user so that they can
// select them easily
async getGroups(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -98,7 +98,7 @@ export class Bitly implements INodeType {
}
return returnData;
},
// Get all the available tags to display them to user so that he can
// Get all the available tags to display them to user so that they can
// select them easily
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const groupId = this.getCurrentNodeParameter('group') as string;
Expand Down
22 changes: 11 additions & 11 deletions packages/nodes-base/nodes/ClickUp/ClickUp.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class ClickUp implements INodeType {

methods = {
loadOptions: {
// Get all the available teams to display them to user so that he can
// Get all the available teams to display them to user so that they can
// select them easily
async getTeams(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand All @@ -236,7 +236,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available spaces to display them to user so that he can
// Get all the available spaces to display them to user so that they can
// select them easily
async getSpaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const teamId = this.getCurrentNodeParameter('team') as string;
Expand All @@ -252,7 +252,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available folders to display them to user so that he can
// Get all the available folders to display them to user so that they can
// select them easily
async getFolders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const spaceId = this.getCurrentNodeParameter('space') as string;
Expand All @@ -268,7 +268,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available lists to display them to user so that he can
// Get all the available lists to display them to user so that they can
// select them easily
async getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const folderId = this.getCurrentNodeParameter('folder') as string;
Expand All @@ -284,7 +284,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available lists without a folder to display them to user so that he can
// Get all the available lists without a folder to display them to user so that they can
// select them easily
async getFolderlessLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const spaceId = this.getCurrentNodeParameter('space') as string;
Expand All @@ -300,7 +300,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available assignees to display them to user so that he can
// Get all the available assignees to display them to user so that they can
// select them easily
async getAssignees(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const listId = this.getCurrentNodeParameter('list') as string;
Expand All @@ -326,7 +326,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available tags to display them to user so that he can
// Get all the available tags to display them to user so that they can
// select them easily
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const spaceId = this.getCurrentNodeParameter('space') as string;
Expand All @@ -342,7 +342,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available tags to display them to user so that he can
// Get all the available tags to display them to user so that they can
// select them easily
async getTimeEntryTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const teamId = this.getCurrentNodeParameter('team') as string;
Expand All @@ -362,7 +362,7 @@ export class ClickUp implements INodeType {
}
return returnData;
},
// Get all the available tags to display them to user so that he can
// Get all the available tags to display them to user so that they can
// select them easily
async getStatuses(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const listId = this.getCurrentNodeParameter('list') as string;
Expand All @@ -379,7 +379,7 @@ export class ClickUp implements INodeType {
return returnData;
},

// Get all the custom fields to display them to user so that he can
// Get all the custom fields to display them to user so that they can
// select them easily
async getCustomFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const listId = this.getCurrentNodeParameter('list') as string;
Expand All @@ -396,7 +396,7 @@ export class ClickUp implements INodeType {
return returnData;
},

// Get all the available lists to display them to user so that he can
// Get all the available lists to display them to user so that they can
// select them easily
async getTasks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const listId = this.getCurrentNodeParameter('list') as string;
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/ClickUp/ClickUpTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class ClickUpTrigger implements INodeType {

methods = {
loadOptions: {
// Get all the available teams to display them to user so that he can
// Get all the available teams to display them to user so that they can
// select them easily
async getTeams(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Clockify/Clockify.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export class Clockify implements INodeType {
body.start = moment.tz(body.start, timezone).utc().format();
} else {
// even if you do not want to update the start time, it always has to be set
// to make it more simple to the user, if he did not set a start time look for the current start time
// to make it more simple to the user, if they did not set a start time look for the current start time
// and set it
const {
timeInterval: { start },
Expand Down
Loading

0 comments on commit c87262a

Please sign in to comment.