Skip to content

Commit

Permalink
Allow temporarily unblocking metadata edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kitallis committed Oct 15, 2024
1 parent 8bdb142 commit 48176cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/models/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ def update_train_version!
train.update!(version_current: release_version)
end

def temporary_unblock_metadata_edits?
Flipper.enabled?(:temporary_unblock_metadata_edits, self)
end

private

def base_tag_name
Expand Down
2 changes: 1 addition & 1 deletion app/models/release_platform_run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ def metadata_editable?
end

def metadata_editable_v2?
return true if release.temporary_unblock_metadata_edits?
return unless active?
return false if active_production_release.present? && inflight_production_release.blank?

inflight_production_release.blank? || inflight_production_release.store_submission.pre_review?
end

Expand Down

0 comments on commit 48176cd

Please sign in to comment.