Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

fix(fullname): added extractFullName() template #2576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jameszheng405
Copy link

@jameszheng405 jameszheng405 commented Feb 21, 2021

fix #2539

Fixes #2539.

Changes proposed in this pull request:

  • added extractFullName() template

Note: pull requests without proper descriptions may simply be closed without further discussion. We appreciate your contributions, but need to know what you are offering in clearly described format. Provide tests for all code that you add/modify. If you add/modify any components update the storybook. Thanks! (you can delete this text)

@vercel
Copy link

vercel bot commented Feb 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/2VvkhAtyuarUVaPLnyiiWLB1CKNn
✅ Preview: https://hospitalrun-fr-git-fork-codethechange-reportedby-bug2539-7ea618.vercel.app

@CLAassistant
Copy link

CLAassistant commented Feb 21, 2021

CLA assistant check
All committers have signed the CLA.

@morrme
Copy link
Member

morrme commented Feb 24, 2021

Hi @jameszheng405 ! Thanks for this contribution.

Have you previously signed our CLA? https://cla-assistant.io/HospitalRun/hospitalrun-frontend?pullRequest=2576

Also, it looks like your commits were not signed by an email tied to your Github account.
See more information here: https://docs.github.com/en/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user#commits-are-not-linked-to-any-user

If you need any guidance with sorting these issues out, let us know!

Previously, the extractUserName() function was returning a mocked "some user." We scaffolded out
this function for when we complete the user model.

fix HospitalRun#2539

fixed extractFullName import

remove reportedBy

make app test less spurious
expect(
await screen.findByRole('heading', { name: /dashboard\.label/i }, { timeout: 8000 }),
).toBeInTheDocument()
await waitFor(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This test was failing, so we changed it to match RTL's default timeout behavior, and it now passes.

@jameszheng405
Copy link
Author

@morrme Can you review this PR again, I believe the tests are now passing

@matteovivona matteovivona self-requested a review April 19, 2021 07:18
@matteovivona matteovivona added the in progress indicates that issue/pull request is currently being worked on label Apr 19, 2021
@matteovivona matteovivona removed their request for review November 6, 2023 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress indicates that issue/pull request is currently being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incident - reportedBy should store the currently logged in user id
5 participants