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

Deprecate "to_timestamp" function #285

Merged
merged 7 commits into from
Jul 1, 2023
Merged

Conversation

pront
Copy link
Collaborator

@pront pront commented Jun 28, 2023

closes: #188

@pront pront requested a review from fuchsnj June 29, 2023 14:20
@pront pront marked this pull request as ready for review June 29, 2023 14:20
Copy link
Member

@fuchsnj fuchsnj left a comment

Choose a reason for hiding this comment

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

Overall this looks good. Just wanted to note that we also generally check the Vector regression tests for any usage of the deprecated function and replace those, but I don't see any so you should be good there.

) {
if func.ident == "to_timestamp" {
self.diagnostics.push(Box::new(
DeprecationWarning::new(format!("the `{}` function", func.ident).as_str())
Copy link
Member

Choose a reason for hiding this comment

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

Not really a big deal here, but the func.indent can be inlined since it's always to_timestamp

@fuchsnj
Copy link
Member

fuchsnj commented Jun 30, 2023

Forgot to mention: please add a changelog entry for this.

@pront
Copy link
Collaborator Author

pront commented Jun 30, 2023

@jszwedko
Copy link
Member

Should we remove this https://github.com/vectordotdev/vrl/blob/main/LICENSE-3rdparty.csv#L91?

I had noticed this as well in #288 . I opened #290 to update the license file.

@pront pront enabled auto-merge (squash) July 1, 2023 00:23
@pront pront merged commit 89b0c33 into main Jul 1, 2023
8 checks passed
@pront pront deleted the pront/deprecate-to-timestamp branch July 1, 2023 00:25
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.

Add from_unix_timestamp function
3 participants