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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Revert "Load full HAL collection resources (#9383)"
Oliver Güntherfd4d793a0765
diff --git a/frontend/src/app/features/hal/resources/hal-resource.ts b/frontend/src/app/features/hal/resources/hal-resource.tsindex 4c28d8a83fd..a6469e60708 100644--- a/frontend/src/app/features/hal/resources/hal-resource.ts+++ b/frontend/src/app/features/hal/resources/hal-resource.ts@@ -289,28 +289,6 @@ export class HalResource {// Reset and load this resourcethis.$loaded = false;this.$self = this.$links.self({}).then((source:any) => {- if (source.$halType === 'Collection') {- if (source.total > source.pageSize) {- const remaining = source.total - source.pageSize;- const pagesRemaining = Math.ceil(remaining / source.pageSize);- const calls = (new Array(pagesRemaining))- .fill(null)- .map((_, i) => this.$links.self({- pageSize: source.pageSize,- offset: i + 2, // Page offsets are 1-indexed, and we already fetched the first page- }));-- return Promise.all(calls).then((data:any[]) => {- source.count = source.total;- source.elements = source.elements.concat(...data.map(source => source.elements));- return source;- });- }- }-- return source;- })- .then((source:any) => {this.$loaded = true;this.$initialize(source.$source);return this;