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

feat: added celery task feature - with task graphs and details #6840

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SagarRajput-7
Copy link
Contributor

@SagarRajput-7 SagarRajput-7 commented Jan 17, 2025

Summary

Related Issues / PR's

Screenshots

Screen.Recording.2025-01-17.at.8.48.48.AM.mov

image

Affected Areas and Manually Tested Areas


Important

Introduces a new feature for managing Celery tasks with detailed views and graphs, including routing, styling, and utility updates.

  • Behavior:
    • Adds CeleryTask component in CeleryTask.tsx to display Celery task details and graphs.
    • Integrates CeleryTaskConfigOptions, CeleryTaskDetail, and CeleryTaskGraphGrid components for task configuration, detail view, and graph display.
    • Implements task filtering and URL query parameter handling in CeleryTaskConfigOptions.tsx.
  • Routing:
    • Adds CeleryTask route in routes.ts and AppRoutes/pageComponents.ts.
    • Updates ROUTES in constants/routes.ts to include MESSAGING_QUEUES_CELERY_TASK.
  • Styles:
    • Adds styles for Celery task components in CeleryTask.styles.scss, CeleryTaskConfigOptions.styles.scss, and CeleryTaskGraph.style.scss.
  • Utilities:
    • Adds utility functions in CeleryUtils.ts for query parameter management.
  • Permissions:
    • Updates routePermission in utils/permission/index.ts to include MESSAGING_QUEUES_CELERY_TASK.

This description was created by Ellipsis for 69988a1. It will automatically update as commits are pushed.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added docs required enhancement New feature or request labels Jan 17, 2025
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 593d666 in 1 minute and 18 seconds

More details
  • Looked at 1154 lines of code in 22 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraph.tsx:57
  • Draft comment:
    Remove the console.log statement to clean up the code for production.
					```
  • Reason this comment was not posted:
    Marked as duplicate.
2. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraph.tsx:47
  • Draft comment:
    Avoid using inline styles for the Card component. Use external stylesheets or styled components instead.
  • Reason this comment was not posted:
    Marked as duplicate.
3. frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx:66
  • Draft comment:
    Avoid using inline styles for the Button component. Use external stylesheets or styled components instead.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_G1Qngh0GJjKTSYsC


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

onClose,
}: CeleryTaskDetailProps): JSX.Element {
const isDarkMode = useIsDarkMode();
console.log(task);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the console.log statement to clean up the code for production.

Suggested change
console.log(task);
```

}}
className="celery-task-detail-drawer"
destroyOnClose
closeIcon={<X size={16} style={{ marginTop: Spacing.MARGIN_1 }} />}
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid using inline styles for the closeIcon in the Drawer component. Use external stylesheets or styled components instead.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

1 similar comment
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 69988a1 in 1 minute and 2 seconds

More details
  • Looked at 184 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx:28
  • Draft comment:
    Remove the console.log statement to clean up the code.

  • Reason this comment was not posted:
    Comment looked like it was already resolved.
2. frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx:26
  • Draft comment:
    Avoid using inline styles. Consider using external stylesheets, CSS classes, or styled components instead.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.
3. frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraph.style.scss:64
  • Draft comment:
    Use design tokens or predefined color constants instead of hardcoding color values to maintain consistency in design and theming. This is also applicable to lines 51, 60, 75, 82, and 92.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.

Workflow ID: wflow_STQTbl1b8q63NvaN


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs required enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant