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

Fix change facility workflow #13165

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

AlexVelezLl
Copy link
Member

@AlexVelezLl AlexVelezLl commented Mar 6, 2025

Summary

After the vue upgrade to vue 2.7, this state computed property that was the context of the state machine provided by the ChangeFacility index component had a change: When we refer to this injected property from the setup method, we need to access it through the .value property, but when we access it through the options api we dont need the .value property anymore. This basically caused the entire change facility workflow to break.

In the course of that refactor I somehow fixed the underlying issue that was causing #12762 (that wasnt initially caused by the vue upgrade since it was reported before that).

Compartir.pantalla.-.2025-03-06.14_04_34.mp4

References

Closes #12762

Reviewer guidance

  1. Go through the 'On my own' setup flow.
  2. Go to Profile > Change > Merge accounts
  3. Go through the different paths for merging accounts
  4. Check that the user is properly redirected after the account was merged.

Note

  • I have manually checked all references to the state injected prop in the whole ChangeFacility folder, and validated that all references to it inside the setup method was being referenced with the .value property, and all the references outside the setup method was being referenced without the .value property. But a double check never hurts :)

@github-actions github-actions bot added APP: User Re: User app (sign-in, sign-up, user profile, etc.) DEV: frontend labels Mar 6, 2025
@radinamatic
Copy link
Member

Habemus facility change and account merging again, hallelujah!!! 🎉 🎉 🎉

I also went through the LoD setup with account on server (import and new), just for kicks, and still all good 💯

Copy link
Member

@radinamatic radinamatic left a comment

Choose a reason for hiding this comment

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

LGTM! 💯 👏🏽 :shipit:

@marcellamaki
Copy link
Member

marcellamaki commented Mar 7, 2025

@radinamatic does this mean that Alex's work here has fixed the (neglected) work in progress I had for one of the previous alpha releases, or that's still separately a problem? #13097

It seems the same root cause (composition api changes in the code syntax) but perhaps just he has actually found all of the places where the problems were

@radinamatic
Copy link
Member

With this latest asset I was not experiencing the same as in #12762, so it should probably be closed together with #13097, and with the other PR that tried to fix this: #13122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: User Re: User app (sign-in, sign-up, user profile, etc.) DEV: frontend
Projects
None yet
3 participants