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

fix filter formula #151

Merged
merged 2 commits into from
Aug 7, 2023
Merged

fix filter formula #151

merged 2 commits into from
Aug 7, 2023

Conversation

yogasw
Copy link
Contributor

@yogasw yogasw commented Aug 1, 2023

Copy link
Owner

@jomei jomei left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! 🔥
Please, take a look at the suggestion below

@@ -144,7 +144,7 @@ type RelationFilterCondition struct {
}

type FormulaFilterCondition struct {
Text *TextFilterCondition `json:"text,omitempty"`
String *TextFilterCondition `json:"string,omitempty"`
Copy link
Owner

@jomei jomei Aug 6, 2023

Choose a reason for hiding this comment

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

Let's avoid breaking changes and fix it this way:

type FormulaFilterCondition struct {
        // DEPRECATED use `String` instead
	Text     *TextFilterCondition     `json:"text,omitempty"`
	String   *TextFilterCondition     `json:"string,omitempty"`
	....

@jomei jomei merged commit 038f987 into jomei:main Aug 7, 2023
1 check passed
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.

None yet

2 participants