Skip to content

Conversation

@eau-defemme
Copy link
Collaborator

Goal is to reduce the amount of calls to the /api/v2/trigger endpoint in the project repository view ; specifically in context of particularly large projects with many triggers it might be preferable to batch the data in one request rather than an arbitrarily large list of them that gets re-fetched any time there's a re-render (ie: when filtering the repository list). Also included is a debounce on the repository filter. Might be worth adding a configurable default debounce time (ie: in scenarios that debounce based on human input, the debounce time is configurable rather than hardcoded). Open to discussion on the value of such a configuration.

@eau-defemme eau-defemme added the wip Work in progress, do not merge label Jan 6, 2026
@eau-defemme eau-defemme removed the wip Work in progress, do not merge label Jan 15, 2026
dispatch,
});

const triggerInfo = useApi<TriggerEntry[]>(fetchTriggers, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This triggerInfo object can contain an error, AFAIR? We should display it if that's the case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on a per-trigger level, or the request as a whole? Is there a standard way of reporting errors or should I just add some UI element with a red background? I haven't crawled the frontend codebase as much.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants