Refactoring the maintenance app #307
Unanswered
Mohammer5
asked this question in
Specs & RFCs
Replies: 1 comment
-
Nice work.
We should keep the legacy system separate as we can, ideally it would be "read-only", however that's probably not practical.
I strongly advise that we get the Maintenance app running on the App Platform as first priority as that allows us to enable continuous delivery to the App Hub as we work on it and and not rely on the DHIS2 Core timelines. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As some of you (team platform FE devs) have seen already, I've been working on creating a react 17 app that contains both the legacy maintenance app (with react 15) as well as a modern react 17 app (code).
What I've created is just a PoC, but it highlightes how we could tackle the maintenance app without having to:
react-router
->react-router-dom
)Goals
/legacy
)src/modern
folder into thesrc
folderCurrent status
https://debug.dhis2.org/dev
, login and then runyarn start
(after runningyarn (install)
) in the PoC repository.baseUrl
is hardcoded. The legacy app used the$DHIS2_CONFIG
env var and thewebpack.manifest
file. We'll need to figure out how we can pass the correct information to the legacy app.Path forward
I suggest that we go the following way:
react-scripts
contain quite a bit of magic to make everything work). Once we've replace all sections and can get rid of the old code, it should be fairly straight forward to port the app to the app-platform. - This is all assuming that it requires quite a bit of work in the app-platform and potentially some guesswork in regards to what needs to be changed in the app-platform. It might be less work to do that work after refactoring the maintenance app, but I don't have an educated opinion, just a gut feeling.Beta Was this translation helpful? Give feedback.
All reactions