Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4654

Domain Manager: Asynchronous package import

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      The Domain Manager package import at Packages > Domain Options > Configuration > Import Packages can take a long time based on how many packages are being imported.

      In some cases this proccess is long enough to cause timeouts.

      In order to make the import more usable in these stituations, let's convert this into an ajax process that operates as follows:

      • After hitting "Import Packages", disable the form and remove the button.
      • After hitting "Import Packages", show a section below the form with the header "Imported TLDs".
      • Under the "Imported TLDs" section show the text "Collecting a list of TLDs to import..." with a spinner icon.
      • Hitting "Import Packages" should trigger a few ajax calls
        • An ajax call to fetch a list of TLDs to be imported
        • An ajax call to start the import
        • An ajax call that occurs every 5 seconds after the first one returns the TLD list, to check which TLDs have already been imported
      • The first ajax call should be used to generate a list of TLD badges with loading icons
      • The second ajax call should update a company setting "domains_imported_tlds" each time a package is imported or fails to be imported ['error' => [], 'package_created' => [], 'tld_created']
      • The third ajax call should reference "domains_imported_tlds" and should be used to update the TLD background color and badge icon
        • error bg-danger <i class="fa-solid fa-circle-xmark"></i>
        • package_created bg-info <i class="fa-solid fa-circle-half-stroke"></i>
        • tld_created bg-success <i class="fa-solid fa-circle-check"></i>
      • The package import ajax call should use set_time_limit(0) to prevent timeout

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Epic Link CORE-4304 [ 15830 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.5.0 Sprint 4 [ 157 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Summary Domain Manager: Asynchronous TLD Import Domain Manager: Asynchronous package import
        jonathan Jonathan Reissmueller made changes -
        Description The Domain Manager registrar TLD import at Packages > Domain Options > Import TLDs can take a long time based on how many TLD are being imported.

        Lets update this to operate via AJAX.
        The Domain Manager package import at Packages > Domain Options > Configuration > Import Packages can take a long time based on how many packages are being imported.

        In some cases this proccess is long enough to cause timeouts.

        In order to make the import more usable in these stituations, let's convert this into an ajax process that operates as follows:


        * After hitting "Import Packages", disable the form and remove the button.
        * After hitting "Import Packages", show a section below the form with the header "Imported TLDs".
        * Under the "Imported TLDs" section show the text "Collecting a list of TLDs to import..." with a spinner icon.
        * Hitting "Import Packages" should trigger a few ajax calls
        ** An ajax call to fetch a list of TLDs to be imported
        ** An ajax call to start the import
        ** An ajax call that occurs every 5 seconds after the first one returns the TLD list, to check which TLDs have already been imported
        * The first ajax call should be used to generate a list of TLD badges with loading icons
        * The second ajax call should update a company setting "domains_imported_tlds" each time a package is imported or fails to be imported ['error' => [], 'package_created' => [], 'tld_created']
        * The third ajax call should reference "domains_imported_tlds" and should be used to update the TLD background color and badge icon
        ** error bg-danger <i class="fa-solid fa-circle-xmark"></i>
        ** package_created bg-info <i class="fa-solid fa-circle-half-stroke"></i>
        ** tld_created bg-success <i class="fa-solid fa-circle-check"></i>
        * The package import ajax call should use set_time_limit(0) to prevent timeout
        jonathan Jonathan Reissmueller made changes -
        Story Points 8
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 5 hours, 24 minutes [ 19440 ]
        Worklog Id 15732 [ 15732 ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Time Spent 5 hours, 24 minutes [ 19440 ] 1 day, 5 hours, 4 minutes [ 47040 ]
        Worklog Id 15734 [ 15734 ]
        abdy Abdy Franco made changes -
        Time Spent 1 day, 5 hours, 4 minutes [ 47040 ] 2 days, 4 hours, 56 minutes [ 75360 ]
        Worklog Id 15735 [ 15735 ]
        abdy Abdy Franco made changes -
        Time Spent 2 days, 4 hours, 56 minutes [ 75360 ] 3 days, 4 hours, 52 minutes [ 103920 ]
        Worklog Id 15736 [ 15736 ]
        abdy Abdy Franco made changes -
        Time Spent 3 days, 4 hours, 52 minutes [ 103920 ] 4 days, 4 hours, 42 minutes [ 132120 ]
        Worklog Id 15737 [ 15737 ]
        abdy Abdy Franco made changes -
        Time Spent 4 days, 4 hours, 42 minutes [ 132120 ] 1 week, 4 hours, 18 minutes [ 159480 ]
        Worklog Id 15738 [ 15738 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.5.0 Sprint 4 [ 157 ] 5.5.0 Sprint 4, 5.5.0 Sprint 5 [ 157, 159 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Time Spent 1 week, 4 hours, 18 minutes [ 159480 ] 1 week, 6 hours, 28 minutes [ 167280 ]
        Worklog Id 15752 [ 15752 ]
        jonathan Jonathan Reissmueller made changes -
        Time Spent 1 week, 6 hours, 28 minutes [ 167280 ] 1 week, 1 day, 13 minutes [ 173580 ]
        Worklog Id 15762 [ 15762 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Jun/22

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 week, 1 day, 13 minutes
              1w 1d 13m

                Agile