mediawiki-extensions-Visual.../modules/ve-mw/init
Bartosz Dziewoński df43a1ef96 Update save failure logging for EditAttemptStep schema, simplify code
* Remove custom internal events in ArticleTarget for every error type.
  The indirection was just making it harder to figure out what data
  goes where.

* Centralize the actual logging in ArticleTarget, instead of doing it
  in a dozen methods.

* Directly use the error code from the API for 'save_failure_message'.
  Previously we'd lose the original error code and generate a new one
  in the event indirection stuff, except for 'responseUnknown'.

* Update 'save_failure_type' map. Remove unused error codes, update
  the ones that changed, and sort in the order in which the types are
  listed on the schema page.

Bug: T272162
Change-Id: Ied602c456f4b0e7e9bb135e3200bec5ce65641ba
2021-01-15 20:06:20 +01:00
..
apiresponsecache doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
styles build: Use "Grade A" rules for stylelint 2020-12-01 08:35:03 -08:00
targets Update save failure logging for EditAttemptStep schema, simplify code 2021-01-15 20:06:20 +01:00
ve.init.mw.ArticleTargetEvents.js Update save failure logging for EditAttemptStep schema, simplify code 2021-01-15 20:06:20 +01:00
ve.init.mw.js build: Update eslint-config-wikimedia to 0.16.0 2020-06-02 21:30:00 +01:00
ve.init.mw.Platform.init.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.Platform.js Update VE core submodule to master (68c5f1a3c) 2020-10-08 19:09:12 +01:00
ve.init.mw.SaveErrorHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.trackSubscriber.js Give revision_id a fallback that'll validate 2020-11-30 11:17:23 -06:00
ve.init.mw.ViewportZoomHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00