chore(#10543): add PERSON contact type constant and replace magic strings#10735
chore(#10543): add PERSON contact type constant and replace magic strings#10735gmarav05 wants to merge 32 commits intomedic:masterfrom
Conversation
|
@gmarav05 no worries! Your contributions are most welcome! I did a spree where I took all PRs that didn't have comments or reviews, to make sure nobody is left hanging without a response. It wasn't meant to communicate urgency. Good luck with exams!!! |
|
Hello @sugat009, Should i make changes in all the files like |
yes |
|
Hello @sugat009, I tried to replace most of them. However I left few intentionally like these
please let me know if i should change anything or update anything. |
|
@gmarav05 Good call leaving those out. The However, please also leave the Focus the constant replacement on production source code and their corresponding tests where |
|
Thanks for the detailed feedback @sugat009 , I have reverted all changes in the Please let me know if any changes are required or feedback. |
Signed-off-by: Aravind <gmarav005@gmail.com>
Signed-off-by: Aravind <gmarav005@gmail.com>
Signed-off-by: Aravind <gmarav005@gmail.com>
6c26881 to
7fb4bee
Compare
Signed-off-by: Aravind <gmarav005@gmail.com>
Signed-off-by: Aravind <gmarav005@gmail.com>
|
Hello @sugat009, Can you please re-run the failing CI checks. The errors are not related to the PERSON constant changes and the hydration.spec.js failure may be a flaky integration test. When I ran CI tests locally all unit tests are passing. |
Signed-off-by: Aravind <gmarav005@gmail.com>
|
Sorry @sugat009, I was self reviewing few from files changed tab and found that i replaced few test files with |
|
hello @sugat009, Can you please re-trigger this check again, earlier it passed now after update it is failing again. |
…ntact-type-constant
|
Hello @sugat009, the 'Compile the app' CI check failed due to a ShellCheck binary download rate limit error. Can you please re-trigger this check again, earlier it passed now after update it is failing again. |
sure |
|
Sorry for the delay @gmarav05 . I will prioritize this review tomorrow. |
No problem @dianabarsan, please review it when you have time. |
dianabarsan
left a comment
There was a problem hiding this comment.
Very very nice! Almost perfect! Just a few comment inline.
…on-type usages Signed-off-by: Aravind <gmarav005@gmail.com>
|
Thanks for the detailed review @dianabarsan, I have addressed all the feedback and removed redundant local constants, reverted the doc-id usages back to literal strings and fixed the _id case in rules-engine spec. Please let me know if any changes are required. |
|
hello @dianabarsan, can you please review this PR when you are free. |
…ntact-type-constant
Signed-off-by: Aravind <gmarav005@gmail.com>
2f970a7 to
ae31004
Compare
…ntact-type-constant
|
Hello @dianabarsan, conflicts resolved and PR is up to date. Ready for review. |
|
Hello @dianabarsan, Can you please review this PR when you are free. |
dianabarsan
left a comment
There was a problem hiding this comment.
Thanks for the changes. I did a quick go-through and found some misses and inconsistencies. The naming inconsistency that I flagged, please apply it in all files where present, not just the one I added a comment for.
Thanks!
132048d to
09f356e
Compare
|
Hello @dianabarsan, I have addressed the feedback and updated everything. Can you please review this PR when you are free. Also there are others PR as well please take a look when you are free. Thank you. |



Description
Adds
PERSONconstant to theCONTACT_TYPESobject in the shared constants library, replacing the magic string'person'with a named constant.Closes #10543
Code review checklist
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.