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
fff0cc8c
Commit
fff0cc8c
authored
Jun 18, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
0d1661c2
b6cc32b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
db/post_migrate/20190611161642_add_index_to_events_and_audit_events_created_at_author_id.rb
..._index_to_events_and_audit_events_created_at_author_id.rb
+25
-0
db/schema.rb
db/schema.rb
+2
-0
doc/api/graphql/index.md
doc/api/graphql/index.md
+1
-1
No files found.
db/post_migrate/20190611161642_add_index_to_events_and_audit_events_created_at_author_id.rb
0 → 100644
View file @
fff0cc8c
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddIndexToEventsAndAuditEventsCreatedAtAuthorId
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX_NAME
=
'analytics_index_%s_on_created_at_and_author_id'
.
freeze
EVENTS_INDEX_NAME
=
(
INDEX_NAME
%
'events'
).
freeze
AUDIT_EVENTS_INDEX_NAME
=
(
INDEX_NAME
%
'audit_events'
).
freeze
disable_ddl_transaction!
def
up
add_concurrent_index
:events
,
[
:created_at
,
:author_id
],
name:
EVENTS_INDEX_NAME
add_concurrent_index
:audit_events
,
[
:created_at
,
:author_id
],
name:
AUDIT_EVENTS_INDEX_NAME
end
def
down
remove_concurrent_index_by_name
:events
,
EVENTS_INDEX_NAME
remove_concurrent_index_by_name
:audit_events
,
AUDIT_EVENTS_INDEX_NAME
end
end
db/schema.rb
View file @
fff0cc8c
...
@@ -336,6 +336,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
...
@@ -336,6 +336,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
t
.
text
"details"
t
.
text
"details"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
index
[
"created_at"
,
"author_id"
],
name:
"analytics_index_audit_events_on_created_at_and_author_id"
,
using: :btree
t
.
index
[
"entity_id"
,
"entity_type"
],
name:
"index_audit_events_on_entity_id_and_entity_type"
,
using: :btree
t
.
index
[
"entity_id"
,
"entity_type"
],
name:
"index_audit_events_on_entity_id_and_entity_type"
,
using: :btree
end
end
...
@@ -1220,6 +1221,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
...
@@ -1220,6 +1221,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
t
.
string
"target_type"
t
.
string
"target_type"
t
.
index
[
"action"
],
name:
"index_events_on_action"
,
using: :btree
t
.
index
[
"action"
],
name:
"index_events_on_action"
,
using: :btree
t
.
index
[
"author_id"
,
"project_id"
],
name:
"index_events_on_author_id_and_project_id"
,
using: :btree
t
.
index
[
"author_id"
,
"project_id"
],
name:
"index_events_on_author_id_and_project_id"
,
using: :btree
t
.
index
[
"created_at"
,
"author_id"
],
name:
"analytics_index_events_on_created_at_and_author_id"
,
using: :btree
t
.
index
[
"project_id"
,
"created_at"
],
name:
"index_events_on_project_id_and_created_at"
,
using: :btree
t
.
index
[
"project_id"
,
"created_at"
],
name:
"index_events_on_project_id_and_created_at"
,
using: :btree
t
.
index
[
"project_id"
,
"id"
],
name:
"index_events_on_project_id_and_id"
,
using: :btree
t
.
index
[
"project_id"
,
"id"
],
name:
"index_events_on_project_id_and_id"
,
using: :btree
t
.
index
[
"target_type"
,
"target_id"
],
name:
"index_events_on_target_type_and_target_id"
,
using: :btree
t
.
index
[
"target_type"
,
"target_id"
],
name:
"index_events_on_target_type_and_target_id"
,
using: :btree
...
...
doc/api/graphql/index.md
View file @
fff0cc8c
...
@@ -46,7 +46,7 @@ curl --data "value=100" --header "PRIVATE-TOKEN: <your_access_token>" https://gi
...
@@ -46,7 +46,7 @@ curl --data "value=100" --header "PRIVATE-TOKEN: <your_access_token>" https://gi
A first iteration of a GraphQL API includes the following queries
A first iteration of a GraphQL API includes the following queries
1.
`project`
: Within a project it is also possible to fetch a
`mergeRequest`
by IID.
1.
`project`
: Within a project it is also possible to fetch a
`mergeRequest`
by IID.
1.
`group`
:
Only basic group information is
currently supported.
1.
`group`
:
Basic group information and epics
**[ULTIMATE]**
are
currently supported.
1.
`namespace`
: Within a namespace it is also possible to fetch
`projects`
.
1.
`namespace`
: Within a namespace it is also possible to fetch
`projects`
.
### Multiplex queries
### Multiplex queries
...
...
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