node-asana
node-asana copied to clipboard
Adding a task named `Ads` breaks the frontend
Super funny,
On your webapp task list screen:
Adding a task with the task name Ads breaks the ui.
Would love to hear the story behind the bug once it's fixed. 😃
Hi @ssteiger, I can't seem to reproduce this issue. I tried 2 scenarios:
Scenario 1 - 1:
- In Asana webapp/ui in a "Test" project add a task using the "+ Add task" button
- Named that new task "Ads"
- Created another task with the "+ Add task" button and named it "Ad"
- Observed no issues
Scenario 1 - 2:
- In Asana webapp/ui in a "Test" project add a task by clicking on the row
- Named new task "Ads"
- Added another task by clicking on the row and named it "Ad"
- Observed no issues
Scenario 2:
- Used the node-asana v3.0.1 library to createTask
- In request body specify
nameas "Ads" - Make another request with
nameas "Ad" - Observed no issues
EX Request:
const Asana = require('asana');
let client = Asana.ApiClient.instance;
let token = client.authentications['token'];
token.accessToken = "<YOUR_ASANA_PERSONAL_ACCESS_TOKEN>";
let tasksApiInstance = new Asana.TasksApi();
let body = {
"data": {
"name": "Ads",
"projects": ["<PROJECT_GID_OF_TEST_PROJECT>"],
}
};
let opts = {};
tasksApiInstance.createTask(body, opts).then((result) => {
console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
}, (error) => {
console.error(error.response.body);
});
Do you have a recording you could share?