egovernments / Digit-Core

DIGIT is an open source modular Micro-services multi-tenant platform for public service delivery.
https://core.digit.org
MIT License
15 stars 50 forks source link

Missing Localization for MDMS Schemas Created via Postman #575

Open jagankumar-egov opened 5 hours ago

jagankumar-egov commented 5 hours ago

Description: Currently, MDMS schemas are being created through Postman, which bypasses the creation of necessary localization messages. This leads to several issues when users access the MDMS/Workbench UI:

  1. Localization Absence:

    • Users do not create localization when adding data via Postman. As a result, when they visit the MDMS or Workbench UI, they see fields displayed as code since the screen expects localized messages for every field name.
  2. Non-Readable UI:

    • The entire screen displays non-user-readable codes for fields, which impacts usability and clarity. This is because the UI assumes and expects localization messages for each field in the schema.

    Attachment Screenshot 2024-09-25 at 2 46 42 PM

  3. Proposed Approach:

    • We should implement an event-based approach or an alternative mechanism that ensures a localization message is automatically created for every property in a schema when it is created.
    • This default localization message would provide a more user-friendly interface, displaying proper messages when users visit the screen.
  4. Standardization for Localization:

    • To ensure uniqueness and consistency, a prefix should be added to every field's localization key. This prefix should follow the format: {schemaCode}_fieldName. This will help standardize how localization messages are created for each schema field.

Steps to Reproduce:

  1. Create an MDMS schema via Postman without providing localization.
  2. Access the MDMS or Workbench UI.
  3. Observe that the screen displays non-localized codes instead of user-friendly messages.

Expected Behavior:

Additional Notes:

574

jagankumar-egov commented 5 hours ago

We previously discussed this issue during the "Localization <> Master Data" meeting held on Wednesday, September 25, from 12:00 PM to 1:00 PM. The attendees were @jagankumar-egov @eGovMan @Rishabh-egov @varunreddy-egov Krishna

@Rishabh-egov , please add the discussion points and proposed approaches from the meeting here.