Here is our initial proposal for a dismissal mechanism only seen by the local editor.
- Dismissal information is stored locally, in the editor's browser.
- Use IndexedDB storage to store, for a given article, all suggestions the editor has dismissed. Rationale: other types of browser storage are not persistent enough (session storage) or have severe size constraints (local storage).
- For each dismissed suggestion, store the complete suggestion data, in the format proposed for the much more complex problem of global suggestion dismissal (https://www.mediawiki.org/wiki/User:DChan_(WMF)/Dismissal_of_edit_suggestions).
- In particular, the format includes a robust target selector compatible with the Web Annotation data model.
- Using the selector, dismissed suggestions can be heuristically matched against later article revisions.
- The exemplar code from T431617 will be used to convert between stored suggestion data format and native mw.editcheck.EditCheckAction instances.
- Unlike for global dismissal, there would be no need for UUIDs or shortlist keys, as it is feasible to load every dismissed suggestion and check them against the current article state. The size of this data remains manageable, since an extreme case would be a single editor dismissing several hundred suggestions or maybe a few thousand suggestions, accumulated over many edits to the same article.
- Suggestions which no longer heuristically match against the latest article can be forgotten. This means over the long run, the growth of suggestions is bounded by a reasonable factor of total article length.
- Should the set of dismissed suggestions grow unmanageably large in rare cases, entries could be purged in age order to ensure a graceful fallback rather than an unresponsive edit session.