def add_seen(self, user=None):
		if not user:
			user = frappe.session.user

		if self.meta.track_seen:
			if self._seen:
				_seen = json.loads(self._seen)
			else:
				_seen = []

			if user not in _seen:
				_seen.append(user)
				self.db_set('_seen', json.dumps(_seen), update_modified=False)
				frappe.local.flags.commit = True
Add a validator callback to this Measurement, chainable.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.add_seen--crossover with--dataset/ETHPy150Open google/openhtf/openhtf/util/measurements.py/Measurement.WithValidator