You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is similar code/logic between the submission translation for the vault (see buildFormDataObject.ts and related) and group history for the Review page (see formContext and group history related code). Also in the infra code for the lambda to send to dynamodb there is similar translation code (see dataLayer.ts and others probably).
The issue with this is it will be increasingly easy to make a mistake where a change made in one part of the code should also be made in another part of the code. An example of this is copy+pasting code between app code to infra code. It would be easy to make a change in either part of the code and forget to copy+paste to the other part of the code.
One idea to help to solve this would be create a new repository to hold shared code used by both the app and infra (core) e.g. forms-lib. This would become a shared library for forms. An advantage of this beyond reducing work by writing less code from code sharing is that more eyes would be on it and with that higher code quality for an important part of the code base.
The text was updated successfully, but these errors were encountered:
Work In Progress Ticket - please edit/add to it
There is similar code/logic between the submission translation for the vault (see buildFormDataObject.ts and related) and group history for the Review page (see formContext and group history related code). Also in the infra code for the lambda to send to dynamodb there is similar translation code (see dataLayer.ts and others probably).
The issue with this is it will be increasingly easy to make a mistake where a change made in one part of the code should also be made in another part of the code. An example of this is copy+pasting code between app code to infra code. It would be easy to make a change in either part of the code and forget to copy+paste to the other part of the code.
One idea to help to solve this would be create a new repository to hold shared code used by both the app and infra (core) e.g.
forms-lib
. This would become a shared library for forms. An advantage of this beyond reducing work by writing less code from code sharing is that more eyes would be on it and with that higher code quality for an important part of the code base.The text was updated successfully, but these errors were encountered: