Page MenuHomeIn-Portal Phabricator

INP-1515 - Allow to enable/disable the Site Domain
ClosedPublic

Authored by alex on Nov 16 2015, 11:24 AM.

Details

Test Plan
NOTE: Open Admin Console in one browser tab and Front-End in another browser tab. Switch between two during test plan execution.
NOTE: Test clean install & upgrade. Because upgrade is currently broken I recommend running SQL from upgrades.sql manually (just add table prefix in it) on existing install.
  1. in Admin Console
    • go to ConfigurationWebsiteAdvanced section
    • enable (if not enabled) Enable SEO-friendly URLs mode (MOD-REWRITE) checkbox
    • go to ConfigurationWebsiteSite Domains section
    • confirm, that no site domains are displaed
    • confirm, that "Enable" and "Disable" toolbar buttons are visible and disabled
    • press the "Add" toolbar button to open site domain creation page
    • confirm, that "Status" field is shown
    • confirm, that "Status" field has Enabled/Disabled radio buttons
    • confirm, that "Status" field has Enabled radio button selected by default
    • press "Cancel" toolbar button to close site domain creation page
    • create 2 enabled site domains
    • confirm, that enabled side domain:
      • row color background is in grey tones (1st and 2nd row)
      • have no icon text to checkbox
    • create 2 disabled site domains
    • confirm, that disabled site domain:
      • row color background is in red tones (1st and 2nd row)
      • has red circle icon next to checkbox
  2. in Front-End
    • place the [<inp2:site-domain.current_Field name="DomainName"/>] code in the 1st line of "content" block in the "index.tpl" template of currently used theme
    • open website from main domain (doesn't match any of created ones)
    • confirm, that [] is shown (in place, where added template code was parsed)
    • open website using enabled domains
    • confirm, that [domain-name-here] is shown (replace domain-name-here with actually visited domain)
    • open website using disabled domains
    • confirm, that [] is shown
  3. in Admin Console
    • enable 3rd domain (should be disabled) domain by going to it's editing form and setting status to Enabled
  4. on Front-End
    • open website using that domain
    • confirm, that [domain-name-here] is shown (replace domain-name-here with actually visited domain)
  5. in Admin Console
    • enable 4th domain (should be disabled) by selecting it in grid and pressing "Enable" toolbar button
  6. on Front-End
    • open website using that domain
    • confirm, that [domain-name-here] is shown (replace domain-name-here with actually visited domain)
  7. in Admin Console
    • disable 1st domain (should be enabled) domain by going to it's editing form and setting status to Disabled
  8. on Front-End
    • open website using that domain
    • confirm, that [] is shown
  9. in Admin Console
    • disable 2nd domain (should be enabled) by selecting it in grid and pressing "Disable" toolbar button
  10. on Front-End
    • open website using that domain
    • confirm, that [] is shown

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.3.x
Lint
Lint ErrorsExcuse: Won't fix now to avoid mixing different array styles in one file.
SeverityLocationCodeMessage
Erroradmin/system_presets/simple/site_domains_site-domain.php:18PHPCS.E.CodingStandard.Commenting.InlineComment.InvalidEndCharCodingStandard.Commenting.InlineComment.InvalidEndChar
Erroradmin/system_presets/simple/site_domains_site-domain.php:18PHPCS.E.CodingStandard.Commenting.InlineComment.SpacingAfterCodingStandard.Commenting.InlineComment.SpacingAfter
Erroradmin/system_presets/simple/site_domains_site-domain.php:18PHPCS.E.CodingStandard.Commenting.InlineComment.SpacingBeforeCodingStandard.Commenting.InlineComment.SpacingBefore
Erroradmin/system_presets/simple/site_domains_site-domain.php:18PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectGeneric.WhiteSpace.ScopeIndent.Incorrect
Erroradmin/system_presets/simple/site_domains_site-domain.php:26PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Erroradmin/system_presets/simple/site_domains_site-domain.php:36PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Erroradmin/system_presets/simple/site_domains_site-domain.php:51PHPCS.E.CodingStandard.Commenting.InlineComment.SpacingBeforeCodingStandard.Commenting.InlineComment.SpacingBefore
Erroradmin/system_presets/simple/site_domains_site-domain.php:51PHPCS.E.Generic.Files.LineLength.MaxExceededGeneric.Files.LineLength.MaxExceeded
Erroradmin/system_presets/simple/site_domains_site-domain.php:51PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectGeneric.WhiteSpace.ScopeIndent.Incorrect
Errorcore/units/site_domains/site_domains_config.php:48PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeywordCodingStandard.Array.Array.SpaceAfterKeyword
Errorcore/units/site_domains/site_domains_config.php:48PHPCS.E.Generic.PHP.LowerCaseKeyword.FoundGeneric.PHP.LowerCaseKeyword.Found
Errorcore/units/site_domains/site_domains_config.php:154PHPCS.E.Generic.PHP.LowerCaseKeyword.FoundGeneric.PHP.LowerCaseKeyword.Found
Unit
No Unit Test Coverage
Build Status
Buildable 256
Build 256: arc lint + arc unit

Event Timeline

alex updated this revision to Diff 414.Nov 16 2015, 11:24 AM
alex retitled this revision from to INP-1515 - Allow to enable/disable the Site Domain.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1515.
alex edited the test plan for this revision. (Show Details)Nov 16 2015, 11:24 AM
alex edited edge metadata.
glebs accepted this revision.Nov 30 2015, 2:03 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Nov 30 2015, 2:03 AM
This revision was automatically updated to reflect the committed changes.
alex edited edge metadata.Mar 10 2016, 5:36 AM
alex added a project: Restricted Project.