Skip to content

fix: force task to be created with latest version - #19923

Merged
BrunoQuaresma merged 3 commits into
mainfrom
bq/force-latest-template-version
Sep 24, 2025
Merged

BrunoQuaresma merged 3 commits into
mainfrom
bq/force-latest-template-version

Conversation

@BrunoQuaresma

Copy link
Copy Markdown
Contributor

Fixes #19744

@BrunoQuaresma
BrunoQuaresma requested review from a team and aslilac and removed request for a team September 23, 2025 14:15
return a.Name.localeCompare(b.Name);
}

// TODO: Enforce task creation to always use the latest active template version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: this is rather FIXME than TODO :P

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is FIXME a valid thing? 👀

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, we have a lot of fixmes in our codebase :)

PS. nit-pick!

});

await step("Uses latest template version", () => {
expect(API.experimental.createTask).toHaveBeenCalledWith(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Correct me if I'm wrong, but since this is a story not a unit test, you shouldn't assert API calls on that level?

Can we convert it to jest test instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We’re using Storybook as our main testing tool. At some point, Jest will only be used for testing functions or other non-component-related code. Kayla did an awesome L&L yesterday about the FE state—I’m just trying to grab the link to share here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, TIL!

});

await step("Uses latest template version", () => {
expect(API.experimental.createTask).toHaveBeenCalledWith(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, TIL!

return a.Name.localeCompare(b.Name);
}

// TODO: Enforce task creation to always use the latest active template version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, we have a lot of fixmes in our codebase :)

PS. nit-pick!

@BrunoQuaresma
BrunoQuaresma merged commit 5ff503b into main Sep 24, 2025
@BrunoQuaresma
BrunoQuaresma deleted the bq/force-latest-template-version branch September 24, 2025 16:23
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: tasks: new tasks created with outdated template version

2 participants