Update ACE Editor to version 1.2.0
Previously, we were at an ACE editor published between 1.1.8 and 1.1.9. This caused multiple issues and was especially a problem for the upcoming pair programming feature. Further, updating ace is a long-time priority, see https://github.com/openHPI/codeocean/issues/250. Now, we are not yet updating to the latest version, but rather to the next minor version. This already contains breaking changes, and we are currently interested to keep the number of changes as low as possible. Further updating ACE might be still a future task. The new ACE version 1.2.0 is taken from this tag: https://github.com/ajaxorg/ace-builds/releases/tag/v1.2.0. We are using the src build (not minified, not in the noconflict version), since the same was used before as well. Further, we need to change our migration for storing editor events. Since the table is not yet used (in production), we also update the enum.
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveOutdatedColumnsFromEventsSynchronizedEditor < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
change_table :events_synchronized_editor do |t|
|
||||
t.remove :nl
|
||||
t.remove :text
|
||||
end
|
||||
end
|
||||
end
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_09_08_091810) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_09_12_142620) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_trgm"
|
||||
enable_extension "pgcrypto"
|
||||
@ -162,9 +162,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_08_091810) do
|
||||
t.integer "range_start_column"
|
||||
t.integer "range_end_row"
|
||||
t.integer "range_end_column"
|
||||
t.text "text"
|
||||
t.text "lines", array: true
|
||||
t.string "nl", limit: 2, comment: "Identifies the line break type (i.e., \\r\\n or \\n)"
|
||||
t.jsonb "data"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
|
Reference in New Issue
Block a user