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

Server-side kanban resolver #249

Merged
merged 14 commits into from
Jun 21, 2024
Merged

Server-side kanban resolver #249

merged 14 commits into from
Jun 21, 2024

Conversation

martastain
Copy link
Member

@martastain martastain commented Jun 19, 2024

Provides a graphql resolver for Kanban data using an optimized query.

image

Most of the fields should be straightforward, lastVersionWithThumbnailId is used when the task does not have its own thumbnailId - in that case, id of the last (or hero) version that has ID is returned in this field to be used instead.

Filters available:

projects : list[str], optional

List of project IDs to filter tasks. If not specified, tasks from all projects are listed. For non-managers, the result is limited to projects the user has access to. Inactive projects are never included.

assignees : list[str], optional

List of user names to filter tasks. If the invoking user is a manager, tasks assigned to the specified users are listed. If not provided, all tasks are listed regardless of assignees. For non-managers, this is always set to [user.name].

@martastain martastain linked an issue Jun 19, 2024 that may be closed by this pull request
@martastain martastain added the type: feature Adding something new and exciting to the product label Jun 19, 2024
@martastain martastain self-assigned this Jun 19, 2024
@martastain martastain requested a review from Innders June 19, 2024 09:40
Copy link
Member

@Innders Innders left a comment

Choose a reason for hiding this comment

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

image

2024-06-19 11:45:01 ERROR server GraphQL: /usr/local/lib/python3.11/site-packages/graphql/execution/execute.py:774 (kanban/edges/0/node/dueDate) 'str' object has no attribute 'isoformat'

@martastain
Copy link
Member Author

2024-06-19 11:45:01 ERROR server GraphQL: /usr/local/lib/python3.11/site-packages/graphql/execution/execute.py:774 (kanban/edges/0/node/dueDate) 'str' object has no attribute 'isoformat'

Thanks! fixed.

@martastain martastain requested a review from Innders June 19, 2024 11:02
@martastain martastain merged commit 70d246c into develop Jun 21, 2024
@martastain martastain deleted the 248-graphql-kanban-resolver branch June 24, 2024 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Adding something new and exciting to the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraphQL: KanBan resolver
2 participants