# zeta: Check whether data collection is allowed for recent edit history \(\#37680\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0e33a3afe0f37b1a7a37fec6b068abe9dd984009)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0e33a3afe0f37b1a7a37fec6b068abe9dd984009

Requested commit: 0e33a3afe0f37b1a7a37fec6b068abe9dd984009

Commit: 0e33a3afe0f37b1a7a37fec6b068abe9dd984009

Tree: e2ae733f1f17b1669d057ac32452c061c1ffdb30

Author: Michael Sloan

Committer: GitHub

## Message

```
zeta: Check whether data collection is allowed for recent edit history (#37680)

Also:

* Adds tests for can_collect_data.
* Temporarily removes collection of diagnostics.

Release Notes:

- Edit Prediction: Fixed a bug where requests were marked eligible for
data collection despite the recent edit history in the request involving
files that may not be open source. The requests affected by this bug
will not be used in training data.
```

## Parents

- [76aaf6a8fe1992ec57114633e022c9771756bfaa](https://git.cafe/gitcafe/zed/commit/76aaf6a8fe1992ec57114633e022c9771756bfaa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0e33a3afe0f37b1a7a37fec6b068abe9dd984009?format=markdown)
