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

feat: move data engine to a standalone package without react dependency [LIBS-711] #1392

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Nov 25, 2024

Implements LIBS-711


Key features

Externalizes the data engine as a new standalone package (@dhis2/data-engine, we could consider a different name) so that it can be used in non-React contexts. This new package has zero external dependencies and should encapsulate all most DHIS2-specific business logic/authentication/etc.

This is a non-breaking change for consumers of app-runtime or app-service-data

Checklist

  • Have written Documentation
  • Has tests coverage

@amcgee
Copy link
Member Author

amcgee commented Nov 25, 2024

Leaving this as draft for an initial review, still need to write documentation for how to use this in non-React and React server component contexts

@amcgee
Copy link
Member Author

amcgee commented Nov 25, 2024

Most of these SonarCloud code smells are probably legit but from older code... we should probably still address them here.

@amcgee
Copy link
Member Author

amcgee commented Nov 25, 2024

An alternative option here might be to export the engine as a separate library entrypoint to app-service-data...

@amcgee amcgee deleted the branch master November 26, 2024 16:41
@amcgee amcgee closed this Nov 26, 2024
@amcgee amcgee reopened this Nov 27, 2024
Copy link

sonarcloud bot commented Nov 27, 2024

Base automatically changed from alpha to master December 4, 2024 13:37
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.

1 participant