Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields prepended with meta_ don't show up in resource #3668

Open
4 of 11 tasks
manfrin opened this issue Feb 15, 2025 · 1 comment
Open
4 of 11 tasks

Fields prepended with meta_ don't show up in resource #3668

manfrin opened this issue Feb 15, 2025 · 1 comment
Assignees
Labels
Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution.

Comments

@manfrin
Copy link

manfrin commented Feb 15, 2025

Describe the bug

I created a model with fields such as :title, :meta_title, :description, and :meta_description. I added these to the resource and went to avo, clicked create, and only fields for :title and :description showed up. I confirmed it was not some stale configuration issue by deleting and re-adding fields and they correctly disappeared/showed back up. I then rolled back my migration and changed the field names to seo_title and seo_description and changed them in the resource and they showed up.

Expected behavior & Actual behavior

All fields defined in the resource should show up.

System configuration

Avo version:
3.15.6
Rails version:
8.0.1
Ruby version:
3.3.6
License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
@Paul-Bob
Copy link
Contributor

Hi @manfrin

I couldn't reproduce this behavior.

  1. Generated and migrated this migration
class AddMetaTitleToProducts < ActiveRecord::Migration[8.0]
  def change
    add_column :products, :meta_title, :string
  end
end
  1. Added field :meta_title, as: :text to Avo::Resources::Product
  2. Visited product new view:

Image

Both title and meta_title rendered as expected.


I'm not sure what the issue was on your end, but could you please confirm if it still persists and provide the correct steps to reproduce it?

Thank you!

@Paul-Bob Paul-Bob self-assigned this Feb 17, 2025
@Paul-Bob Paul-Bob added the Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution. label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Reproduction Pending reproduction repository or detailed reproduction steps to proceed with issue resolution.
Projects
Status: No status
Development

No branches or pull requests

2 participants