Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix flaky spec

Christophe Bliarda5611c6844ae
diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
index dd5ba378ba7..93573ebd701 100644
--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
@@ -87,7 +87,7 @@ export class WorkPackageRelationsComponent extends UntilDestroyedMixin implement
.events$
.pipe(
filter((e) => e.eventType === 'association' || e.eventType === 'updated'),
- throttleTime(1000),
+ throttleTime(1000, undefined, { leading: true, trailing: true }),
this.untilDestroyed(),
)
.subscribe(() => {