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