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

Refine Integration #710

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

Refine Integration #710

wants to merge 19 commits into from

Conversation

kaspth
Copy link
Contributor

@kaspth kaspth commented Dec 1, 2023

Integrating refine-rails into Bullet Train.

Starter Repo PR: bullet-train-co/bullet_train#1233


condition(:date_field_value, :date),
condition(:date_and_time_field_value, :datetime),
condition(:created_at, :datetime),
Copy link

Choose a reason for hiding this comment

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

One thing I would recommend is we add in the clause manipulations for created_at and updated_at generators. The IS_SET and IS_NOT_SET clauses serve no purpose for these fields since they are always present so the scaffolding should probably automatically apply
.without_clauses([DateWithTimeCondition::CLAUSE_SET, DateWithTimeCondition::CLAUSE_NOT_SET]) for simplicity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ssteffen good point! I just pushed 382ef94 which will use a column's null: false information to automatically reject the presence concerned clauses aka SET/NOT_SET.

I think I found a bug in Refine though, so I'll submit a PR shortly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, looks like that was fixed in clickfunnels2/refine-rails#157, but I happened to be running an older version of Refine (thought I'd updated ugh).

@kaspth kaspth marked this pull request as draft December 8, 2023 19:27
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.

3 participants