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

Created Language Filter for Tasks #1165

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Dheeraj4103
Copy link
Contributor

Created Language Filter for Tasks

Description

This pull request implements a language filter feature for tasks. The new filter allows users to filter tasks based on their associated programming languages, improving the usability and efficiency of task management.

Purpose

The purpose of this pull request is to provide a streamlined way to filter tasks by programming languages. This solves the problem of users having to manually search for tasks related to specific languages.

Solution

The solution involves:

  1. Adding a dropdown multi-select filter for languages in the task list UI.
  2. Fetching available programming languages dynamically.
  3. Integrating the selected languages into the API call for filtering tasks.
  4. Ensuring that the language filter works seamlessly with existing project and organization filters.

Code changes include:

  • Enhancements to the task list component to include the language filter.
  • Backend support to handle the languageIds filter in task queries.
  • Updates to the database query logic to support filtering by multiple languages.

Screenshots

Language Filter Dropdown

image
image

Filtered Task List

image

Checklist

  • Code has been tested and works as intended
  • Properly documented code
  • Follows coding standards and guidelines
  • All tests pass
  • No conflicts with current codebase

Related Issues

  • #887 : Add language to issue on explore

Additional Notes

  • The filter functionality has been tested across various scenarios to ensure compatibility.
  • Additional tests were added to cover edge cases, such as no tasks available for the selected languages.

Contributor Guidelines

Please ensure that your pull request follows the guidelines outlined in the project's CONTRIBUTING.md file.

Thank you for your contribution!

Copy link

codeautopilot bot commented Dec 29, 2024

PR summary

This pull request introduces a language filter feature for tasks, allowing users to filter tasks based on associated programming languages. This enhancement improves task management by enabling users to easily find tasks related to specific languages. The implementation includes a dropdown multi-select filter in the UI, dynamic fetching of available languages, integration with API calls for task filtering, and compatibility with existing filters. Backend support and database query logic have been updated to handle language-based filtering. Additionally, new database tables and models for programming languages and their associations with tasks have been created.

Suggestion

To enhance the robustness of this feature, consider adding unit tests for the new backend logic, particularly for the language filtering functionality. This will ensure that the feature works as expected and can handle edge cases effectively. Additionally, reviewing the naming conventions for consistency, such as correcting "LIST_LAGUAGE" to "LIST_LANGUAGE" in the action types, would improve code readability and maintainability.

Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect.

Current plan usage: 28.97%

Have feedback or need help?
Discord
Documentation
[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant