Class: Analytics::CycleAnalytics::ProjectStage

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Stage
Defined in:
app/models/analytics/cycle_analytics/project_stage.rb

Constant Summary

Constants included from RelativePositioning

RelativePositioning::IDEAL_DISTANCE, RelativePositioning::MAX_GAP, RelativePositioning::MAX_POSITION, RelativePositioning::MIN_GAP, RelativePositioning::MIN_POSITION, RelativePositioning::NoSpaceLeft, RelativePositioning::START_POSITION, RelativePositioning::STEPS

Class Method Summary collapse

Methods included from Stage

#default_stage?, #end_event, #end_event_identifier=, #end_event_label_based?, #find_with_same_parent!, #matches_with_stage_params?, #params_for_end_event, #params_for_start_event, #parent, #parent=, #start_event, #start_event_identifier=, #start_event_label_based?, #subject_class

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods included from RelativePositioning

#max_relative_position, #min_relative_position, #move_after, #move_before, #move_between, #move_sequence_after, #move_sequence_before, #move_to_end, #move_to_start, #next_relative_position, #prev_relative_position

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.relative_positioning_parent_columnObject


22
23
24
# File 'app/models/analytics/cycle_analytics/project_stage.rb', line 22

def self.relative_positioning_parent_column
  :project_id
end

.relative_positioning_query_base(stage) ⇒ Object


18
19
20
# File 'app/models/analytics/cycle_analytics/project_stage.rb', line 18

def self.relative_positioning_query_base(stage)
  where(project_id: stage.project_id)
end