|
|
|
@ -112,8 +112,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:required) { true } |
|
|
|
|
let(:writable) { false } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'name' do |
|
|
|
@ -130,8 +128,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:min_length) { 1 } |
|
|
|
|
let(:max_length) { 255 } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'createdAt' do |
|
|
|
@ -143,8 +139,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:required) { true } |
|
|
|
|
let(:writable) { false } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'updatedAt' do |
|
|
|
@ -156,8 +150,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:required) { true } |
|
|
|
|
let(:writable) { false } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'user' do |
|
|
|
@ -170,8 +162,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { false } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'project' do |
|
|
|
@ -184,8 +174,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
it_behaves_like 'does not link to allowed values' |
|
|
|
|
|
|
|
|
|
context 'when embedding' do |
|
|
|
@ -208,8 +196,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
context 'when having the :manage_public_queries permission' do |
|
|
|
|
before do |
|
|
|
|
allow(user) |
|
|
|
@ -248,8 +234,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'timelineVisible' do |
|
|
|
@ -262,8 +246,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'timelineZoomLevel' do |
|
|
|
@ -276,8 +258,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'timelineLabels' do |
|
|
|
@ -290,8 +270,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'show hierarchies' do |
|
|
|
@ -304,8 +282,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'starred' do |
|
|
|
@ -318,8 +294,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { false } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'highlighting_mode' do |
|
|
|
@ -332,8 +306,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'display_representation' do |
|
|
|
@ -346,8 +318,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe 'columns' do |
|
|
|
@ -361,8 +331,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
it_behaves_like 'does not link to allowed values' |
|
|
|
|
|
|
|
|
|
context 'when embedding' do |
|
|
|
@ -441,8 +409,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
it_behaves_like 'does not link to allowed values' |
|
|
|
|
|
|
|
|
|
context 'when global query' do |
|
|
|
@ -477,8 +443,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:writable) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
it_behaves_like 'does not link to allowed values' |
|
|
|
|
|
|
|
|
|
context 'when embedding' do |
|
|
|
@ -511,8 +475,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:has_default) { true } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
|
|
|
|
|
it_behaves_like 'does not link to allowed values' |
|
|
|
|
|
|
|
|
|
context 'when embedding' do |
|
|
|
@ -553,8 +515,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter do |
|
|
|
|
let(:required) { false } |
|
|
|
|
let(:writable) { false } |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it_behaves_like 'has no visibility property' |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|