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

Ele 2237 new filter schema #1341

Merged
merged 7 commits into from
Dec 26, 2023
Merged

Ele 2237 new filter schema #1341

merged 7 commits into from
Dec 26, 2023

Conversation

NoyaArie
Copy link
Contributor

No description provided.

Copy link

linear bot commented Dec 26, 2023

Copy link
Contributor

👋 @NoyaArie
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

Copy link
Collaborator

@IDoneShaveIt IDoneShaveIt left a comment

Choose a reason for hiding this comment

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

Looking good!
Left one small pydantic comment 🙂

selector: Optional[str] = None
invocation_id: Optional[str] = None
invocation_time: Optional[str] = None
invocation_time: Optional[str] = Field(default=None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Because the default field is not mutable so you can just use None 🙂
The Field default factory is for dynamic defaults and mutable defaults like list and dict

Suggested change
invocation_time: Optional[str] = Field(default=None)
invocation_time: Optional[str] = None

@NoyaArie NoyaArie merged commit a90869f into master Dec 26, 2023
3 checks passed
@NoyaArie NoyaArie deleted the ele-2237-new-filter-schema branch December 26, 2023 14:59
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