Skip to content

Feature/976 resource relation templates - #1019

Merged
BeriBoss merged 41 commits into
masterfrom
feature/976-resource-relation-templates
Jul 14, 2026
Merged

Feature/976 resource relation templates#1019
BeriBoss merged 41 commits into
masterfrom
feature/976-resource-relation-templates

Conversation

@BeriBoss

Copy link
Copy Markdown
Contributor

No description provided.

@BeriBoss
BeriBoss requested a review from StephGit June 29, 2026 12:28
@BeriBoss
BeriBoss force-pushed the feature/976-resource-relation-templates branch 2 times, most recently from 6336673 to b4de437 Compare June 29, 2026 14:55

@StephGit StephGit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All in all great work, some minor findings

@BeriBoss
BeriBoss force-pushed the feature/976-resource-relation-templates branch from 64500f0 to 4be2bb6 Compare July 13, 2026 11:39
@BeriBoss
BeriBoss requested a review from StephGit July 13, 2026 14:00
}

isLoading = computed(() => {
return !(this.relation() != null && this.resource() != null && this.contextId() != null);

@StephGit StephGit Jul 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return !(this.relation() != null && this.resource() != null && this.contextId() != null);
isLoading = computed(() =>
this.relation() == null || this.resource() == null || this.contextId() == null;
});

same with resource-type-relatioin-templates-list

sorry not properly applyable due to github suggestion limitation


constructor() {
effect(() => {
if (this.contextId() != null) {

@StephGit StephGit Jul 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (this.contextId() != null) {
constructor() {
effect(() => {
this.resourceRelationsService.setIdsForResourceRelationTemplates(
this.resource().id,
this.relation().id
);
});
}

The effect runs after first change detection run, so the required inputs should be set. There are situations where values it could be undefined, but this shouldn't be the case using signales throughout

same with resource-type-relatioin-templates-list

sorry not properly applyable due to github suggestion limitation

@BeriBoss
BeriBoss requested a review from StephGit July 14, 2026 09:18

@StephGit StephGit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

all good, please squash and merge 🥳

@BeriBoss
BeriBoss merged commit 571d699 into master Jul 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants