functions icon indicating copy to clipboard operation
functions copied to clipboard

Switch from call_id to task_id for consistency

Open denismakogon opened this issue 8 years ago • 8 comments
trafficstars

As part of async execution HTTP API response IronFunctions returns call_id. But it's actually referring to task ID (from models.Task). In order to keep consistency between tasks objects (that are available via /tasks HTTP API) that are containing task_id and no call_id it is necessary to rename call_id to task_id.

This patch renames call_id that comes as part of API response on async execution request to task_id for API consistency purposes.

HTTP API impact: call_id renamed to task_id

Partially addresses: #415

denismakogon avatar Mar 01 '17 16:03 denismakogon

Is this only for async functions? We named them call_id in reference to a "functions calls", not sure we should have task_id and call_id.

treeder avatar Mar 02 '17 22:03 treeder

@treeder the thing is that Async execution returns call_id, but I need to query /tasks to get info on it. So, for implementing /tasks/{task_id} we need to clarify what we return to a users, would it be call_id or taks_id that can be tracked via /tasks

denismakogon avatar Mar 03 '17 01:03 denismakogon

@seiflotfy @pedronasser @treeder Guys, can we make certain decision on this one?

denismakogon avatar Mar 09 '17 20:03 denismakogon

So I am pretty ok with that change, we are not 1.0 and I like the changes to the docs. I'd like to have a +1 from @pedronasser @treeder @ccirello
Then lets push it through. Also can you make sure you add a note in the changelogs?

seiflotfy avatar Mar 13 '17 17:03 seiflotfy

A good merge message covering on the reason and consequences of this change is a must. Regarding everything else, LGTM.

ucirello avatar Mar 13 '17 18:03 ucirello

The main thing that bugs me about this is having different names for essentially the same thing. We should choose one or the other across the board.

treeder avatar Mar 22 '17 21:03 treeder

@treeder isn't task_id fits better here rather than call_id?

denismakogon avatar Mar 22 '17 22:03 denismakogon

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 07 '17 20:04 CLAassistant