Class: Graphql::Dashboard::OperationStore::IndexEntriesController
  
  
  
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  #check_installed, #feature_installed?
  
  
  
  
  
  
  
  
  
  #schema_class
  
  
    Instance Method Details
    
      
  
  
    #index  ⇒ Object 
  
  
  
  
    
      
176
177
178
179
180
181
182
183
184
185
186
187
188 
     | 
    
      # File 'lib/graphql/dashboard/operation_store.rb', line 176
def index
  @search_term = if request.params["q"] && request.params["q"].length > 0
    request.params["q"]
  else
    nil
  end
  @index_entries_page = schema_class.operation_store.all_index_entries(
    search_term: @search_term,
    page: params[:page]&.to_i || 1,
    per_page: params[:per_page]&.to_i || 25,
  )
end
     | 
  
 
    
      
  
  
    #show  ⇒ Object 
  
  
  
  
    
      
190
191
192
193
194
195 
     | 
    
      # File 'lib/graphql/dashboard/operation_store.rb', line 190
def show
  name = params[:name]
  @entry = schema_class.operation_store.index.get_entry(name)
  @chain = schema_class.operation_store.index.index_entry_chain(name)
  @operations = schema_class.operation_store.get_operations_by_index_entry(name)
end 
     |