Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate multiple vuex stores to pinia #256

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

Gavinok
Copy link
Contributor

@Gavinok Gavinok commented Jan 20, 2025

This is This is the first half of the migration from vuex to pinia stores #242

@Gavinok Gavinok requested review from esune and amanji January 20, 2025 20:17
Copy link
Member

@esune esune left a comment

Choose a reason for hiding this comment

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

Changes are looking good overall, looking forward to the end result 🙂

Comment on lines 77 to 79
console.log("fetching relationships");
const res = await relationshipService.getRelatedTo(topic_id);
console.log(res);
Copy link
Member

Choose a reason for hiding this comment

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

Please don;t leave debug logs in the code. You may also want to name the variable something more explicit, rather than just res as it makes understanding the code easier.

return (
(moment(item1.date_effective).isBefore(item2.date_effective) ? -1 : 1) *
this.credentialTimeOrder
const ret = state?.type + "." + state?.value;
Copy link
Member

Choose a reason for hiding this comment

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

Can this variable be named more explicitly?

Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
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