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

Ensure the px.format_duration pxl function has its doc string set #1411

Merged

Conversation

ddelnano
Copy link
Member

@ddelnano ddelnano commented Jun 2, 2023

Summary: Ensure the px.format_duration pxl function has its doc string set

When working on #1407 I noticed that the docs.px.dev site didn't include the px.format_duration function despite being updated recently. This change addresses the issue causing the missing docs. Rather than updating the docs.px.dev site manually, I'll wait to propagate this change to that repo once #1408 is complete.

Relevant Issues: N/A

Type of change: /kind bug

Test Plan: Verified that the function exists in the documentation json file (P401)

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
@@ -212,7 +212,6 @@ class PixieModule : public QLObject {
duration = px.format_duration(-5 * 60 * 1000 * 1000 * 1000)
# duration = "5m" duration is rounded down to nearest whole minute.
duration = px.parse_duration(-5 * 60 * 1000 * 1000 * 1000 + 5)

# duration = "-5h"
duration = px.format_duration(-5 * 60 * 60 * 1000 * 1000 * 1000)
Copy link
Member Author

Choose a reason for hiding this comment

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

The //src/carnot/docstring:docstring command was failing without removing this whitespace.

@ddelnano ddelnano requested a review from a team June 2, 2023 16:32
@vihangm vihangm merged commit 69bcbac into pixie-io:main Jun 2, 2023
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.

2 participants