Lines Matching refs:labels
64 # often chosen via dependency labels.
204 """The tag to indicate Whether to replace labels with static labels."""
224 labels = dbmodels.ManyToManyField(Label, blank=True,
495 'labels',
508 labels = dbmodels.ManyToManyField(Label, blank=True,
527 """Split labels to static & non-static.
529 @label_names: a list of labels (string).
537 labels = Label.objects.filter(name__in=label_names)
540 return [], labels
542 return cls.classify_label_objects(labels)
578 # Some labels don't exist in afe db, which means no hosts
586 initial_query = initial_query.filter(labels=l)
599 labels = Label.objects.filter(id__in=label_ids)
600 label_names = [l.name for l in labels]
642 For all labels that have been assigned to a shard, all hosts that
643 have at least one of the shard's labels are assigned to the shard.
655 @param shard: The shard object to assign labels/hosts for.
685 labels__in=shard.labels.all(),
697 labels__in=shard.labels.all(),
722 self.labels.clear()
799 platforms = self.labels.filter(platform=True)
832 raise model_logic.ValidationError({'labels': '; '.join(errors)})
837 """Verify the specified hosts have valid board labels and the given
838 new board labels can be added.
842 @param new_labels: A list of labels to be added to the hosts.
844 @raises model_logic.ValidationError if any host has invalid board labels
845 or the given board labels cannot be added to the hsots.
863 errors.append('Host %s already has board labels: %s' % (
866 raise model_logic.ValidationError({'labels': '; '.join(errors)})
1030 dependency_labels: many-to-many relationship with labels corresponding to
1371 dependency_labels: many-to-many relationship with labels corresponding to
1417 # labels nor meta_host.
1421 # - one of the host's labels matches the shard's label.
1563 def labels(self):
1564 """All the labels of this job"""
1639 For all labels that have been assigned to this shard, all jobs that
1696 shard.labels.all())