Skip to content

Remove enable_packs feature flag (builds on #5642) - #5685

Merged
awwaiid merged 5 commits into
mainfrom
5251-remove-enable-packs-feature-flag
Aug 29, 2026
Merged

Remove enable_packs feature flag (builds on #5642)#5685
awwaiid merged 5 commits into
mainfrom
5251-remove-enable-packs-feature-flag

Conversation

@awwaiid

@awwaiid awwaiid commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Resolves #5251

Description

This builds directly on #5642 by @stefannibrasil (all of that work is included here, with credit — thank you!). That PR is a clean, surgical removal of the enable_packs flag: every Flipper.enabled?(:enable_packs) check is unwrapped keeping the enabled path, flag-off-only tests are deleted, and seeds/docs are updated. No references to the flag remain anywhere in the repo after this.

This branch adds one commit on top fixing two small spec issues from the unwrap:

  • Restores coverage for PicklistsPdf#data_no_units. Its only test was deleted because it lived in a "When packs are not enabled" context, but the method is still live code — it runs whenever a request's line items have no custom units, which is independent of the (removed) flag. The test is restored without the flag context.
  • Fixes context nesting in Partners::ItemRequest#quantity_with_units specs, where "when there is no request unit" was accidentally left nested inside "when there is a request unit".

Type of change

  • Cleanup of fully enabled feature flag code, tests, and documentation.

How Has This Been Tested?

bundle exec rspec spec/models/partners/item_request_spec.rb spec/pdfs/picklists_pdf_spec.rb — 21 examples, 0 failures. Rubocop clean on the touched files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RghnRBKSCZ2ydQnq9ZBxop

stefannibrasil and others added 5 commits August 28, 2026 15:28
The enable_packs flag removal deleted the only test for
PicklistsPdf#data_no_units, but that method is still live code -- it
runs whenever a request's line items have no custom units. Restore the
test without the flag context.

Also fix Partners::ItemRequest#quantity_with_units specs, where the
"when there is no request unit" context was accidentally left nested
inside "when there is a request unit" during the unwrap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RghnRBKSCZ2ydQnq9ZBxop
@awwaiid
awwaiid merged commit e2eeb36 into main Aug 29, 2026
23 checks passed
@awwaiid
awwaiid deleted the 5251-remove-enable-packs-feature-flag branch August 29, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We no longer need enable packs to be Flippered.

2 participants