Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-131626

As a developer, I would like to create an extension to customize the validations of the fields to facilitate the inclusion of new rules

    Details

      Description

      Context:

      Today, we only allow our users to define specific validations for the text and numeric fields. As we have a great different number of user cases that we can't cover all of them in OOTB solutions, it is important that we provide to our users a way to define custom validations in the backend that will be shown in the interface.

      The behavior here is similar to what we have in the custom fields.

      Acceptance Criteria

      1 - Given a developer in Liferay forms,
      when I create a new custom validation in the backend
      then I can see it in the list of validation types for input on the form's page

      2 - Given a developer in Liferay forms,
      when I select a custom validation on the form's page
      then I be able to fill the error message for it

      Definition of Done (DoD):

      • All Acceptance Criteria were passed;
      • Make sure that the expected automated tests were created (unit / integration / functional) and passed successfully;
      • Code with peer review completed;
      • Validated by QA and/or PM;
      • No critical bug related to Story scope (ex.: similar of FP4, FP5);
      • Make sure that all system documentation were updated (if necessary)
      • Make sure that it has the extensions points needed to allow GS and customers to customize the feature (If applicable)

        Attachments

          Issue Links

          1.
          [BE] Implement this interface for each existing validation type LPS-131631 Technical Task Closed Marcela Cunha  
          2.
          [BE] Create a Tracker class type to track and retrieve all the implemented validation LPS-131632 Technical Task Closed Product Team Data Engine  
          3.
          [FE] Delete frontend validations LPS-131637 Technical Task Closed Product Team Data Engine  
          4.
          [FE] [SPIKE] Investigate the use of the var “validations” in the code LPS-131635 Technical Task Closed Elivelton Rodrigues  
          5.
          [FE] Retrieve the fields validation and pass it to the frontend LPS-131636 Technical Task Closed Product Team Data Engine  
          6.
          [PM] Acceptance Criteria LPS-131627 Technical Task Closed Luiz Jardim  
          7.
          [BE] Create interface with the existing validation attributes LPS-131630 Technical Task Closed Marcela Cunha  
          8.
          [BE] Add the validation data into the context LPS-131634 Technical Task Closed Product Team Data Engine  
          9.
          [BE] [SPIKE] Investigate the need of the creation of the serializer/deserializer LPS-131633 Technical Task Closed Rodrigo Paulino  
          10.
          [BE] Integration / Unit tests LPS-131638 Technical Task Closed Product Team Data Engine  
          11.
          [QA] Review ACs and Draft TCs LPS-132099 Technical Testing Closed Emanuel Silva  
          12.
          [BE] Invert the field validation during form's evaluation LPS-132279 Technical Task Closed Product Team Data Engine  
          13.
          [BE] Create feature flag to disable/enable the use of custom validations LPS-132348 Technical Task Closed Product Team Data Engine  
          14.
          [QA] Review ACs and Draft TCs LPS-132539 Technical Testing Closed Emanuel Silva  
          15.
          [PM] Acceptance Criteria LPS-132905 Technical Task Closed Luiz Jardim  
          16.
          [QA] Manual Validation Round 1 - Passed LPS-133080 Technical Testing Closed Emanuel Silva  
          17.
          [BE] Remove regex property from DDMValidation interface LPS-133204 Technical Task Closed Product Team Data Engine  
          18.
          Validation "Is Equal To" is not properly working for Numeric Decimal field LPS-133340 Impedibug Closed Emanuel Silva  
          19.
          [PM] Review LPS-133454 Technical Task Closed Luiz Jardim  

            Activity

              People

              Assignee:
              luiz.jardim Luiz Jardim
              Reporter:
              marcela.cunha Marcela Cunha
              Engineering Assignee:
              Product Team Data Engine
              Recent user:
              Luiz Jardim
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  Master