Datatamer / tamr-client

Programmatically interact with Tamr
https://tamr-client.readthedocs.io
Apache License 2.0
11 stars 25 forks source link

be able to get schema mapping recipe_id and dedup recipe_id #216

Closed YJ-tamr closed 5 years ago

YJ-tamr commented 5 years ago

🙋 feature request

when using internal API, these 2 recipe_id are frequently need to call endpoint in schema mapping and mastering workflow. will be convenient if both schema mapping recipe_id and dedup recipe_id can be fetched by python client

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

def get_project_recipe_id(unify, project_tgr):
        project_relativeId = project_util.get_project_metadata(unify, project_tgr)["relativeId"]
        abs_path_API = "/api/recipe/"
        resp = unify.get(
            '{}{}'.format(abs_path_API, project_relativeId),
            headers={
                'Content-Type': 'application/json',
                'Content-Encoding': 'utf-8' }).json()
        smr_recipe_id = resp['data']['steps'][1]['id']
        return smr_recipe_id

🔦 Context

💻 Examples

pcattori commented 5 years ago

~@yizhiyintamr~ @YJ-tamr : recipes are an internal API concept not exposed by the versioned Unify API. Since the Python Client makes backwards compatibility guarantees, it cannot depend on internal APIs or concepts from the internal APIs.

YJ-tamr commented 5 years ago

thank you for your explaination. I think you confused me with Yizhi by the way.

Yi Jin

Sales Engineer

Tamr lnc.

66 Church street

Cambridge, MA 02138

On Tue, Jul 30, 2019 at 10:14 AM Pedro Cattori notifications@github.com wrote:

@yizhiyintamr https://github.com/yizhiyintamr recipes are an internal API concept not exposed by the versioned Unify API. Since the Python Client makes backwards compatibility guarantees, it cannot depend on internal APIs or concepts from the internal APIs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Datatamer/unify-client-python/issues/216?email_source=notifications&email_token=AKVPDID5FP6J25X4Z6FZ3L3QCBEGDA5CNFSM4IHV3JJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3EDQEA#issuecomment-516438032, or mute the thread https://github.com/notifications/unsubscribe-auth/AKVPDIHNXN6QGXJVF3JKPZLQCBEGDANCNFSM4IHV3JJQ .

pcattori commented 5 years ago

@YJ-tamr oops, yea I typed "@yi" and hit enter without looking 😛 sorry!