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 https://developers.asana.com/docs/get-multiple-projects
It allows to scope the returned projects by
I added a loadOptions helper method to show all existing teams in the UI. Unfortunately this endpoint depends on a workspace:
I know about
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:
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: truedoesn’t seem to work, see: https://github.com/infographicsgroup/n8n/pull/1/files#diff-066d3d6095df33b48a155406e98556ceR264
Some of the query strings for the asana task search look like this
projects.any(with a dot), see:
https://developers.asana.com/docs/search-tasks-in-a-workspace. 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 for
loadOptions? E.g. to update the
asignee_statusof a task in asana it is mandatory to also pass an
assignee. Because this is the default
updateaction it’s not mandatory in general to pass an
assignee(only for setting the status).