Lines Matching refs:existing
249 existing = graph_data.Master.get_by_id(name)
250 if existing:
251 return existing
259 existing = graph_data.Bot.get_by_id(name, parent=parent_key)
260 if existing:
261 if existing.internal_only != internal_only:
262 existing.internal_only = internal_only
263 existing.put()
264 return existing
296 existing = graph_data.TestMetadata.get_by_id(test_path)
298 if not existing:
313 if existing.deprecated:
314 existing.deprecated = False
317 if existing.stoppage_alert:
318 alert = existing.stoppage_alert.get()
323 logging.warning('Stoppage alert %s not found.', existing.stoppage_alert)
324 existing.stoppage_alert = None
333 if direction != existing.improvement_direction:
334 existing.improvement_direction = direction
339 if (hasattr(existing, prop) and value is not None and
340 getattr(existing, prop) != value):
341 setattr(existing, prop, value)
345 existing.put()
346 return existing