Skip to content

Commit

Permalink
Merge pull request #120 from Microsoft/users/tedchamb/dev
Browse files Browse the repository at this point in the history
fix invalid team_context property references.
  • Loading branch information
tedchamb authored Sep 20, 2018
2 parents 169ef4d + e3ff1e4 commit 22ff726
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 224 deletions.
44 changes: 22 additions & 22 deletions vsts/vsts/dashboard/v4_0/dashboard_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -128,11 +128,11 @@ def get_dashboards(self, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down
44 changes: 22 additions & 22 deletions vsts/vsts/dashboard/v4_1/dashboard_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -128,11 +128,11 @@ def get_dashboards(self, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand All @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down
12 changes: 6 additions & 6 deletions vsts/vsts/test/v4_0/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1556,11 +1556,11 @@ def create_test_session(self, test_session, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -1592,11 +1592,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -1635,11 +1635,11 @@ def update_test_session(self, test_session, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down
12 changes: 6 additions & 6 deletions vsts/vsts/test/v4_1/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,11 +1638,11 @@ def create_test_session(self, test_session, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -1674,11 +1674,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down Expand Up @@ -1717,11 +1717,11 @@ def update_test_session(self, test_session, team_context):
project = None
team = None
if team_context is not None:
if team_context.project_Id:
if team_context.project_id:
project = team_context.project_id
else:
project = team_context.project
if team_context.team_Id:
if team_context.team_id:
team = team_context.team_id
else:
team = team_context.team
Expand Down
Loading

0 comments on commit 22ff726

Please sign in to comment.