# frozen_string_literal: true

RSpec.shared_context 'with FOSS query type fields' do
  # extracted these fields into a shared variable so that we can define FOSS fields once and use them on EE spec as well
  let(:expected_foss_fields) do
    [
      :admin_groups,
      :admin_projects,
      :board_list,
      :ci_application_settings,
      :ci_config,
      :ci_pipeline_stage,
      :ci_variables,
      :container_repository,
      :current_user,
      :design_management,
      :echo,
      :frecent_groups,
      :frecent_projects,
      :gitpod_enabled,
      :group,
      :groups,
      :integration_exclusions,
      :issue,
      :issues,
      :jobs,
      :merge_request,
      :metadata,
      :milestone,
      :namespace,
      :note,
      :organization,
      :organizations,
      :package,
      :project,
      :projects,
      :query_complexity,
      :runner,
      :runner_platforms,
      :runner_setup,
      :runners,
      :snippets,
      :synthetic_note,
      :timelogs,
      :todo,
      :topics,
      :usage_trends_measurements,
      :user,
      :users,
      :wiki_page,
      :work_item,
      :work_item_description_template_content,
      :work_items_by_reference,
      :audit_event_definitions,
      :abuse_report,
      :abuse_report_labels,
      :feature_flag_enabled
    ]
  end
end
