Hey!
I’m extending the Asana node and a few questions came up.
-
How can I see the Requests n8n actually does? Do I need to run it through some proxy or is it possible to see it in the logs?
-
I want to add this endpoint Asana
It allows to scope the returned projects by workspace
, team
and/or archived
.
I added a loadOptions helper method to show all existing teams in the UI. Unfortunately this endpoint depends on a workspace: GET /organizations/{workspace_gid}/teams
(see: Asana)
I know about loadOptionsDependsOn
.
Now I can add the workspace
parameter outside of the collection. It looks a bit ugly because when left empty it shows an error because empty string is not allowed, but the request works.
However, if I set the value, then both values will be used to scope the search, which means it will return all projects in that workspace/organization but not only those for the team.
Code is here:
- WIP: Improve asana node 1 by einSelbst · Pull Request #1 · infographicsgroup/n8n · GitHub
- WIP: Improve asana node 1 by einSelbst · Pull Request #1 · infographicsgroup/n8n · GitHub
I don’t depend on that functionality but I would like to figure out how such scenarios should be handled.
- don’t provide a loadOptions helper for 'teams`?
-
Is it possible to require that at least one value in a collection is set?
required: true
doesn’t seem to work, see: WIP: Improve asana node 1 by einSelbst · Pull Request #1 · infographicsgroup/n8n · GitHub -
Some of the query strings for the asana task search look like this
projects.any
(with a dot), see:
Asana. However, using this notation seems to silently break the UI, the field will not be shown anymore when selected. -
Last but not least I was wondering what’s the stance regarding tests? It seems uncommon to write tests for the nodes. I do get that it might not make a lot of sense because it will break anyway when the api changes. I wanted to ask anyway.
-
Is there a specific node which you would recommend to look at to see how the implementation should preferably be done?
-
Is there something like
loadOptionsDependsOn
, but not forloadOptions
? E.g. to update theasignee_status
of a task in asana it is mandatory to also pass anassignee
. Because this is the defaultcreate
/update
action it’s not mandatory in general to pass anassignee
(only for setting the status).