Fixes the way field_index is generated for a given field_name.
Make sure it uses the same list as the graph api will use to recover the information afterwards.
Differential D37339
[LNT] Invalid field being used on the samples graph API leandron on Aug 31 2017, 8:50 AM. Authored by
Details
Diff Detail Event TimelineComment Actions Also, need to modify the if not field_index, because now field_index can be 0, which is Falsey. Comment Actions Ah yeah I had to abandon field.index in r312059; it can usually be replaced by TestSuiteDB.get_field_index(field). Doing it like proposed here is fine too (except for the if not field_index test being bad now as Chris already mentioned). Comment Actions I've used ts.sample_fields just because is the same list the v4_graph will use to grab the value back. |