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

Missing Drop Down options creating a new User or adding a membership after migration to new System #2101

Closed
rbrenner-snoop opened this issue Apr 26, 2024 · 8 comments

Comments

@rbrenner-snoop
Copy link

Hello,

as described in #2098 i moved an old pageflow installation to a new system.
I migrated the database as well as the theme data within the filesystem.

But now i have the problem that i cant add new accounts to a user. Typically this works via the membership view where there is a user select-box at the top but this select box is empty:

pageflow_create_membership

Something similar happens, when creating a new User:
The only Account i can select in the dropdown is the default Pageflow Account

pageflow_create_user

Could it be possible that i am missing some migrations? How can i check if there are migrations missing?
I tried to look through the pageflow code and im getting the feeling, that it is a database issue in my case.
But since i have no Ruby know-how im not sure at all.

Thanks in advance and best regards
Ronald

@tf
Copy link
Member

tf commented Apr 26, 2024

Looks like searchable selects are not initializing correctly. Are there JS errors?

Regarding migrations, you need to run bundle exec rake pageflow:install:migrations to copy migrations. But you probably already done that if you have Pageflow Scrolled working...

@rbrenner-snoop
Copy link
Author

No, there are no JS errors in my browser console.
There are also no errors within my production.log.
Since i am the admin user i thought i should be able to give myself or others all memberships.

Is there any configuration i could provide to you for better insights?

@tf
Copy link
Member

tf commented May 2, 2024

Let's take a look at your app/assets/javascripts/active_admin.js. The screenshots make it look like the select2/active_admin-searchable_select Javascript is missing.

@rbrenner-snoop
Copy link
Author

This is the whole content of that file app/assets/javascripts/active_admin.js:

//= require jquery
//= require active_admin/base

@rbrenner-snoop
Copy link
Author

i have added //= require pageflow/admin to that file after comparing it with the one from the old installation and now everything works fine.

Im somewhat confused, that this line was not added by the installation in the first place.

@tf
Copy link
Member

tf commented May 2, 2024

Maybe because you installed Active Admin in Webpacker mode?

@rbrenner-snoop
Copy link
Author

That could be the source of the problem. I see that i made a lot thinks worse by experimenting. I would like to provide a suggestions for the documentation for others not to make the same mistakes i made which solely were based on assumptions and which we all clarified. What would be the proper workflow for that?

But with that this issue can be closed now. Thanks a lot.... again 😅

@tf
Copy link
Member

tf commented May 2, 2024

Happy to accept pull requests with additions to README or troubleshooting files. Alternatively, a well crafted GitHub issue can also go along way to document a known issue.

@tf tf closed this as completed May 2, 2024
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

No branches or pull requests

2 participants