Skip to content

feat: support alias_attribute as valid keys for filter - #6956

Open
brunohkbx wants to merge 1 commit into
activeadmin:masterfrom
brunohkbx:feat/support-alias_attribute
Open

feat: support alias_attribute as valid keys for filter#6956
brunohkbx wants to merge 1 commit into
activeadmin:masterfrom
brunohkbx:feat/support-alias_attribute

Conversation

@brunohkbx

Copy link
Copy Markdown

Summary

Given a model with an alias_attribute like so:
alias_attribute :title_alias, :title

Then it will be possible to use the alias as a valid filter:
filter :title_alias, as: :select

@javierjulio

Copy link
Copy Markdown
Member

Does this work with other filter types? What if using a Ransack based filter? This just needs a rebase and push to run CI. Thank you.

Given a model with an alias_attribute like so:
`alias_attribute :title_alias, :title`

Then it will be possible to use the alias as a valid filter:
`filter :title_alias, as: :select`
@javierjulio
javierjulio force-pushed the feat/support-alias_attribute branch from d141ba0 to 00e298b Compare March 13, 2023 01:48
@codecov

codecov Bot commented Mar 13, 2023

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.47%. Comparing base (0a1521d) to head (00e298b).
⚠️ Report is 581 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6956   +/-   ##
=======================================
  Coverage   99.47%   99.47%           
=======================================
  Files         308      308           
  Lines       11306    11321   +15     
=======================================
+ Hits        11247    11262   +15     
  Misses         59       59           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants