Homec4science

Move token rendering into Datasources

Authored by epriestley <git@epriestley.com> on Apr 18 2015, 17:55.

Description

Move token rendering into Datasources

Summary:
Ref T4100. I want to reduce the amount of code duplication that function datasources currently need to wrap some parameter datasource.

For example, ProjectMembersDatasource should really just be a little bit of logic on top of ProjectsDatasource, which should do most of the heavy lifting.

Moving rendering into datasources brings us a step closer to being able to do this.

Test Plan:

  • Rendered normal, function, and invalid tokens.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4100

Differential Revision: https://secure.phabricator.com/D12457

Details

Committed
epriestley <git@epriestley.com>Apr 20 2015, 19:06
Pushed
aubortJan 31 2017, 17:16
Parents
rPHa11dab59b0d5: Require TokenizerControl to always have a datasource
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH2bbe3b0cbfce: Move token rendering into Datasources (authored by epriestley <git@epriestley.com>).Apr 20 2015, 19:06