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

(refactor) Replace deprecated useSessionUser with useSession #661

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

denniskigen
Copy link
Member

@denniskigen denniskigen commented Apr 19, 2022

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • My work includes tests or is validated by existing tests.

Summary

This PR replaces the deprecated useSessionUser function declaration with useSession. This PR does not introduce any functional changes.

Related: openmrs/openmrs-esm-patient-management#177

Copy link
Member

@ibacher ibacher left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @denniskigen! Looks like there might be a couple more tests we need mocks for though?

package.json Outdated
@@ -19,7 +19,7 @@
},
"devDependencies": {
"@jsenv/file-size-impact": "12.1.1",
"@openmrs/esm-framework": "next",
"@openmrs/esm-framework": "^3.2.1-pre.1134",
Copy link
Member

Choose a reason for hiding this comment

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

I think it's best to leave this as next no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'll fix it in a subsequent commit

@ibacher ibacher merged commit 8d150b7 into master Apr 21, 2022
@ibacher ibacher deleted the refactor-use-session-user branch April 21, 2022 15:43
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