Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0ecabcff
Commit
0ecabcff
authored
Jan 11, 2022
by
Pedro Pombeiro
Committed by
Patrick Bair
Jan 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add maintainer_note field to CI runners table
Changelog: added
parent
b803af88
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
1 deletion
+32
-1
app/models/ci/runner.rb
app/models/ci/runner.rb
+2
-0
db/migrate/20220111095006_add_maintainer_note_to_ci_runners.rb
...grate/20220111095006_add_maintainer_note_to_ci_runners.rb
+12
-0
db/migrate/20220111095007_add_text_limit_to_ci_runners_maintainer_note.rb
...111095007_add_text_limit_to_ci_runners_maintainer_note.rb
+13
-0
db/schema_migrations/20220111095006
db/schema_migrations/20220111095006
+1
-0
db/schema_migrations/20220111095007
db/schema_migrations/20220111095007
+1
-0
db/structure.sql
db/structure.sql
+3
-1
No files found.
app/models/ci/runner.rb
View file @
0ecabcff
...
...
@@ -210,6 +210,8 @@ module Ci
validates
:config
,
json_schema:
{
filename:
'ci_runner_config'
}
validates
:maintainer_note
,
length:
{
maximum:
255
}
# Searches for runners matching the given query.
#
# This method uses ILIKE on PostgreSQL for the description field and performs a full match on tokens.
...
...
db/migrate/20220111095006_add_maintainer_note_to_ci_runners.rb
0 → 100644
View file @
0ecabcff
# frozen_string_literal: true
class
AddMaintainerNoteToCiRunners
<
Gitlab
::
Database
::
Migration
[
1.0
]
enable_lock_retries!
def
change
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20220111095007_add_text_limit_to_ci_runners_maintainer_note.rb
add_column
:ci_runners
,
:maintainer_note
,
:text
# rubocop:enable Migration/AddLimitToTextColumns
end
end
db/migrate/20220111095007_add_text_limit_to_ci_runners_maintainer_note.rb
0 → 100644
View file @
0ecabcff
# frozen_string_literal: true
class
AddTextLimitToCiRunnersMaintainerNote
<
Gitlab
::
Database
::
Migration
[
1.0
]
disable_ddl_transaction!
def
up
add_text_limit
:ci_runners
,
:maintainer_note
,
255
end
def
down
remove_text_limit
:ci_runners
,
:maintainer_note
end
end
db/schema_migrations/20220111095006
0 → 100644
View file @
0ecabcff
0bc00cc8a5fa7cafa665ec113a4d0d1384c5acde37dfdf53ab1f5a2e1d6acb02
\ No newline at end of file
db/schema_migrations/20220111095007
0 → 100644
View file @
0ecabcff
65259b0e71c1883b81c61354325cfeeade0013b55af8901bf707f2a94ee3a46a
\ No newline at end of file
db/structure.sql
View file @
0ecabcff
...
...
@@ -12177,7 +12177,9 @@ CREATE TABLE ci_runners (
public_projects_minutes_cost_factor double precision DEFAULT 0.0 NOT NULL,
private_projects_minutes_cost_factor double precision DEFAULT 1.0 NOT NULL,
config jsonb DEFAULT '{}'::jsonb NOT NULL,
executor_type smallint
executor_type smallint,
maintainer_note text,
CONSTRAINT check_56f5ea8804 CHECK ((char_length(maintainer_note) <= 255))
);
CREATE SEQUENCE ci_runners_id_seq
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment