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

Add Alchemy.user_class_primary_key setting #1708

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jan 7, 2020

After we merged 24bef77 we force
Rails to connect to the database whenever we eager load the page class.

Instead we introduce a config so users with Userclass primary keys
different than :id can set it.

Refs #710
Refs #711
Refs #1658

After we merged 24bef77 we force
Rails to connect to the database whenever we eager load the page class.

Instead we introduce a config so users with Userclass primary keys
different than :id can set it.

Refs AlchemyCMS#710
Refs AlchemyCMS#711
Refs AlchemyCMS#1658
@tvdeyen
Copy link
Member Author

tvdeyen commented Jan 7, 2020

@afdev82 this will affect you after upgrading to Alchemy 4.4.1.

Unfortunately there is no other way to make this working with unnormal primary keys and still support user class eager loading.

Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tvdeyen tvdeyen merged commit 89e4035 into AlchemyCMS:master Jan 7, 2020
@tvdeyen tvdeyen deleted the add-user-class-primary-key-config branch January 7, 2020 17:08
tvdeyen added a commit that referenced this pull request Jan 8, 2020
- Fix updating page preview after element create/save [#1710](#1710) ([tvdeyen](https://github.com/tvdeyen))
- Element editor layout changes [#1709](#1709) ([tvdeyen](https://github.com/tvdeyen))
- Add Alchemy.user_class_primary_key setting [#1708](#1708) ([tvdeyen](https://github.com/tvdeyen))
- Add Element views upgrade tasks [#1707](#1707) ([tvdeyen](https://github.com/tvdeyen))
- Use postMessage to send messages between preview and element windows [#1704](#1704) ([tvdeyen](https://github.com/tvdeyen))
tvdeyen added a commit that referenced this pull request Jan 8, 2020
- Fix updating page preview after element create/save [#1710](#1710) ([tvdeyen](https://github.com/tvdeyen))
- Element editor layout changes [#1709](#1709) ([tvdeyen](https://github.com/tvdeyen))
- Add Alchemy.user_class_primary_key setting [#1708](#1708) ([tvdeyen](https://github.com/tvdeyen))
- Add Element views upgrade tasks [#1707](#1707) ([tvdeyen](https://github.com/tvdeyen))
- Use postMessage to send messages between preview and element windows [#1704](#1704) ([tvdeyen](https://github.com/tvdeyen))
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