Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix invalid team_context property references. #120

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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