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

Support custom row classes for manager #3004

Merged
merged 2 commits into from
May 12, 2024
Merged

Conversation

simolus3
Copy link
Owner

This adds support for generating manager classes for tables with existing row classes. At the moment, the only thing I had to change was removing the DataClass generic bound in the runtime.
@dickermoshe, can you check whether you need the extends DataClass bound for future manager changes? If not I think this sounds like a fairly easy way to port manager code over to more tables.

Closes #2989.

@simolus3 simolus3 requested a review from dickermoshe May 11, 2024 19:55
@github-actions github-actions bot temporarily deployed to commit May 11, 2024 19:57 Inactive
Copy link

github-actions bot commented May 11, 2024

🚀 Deployed on https://deploy-preview-3004--moor.netlify.app

@github-actions github-actions bot temporarily deployed to pull request May 11, 2024 20:00 Inactive
@dickermoshe
Copy link
Collaborator

dickermoshe commented May 12, 2024

This may make it harder to add features later, but nothing impossible.
Custom Row Classes are needed for supporting other DBs so I guess it's a worthy tradeoff.

Copy link
Collaborator

@dickermoshe dickermoshe left a comment

Choose a reason for hiding this comment

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

Seems like tests are failing

@github-actions github-actions bot temporarily deployed to commit May 12, 2024 01:32 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 12, 2024 01:32 Inactive
Copy link
Collaborator

@dickermoshe dickermoshe left a comment

Choose a reason for hiding this comment

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

Some small assert was causing bugs, LGTM now

@dickermoshe dickermoshe merged commit 9a22adf into develop May 12, 2024
21 checks passed
@simolus3 simolus3 deleted the manager-custom-row-classes branch May 12, 2024 19:49
@simolus3
Copy link
Owner Author

Thanks for taking a look and fixing the assert!

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.

Manager: Support tables with custom row classes
2 participants