Skip to content

refactor: return template id for question template relationship object - #1611

Merged
GrantDLS merged 1 commit into
use-template-config-for-dynamic-multi-v2from
refactor-return-template-id-for-question-template-rel
Jun 30, 2026
Merged

refactor: return template id for question template relationship object#1611
GrantDLS merged 1 commit into
use-template-config-for-dynamic-multi-v2from
refactor-return-template-id-for-question-template-rel

Conversation

@jekabs-karklins

@jekabs-karklins jekabs-karklins commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces a refactor to return the template ID for question template relationship object.

Motivation and Context

This PR addresses comment raised here where the template id was missing
#1582 (comment)
Template ID is an essential field for the question-template relationship object therefore it should be included in the return fields. This PR adds the field and utilizes in the apps/frontend/src/components/common/proposalFilters/QuestionaryFilter.tsx

Changes

  1. 'templateId' field was added to several classes related to question template relations, including 'QuestionTemplateRelation', 'Answer' and 'createQuestionTemplateRelationObject'.
  2. Adjustments were made to 'QuestionaryFilter' component to use the new 'templateId' field.
  3. The GraphQL fragments 'answer' and 'questionTemplateRelation' were updated to include 'templateId'.

How Has This Been Tested?

Manually and checking if the performance is not degrated

@jekabs-karklins
jekabs-karklins requested a review from a team as a code owner June 29, 2026 12:26
@jekabs-karklins
jekabs-karklins requested review from William-Edwards-STFC and removed request for a team June 29, 2026 12:26
@jekabs-karklins jekabs-karklins changed the title refactor: return template id for question template rel refactor: return template id for question template relationship object Jun 29, 2026
@GrantDLS

Copy link
Copy Markdown
Contributor

Looks good to me. Thank you for making this change @jekabs-karklins . This is exactly what I needed.

@GrantDLS
GrantDLS merged commit 5297af1 into use-template-config-for-dynamic-multi-v2 Jun 30, 2026
2 checks passed
@GrantDLS
GrantDLS deleted the refactor-return-template-id-for-question-template-rel branch June 30, 2026 09:23
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