[META] Deprecation issues in devel module
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3042575. -->
Reported by: [chaseontheweb](https://www.drupal.org/user/1447780)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The results of running Devel PHPUnit tests with <code>suppress-deprecations: false</code> report the following uses of deprecated code at core 8.9. The total number varies slightly from run to run due to the randomness within the Devel Generate tests.</p>
<table>
<tr>
<th>Date</th>
<th>Total deprecation count</th>
<th>Deprecation message types</th>
</tr>
<tr>
<td>17 November</td>
<td>350</td>
<td></td>
</tr>
<tr>
<td>18 November</td>
<td>262</td>
<td>23</td>
</tr>
<tr>
<td>20 November</td>
<td>147</td>
<td>19</td>
</tr>
<tr>
<td>4 December</td>
<td>100</td>
<td>18</td>
</tr>
<tr>
<td>5 December</td>
<td>87</td>
<td>14</td>
</tr>
<tr>
<td>22 January 2020</td>
<td>67</td>
<td>11</td>
</tr>
<tr>
<td>10 March</td>
<td>64</td>
<td>10</td>
</tr>
<tr>
<td>17 March</td>
<td>57</td>
<td>8</td>
</tr>
<tr>
<td>18 March</td>
<td>80</td>
<td>7</td>
</tr>
<tr>
<td>6 April</td>
<td>42</td>
<td>5</td>
</tr>
</table>
<p>Remaining deprecation notices:</p>
<ul>
<li>15x: \Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the "path_alias" entity type for CRUD methods. See <a href="https://www.drupal.org/node/3013865">https://www.drupal.org/node/3013865</a>.<br>
(note - the number here will vary due to the random element in devel generate content tests)<br>
<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-13"><a href="https://www.drupal.org/project/devel/issues/3095363" title="Status: Needs work">#3095363: Replace deprecated \Drupal\Core\Path\AliasStorage</a></span></li>
<li>15x: The Drupal\Core\Entity\Query\QueryFactory class is deprecated in Drupal 8.3.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead. See <a href="https://www.drupal.org/node/2849874">https://www.drupal.org/node/2849874</a><br>
<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/devel/issues/3098811" title="Status: Active">#3098811: Replace deprecated QueryFactory class with EntityStorageInterface</a></span></li>
<li>4x: The Drupal\FunctionalJavascriptTests\JavascriptTestBase is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.0. Instead, use Drupal\FunctionalJavascriptTests\WebDriverTestBase. See <a href="https://www.drupal.org/node/2945059">https://www.drupal.org/node/2945059</a><br>
<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/devel/issues/3097125" title="Status: Closed (fixed)">#3097125: Replace deprecated JavascriptTestBase with WebDriverTestBase</a></span></li>
<li>4x: \Drupal\user\PrivateTempStoreFactory is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStoreFactory instead. See <a href="https://www.drupal.org/node/2935639">https://www.drupal.org/node/2935639</a><br>
<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-17"><a href="https://www.drupal.org/project/devel/issues/3100276" title="Status: Closed (outdated)">#3100276: Replace deprecated user.private_tempstore and user.shared_tempstore with services now in Core</a></span></li>
<li>4x: \Drupal\user\SharedTempStoreFactory is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStoreFactory instead. See <a href="https://www.drupal.org/node/2935639">https://www.drupal.org/node/2935639</a><br>
<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-17"><a href="https://www.drupal.org/project/devel/issues/3100276" title="Status: Closed (outdated)">#3100276: Replace deprecated user.private_tempstore and user.shared_tempstore with services now in Core</a></span></li>
</ul>
<p>The above notices are reported because the functions and methods have @trigger_error. There are also many uses of deprecated code in Devel which should be corrected but are not shown in the deprecations report above. This is either because they do not have @trigger_error or because there is no code coverage for that part of the module.</p>
<p>For issues reported by <a href="https://github.com/mglaman/drupal-check/wiki/Drupal-9-Readiness" title="drupal-check">D9 drupal-check</a> please use <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/devel/issues/3127486" title="Status: Active">#3127486: Devel deprecations from D9 drupal-check report</a></span> as the parent issue.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Fix deprecations by type or by a group of related functions, which can be covered by individual issues.</p>
<h3 id="summary-remaining-tasks">Remaining tasks - Process</h3>
<ol>
<li>Determine which of the above notices are not yet covered by child issues</li>
<li>Create the child issue required</li>
<li>When a few child issues have beeen fixed update this issue summary with the reduced numbers</li>
</ol>
issue
GitLab AI Context
Project: project/devel
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/devel/-/raw/5.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/devel
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD