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

(chore) O3-4255: Bump @carbon/react to v1.17.0 #85

Merged
merged 7 commits into from
Dec 18, 2024

Conversation

dilankavishka
Copy link
Contributor

@dilankavishka dilankavishka commented Dec 5, 2024

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

Carbon version updated to v1.71.0

Screenshots

Screen.Recording.2024-12-11.at.00.08.11.mov

Related Issue

https://openmrs.atlassian.net/browse/O3-4255

Other

@dilankavishka
Copy link
Contributor Author

@NethmiRodrigo can you review this please?

@NethmiRodrigo NethmiRodrigo self-requested a review December 9, 2024 06:15
@NethmiRodrigo
Copy link
Contributor

NethmiRodrigo commented Dec 9, 2024

@dilankavishka the build is failing, and this specific build error usually happens when a yarn.lock file hasn't gotten properly updated. Try running yarn install again locally to see if it updates the yarn.lock file. Could you also please include a recording of the app to make sure that everything is as it should be? And I forgot to add one more step that should be done in the ticket, we should also remove this line -

declare module '@carbon/react';
and make sure that there are no errors

@NethmiRodrigo NethmiRodrigo changed the title changed the carbon version (chore) O3-4255: Bump @carbon/react to 1.17.0 Dec 9, 2024
@NethmiRodrigo NethmiRodrigo changed the title (chore) O3-4255: Bump @carbon/react to 1.17.0 (chore) O3-4255: Bump @carbon/react to v1.17.0 Dec 9, 2024
@dilankavishka
Copy link
Contributor Author

@NethmiRodrigo I made the changes. Can you review this please?

package.json Outdated
"@carbon/react": "^1.37.0",
"@openmrs/esm-framework": "next",
"@carbon/react": "1.71.0",
"@openmrs/esm-framework": "^6.0.1-pre.2544",
Copy link
Contributor

Choose a reason for hiding this comment

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

@dilankavishka this version and the version of openmrs should be reverted back to next. There's a step in the docs that you probably missed, where after upgrading the core and framework, you should checkout package.json and then run yarn again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! I've reverted the version to next.

tsconfig.json Outdated
],
"resolveJsonModule": true,
"noEmit": true,
"target": "esnext",
"target": "es2022",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why were this and lib versions changed?

Copy link
Contributor Author

@dilankavishka dilankavishka Dec 11, 2024

Choose a reason for hiding this comment

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

It gives an error while run yarn test and asked for change the tsconfig.json to the latest versions. that's why I changed that.

Copy link
Contributor Author

@dilankavishka dilankavishka Dec 11, 2024

Choose a reason for hiding this comment

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

should I keep the same or need to revert back this also?

Copy link
Contributor

Choose a reason for hiding this comment

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

We should revert back these changes. If lint or tests are failing, it could be because of the carbon upgrade and we should fix that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! and now it's working perfectly.

@dilankavishka
Copy link
Contributor Author

@NethmiRodrigo I made the changes you mentioned. can you review this please?

@NethmiRodrigo
Copy link
Contributor

Thanks @dilankavishka! You were right about the tsconfig, but we only had to add it to the lib array and not change the target, fixed that. Its all good to go in now, great work!

@NethmiRodrigo NethmiRodrigo merged commit 02a0bb9 into openmrs:main Dec 18, 2024
4 checks passed
denniskigen pushed a commit that referenced this pull request Dec 18, 2024
Cuts a minor release of Fast Data Entry, `v1.1.0` with some new features and housekeeping.

Here's the draft changelog:

* (feat) Add ability to disable and set default values for answers in specificQuestions by @icrc-jofrancisco in #84
* (feat) Support for static specific answers by @icrc-jofrancisco in #87

* (chore) O3-4255: Bump @carbon/react to v1.17.0 by @dilankavishka in #85
@denniskigen denniskigen mentioned this pull request Dec 18, 2024
3 tasks
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