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 auto rule link records #685

Merged
merged 6 commits into from
Nov 25, 2024
Merged

Fix auto rule link records #685

merged 6 commits into from
Nov 25, 2024

Conversation

AlexCXC
Copy link
Contributor

@AlexCXC AlexCXC commented Nov 7, 2024

No description provided.

@r350178982 r350178982 force-pushed the fix-auto-rule-link-records branch from 42cd720 to e71bed3 Compare November 23, 2024 01:57
else:
return value
def gen_filter(self, column, other_column):
"""Generate a filter dict to filter other table
Copy link
Contributor

Choose a reason for hiding this comment

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

这里总共就13中if列类型, 看了一下, 缺少 if column['type'] == ColumnTypes.EMAIL 处理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

函数第一个 if 里有 email

return self.gen_filter({'key': column['key'], 'type': ColumnTypes.NUMBER}, other_column)
elif column_data.get('result_type') == 'bool':
return self.gen_filter({'key': column['key'], 'type': ColumnTypes.CHECKBOX}, other_column)

Copy link
Contributor

Choose a reason for hiding this comment

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

这里是不是还需要加入 result_type == 'date' 类型呢?

'filter_predicate': self.COLUMN_FILTER_PREDICATE_MAPPING[ColumnTypes.CHECKBOX]
}
elif other_column['type'] == ColumnTypes.FORMULA:
if other_column_data.get('result') == 'bool':
Copy link
Contributor

Choose a reason for hiding this comment

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

other_column_data.get('result') --> other_column_data.get('result_type')

@freeplant freeplant merged commit 8baa50b into master Nov 25, 2024
1 check passed
@freeplant freeplant deleted the fix-auto-rule-link-records branch November 25, 2024 03:10
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