Skip to content

RA-2084: Update adminui module to depend on 2.8.x#67

Open
mherman22 wants to merge 5 commits intoopenmrs:masterfrom
mherman22:master
Open

RA-2084: Update adminui module to depend on 2.8.x#67
mherman22 wants to merge 5 commits intoopenmrs:masterfrom
mherman22:master

Conversation

@mherman22
Copy link
Copy Markdown
Member

@mherman22 mherman22 commented Jun 16, 2025

The attempt here is for the adminui to drop the use of providermanagement module for the provider role functionality that is being migrated to openmrs-core.

Fixes https://openmrs.atlassian.net/browse/RA-2084

@mherman22 mherman22 marked this pull request as draft August 19, 2025 19:36
@mherman22 mherman22 changed the title Update adminui module to 2.8.0-SNAPSHOT Update adminui module to depend on 2.8.x Aug 19, 2025
@mherman22 mherman22 changed the title Update adminui module to depend on 2.8.x RA-2084: Update adminui module to depend on 2.8.x Aug 20, 2025
@mherman22 mherman22 marked this pull request as ready for review August 20, 2025 13:04
@mherman22 mherman22 requested a review from wikumChamith August 20, 2025 19:38
@dkayiwa
Copy link
Copy Markdown
Member

dkayiwa commented Aug 28, 2025

@wikumChamith do you mind reviewing this?

pom.xml Outdated
<uiframeworkVersion>4.0.1-SNAPSHOT</uiframeworkVersion>
<appframeworkVersion>2.19.0-SNAPSHOT</appframeworkVersion>
<webservicesRestVersion>2.50.0-SNAPSHOT</webservicesRestVersion>
<legacyuiVersion>1.23.0</legacyuiVersion>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we could update this to 2.0.0-SNAPSHOT

@wikumChamith
Copy link
Copy Markdown
Member

@mherman22, can we bump the project version to 2.0.0-SNAPSHOT and also create 1.x legacy branch.

@@ -0,0 +1 @@
mock-maker-inline
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mherman22 can you explain what the use of this is?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So we need mock-maker-inline in order to run the module on java8 since mockito is version 3 where tests fail without it.

But without it on java17 and above, the tests will pass because on java17 we support mockito version 5 where it is not needed.

Take a look at https://github.com/openmrs/openmrs-core/blob/52294dedb8c3fb483d94cc1415dc6f360585cd35/pom.xml#L1176-L1258.

Ref: https://davidvlijmincx.com/posts/writing_higher_quality_tests_with_mockitos_inline_mock_maker/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What I usually do in cases like this is add the Mockito Inline dependency to the project.

https://github.com/openmrs/openmrs-module-emrapi/blob/655416318f355ea64bec284ccd180de2efc2e328/pom.xml#L146-L151

I'm not sure what the best solution is here, so @dkayiwa, it's up to you to decide :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think adding the dependency makes more sense. Since we have usecases of it in the eco anyway.

I will make the change

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Made the change

@mherman22
Copy link
Copy Markdown
Member Author

@mherman22, can we bump the project version to 2.0.0-SNAPSHOT and also create 1.x legacy branch.

Done, i have also gone ahead and created a bamboo plan for the 1.x branch of this module, feel free to review that aswell at https://ci.openmrs.org/browse/AU-AU1

@mherman22 mherman22 requested review from wikumChamith and removed request for wikumChamith September 15, 2025 13:53
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.

3 participants