Uploaded image for project: 'ui-organization'
  1. ui-organization
  2. UIORG-115

Move SP to Location Relationship Establishment from SP Record to Location Record

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      Prokopovych

      Description

      Purpose: We had previously implemented the ability to add 0 to many locations to a service point record. But we have since realized that we need to require at least one service point per location. For this reason, we need to move the ability to establish the relationship to the location record.

      User story:
      As a user who is creating a location
      I want to be required to add at least one (primary) service point to the location
      Because, if a location doesn't have a service point, the system won't be able to know where it's home is (among other things)

      Scenarios:

      1. Scenario CB: Moved to UISP-5
        • Given the service point create/edit forms at Settings > Organization > Service points
        • When displayed
        • Then the Assigned locations section should be read-only as shown in these mockups
      2. Scenario
        • Given the Location create/edit forms at Settings > Organization > Location setup > Locations
        • When displayed
        • Then new field should be added below Discovery display name labelled "Service point(s) *"
      3. Scenario
        • Given the Location create/edit forms at Settings > Organization > Location setup > Locations
        • When the new "Service point(s) *" field is displayed
        • Then a single dropdown menu should display:
          • Default value "Select service point"
          • Contains all service points (service points are added at Settings > Organization > Service points) in alphabetical order
          • Accompanied by a radio button indicating whether it is the primary service point for the location (when there is only one service point, the radio button is inactive) CB: I am not a fan of this radio button. I'll get Filip's thoughts in the comments.
          • Accompanied by an "+ Add service point" button
      4. Scenario
        • Given the Location create/edit forms at Settings > Organization > Location setup > Locations
        • Given the "+ Add service point" button
        • When clicked
        • Then a new dropdown menu should be displayed along with a "primary" radio button as shown in the below linked mockups
          • "Primary" radio buttons should become active when there is > 1 service point CB: I am not a fan of this radio button. I'll get Filip's thoughts in the comments.
          • New dropdown menu should be accompanied by a delete icon
            • Clicking the delete icon will remove the additional service point
            • It should not be possible to delete the last service point menu (when deletion is attempted, a red error should appear under the menu reading "Location must have at least one service point")
      5. Scenario
        • Given the Location create/edit forms at Settings > Organization > Location setup > Locations
        • When there is not at least one service point selected and save is attempted or focus moves to next field
        • Then:
          • Required field message should display "Please fill this in to continue"
          • Save should be disallowed
      6. Scenario
        • Given the Location create/edit forms at Settings > Organization > Location setup > Locations has an extraneous service point menu displaying with no service point is selected
        • When save is attempted
        • Then:
      7. Scenario
        • Given the Location view forms at Settings > Organization > Location setup > Locations
        • When the location is displayed after save (in edit and view modes)
        • Then "Service point(s)" should display as shown in the below linked mockups
      8. Scenario
        • Given Service Point C is made primary for the location
        • When the location is displayed after save (in edit and view modes)
        • Then Service Point C should display at the top of the list of service points

      Mockups:

      1. https://drive.google.com/file/d/16afH-WsOhtHWSU72SSQPOyGurEGpyTbq/view
      2. https://drive.google.com/file/d/1RoJhEbh0TnYj5FdaZpeviYaHHFEF3avE/view
      3. https://drive.google.com/file/d/1D69Xlv7QxQLW_l-5bVYpJ5GZmSbD6Tpo/view

        TestRail: Results

          Attachments

          1. 1065.png
            1065.png
            286 kB
          2. dropdown1.png
            dropdown1.png
            211 kB
          3. dropdown2.png
            dropdown2.png
            177 kB
          4. dropdown3.png
            dropdown3.png
            209 kB
          5. dropdown4.png
            dropdown4.png
            113 kB
          6. dropdown5.png
            dropdown5.png
            91 kB
          7. repeatable-fields-pattern1.mp4
            3.04 MB
          8. repeatable-fields-pattern1.xd
            74 kB
          9. repeatable-fields-pattern1.zip
            228 kB
          10. screenshot-1.png
            screenshot-1.png
            155 kB
          11. Screenshot 2018-10-22 19.56.06.png
            Screenshot 2018-10-22 19.56.06.png
            20 kB
          12. Screenshot 2018-10-26 16.27.49.png
            Screenshot 2018-10-26 16.27.49.png
            58 kB

            Issue Links

              Activity

                People

                Assignee:
                adityamatukumalli Aditya matukumalli
                Reporter:
                cboerema Cate Boerema
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases