Project

General

Profile

action #159411

Updated by okurz 3 months ago

## Motivation 

 dependabot [automatically prepares PR's](https://github.com/os-autoinst/openQA/pulls/app%2Fdependabot) as a new version of a dependency we rely on is available. Some of the updates require manual intervention when there's incompatible changes. We should treat them like *High* tickets. 

 codemirror 6.0.1 has been available since March 15 meaning it exceeds our SLA and we should look into it asap, hence this ticket to make it more visible. 

 ## Acceptance criteria 
 * **AC1:** The codemirror dependency has been upgraded, replaced or otherwise handled 

 ## Suggestions 
 * See https://github.com/os-autoinst/openQA/pull/5524 as a starting point for the upgrade 
 Note that there'd be also many alternatives: https://js.libhunt.com/codemirror-alternatives 
 Considering that updating CodeMirror would be quite some effort as well we should consider looking into alternatives as well: 
 * Look into "ace editor", Try https://ace.c9.io/ 
 * Quill looks light-weight (see https://www.npmjs.com/package/quill). It uses https://highlightjs.org as dependency and would definitely support all languages we need that way. Judging by this example no bundling is required for that. mkittler votes for quill because that would probably be very easy to do. One just had to follow the example from https://quilljs.com/docs/modules/syntax. but hasn't consider ace editor yet 

 ## Rollback actions 
 * *DONE* ~~Enable ~Enable auto-update service on o3~~ o3~ 
 * *DONE* ~~Make ~Make sure openqa on o3 is up-to-date again~~ again~ 

Back