-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi AOP #5426
Multi AOP #5426
Conversation
pick commits from old repo: handle some user error e17ffe0d resolve some console error on SuiteP login f5ed4899 09 May, 2017 8 commits Merge branch 'staging' into 'develop-430/432-multi_aop' ... 89c9fe34 JAccount validation af3bd372 error handling at JAccount save a58cd219 handle array msgs d91fac51 dbg refact b0b02a9c typo func name fix 694bbe3d typo fix db857ff9 add debug info for testing on dev bad8fc93 08 May, 2017 5 commits remove dbg and remove a php notice c391e062 more informative begub and errorhandling for dev srv 46d5b4b9 signed exeption if no trace info bc110409 handle some error and infos 098310ec typo fix 4f6b489d 11 Apr, 2017 4 commits upgrade portal url in config 7f3b6eca creator portal url 77cf5f30 Merge branch 'develop' into develop-430/432-multi_aop a0683125 gitignore autogenerated style.css.map 9435c1fd 10 Apr, 2017 1 commit use only one related jaccount per contact/portal 7e3e7f79 07 Apr, 2017 12 commits a style fix 8ffff73d fix submenu funcs 1a4284e6 scss color link f2c5f81e a licens header added 8621a658 fix admin aop urls inputs 73896b0c delete non used files 02feca9e a typo 3ffc7960 aop xml check 5d5c736e backward compatible cf9c34e4 keep synch contact data for portal d3d5ece0 refact 32bac9c7 create/enable/disable only at these portal url(s) where it's possible 18d72beb 05 Apr, 2017 1 commit add multiple portal (code refact needed) 55798ad3 04 Apr, 2017 1 commit add dropdowns 4b283ceb 03 Apr, 2017 1 commit multiple portal url in AOP f9babe7a
pick up commits from old repo: class in separated files fabf9c8b check for email sent and fix a php notice edb91aeb fix email sending to created aop user e7568f04 retrieve rest requested jaccount 3f804dcf fix portal user creation email 7ae04322 15 May, 2017 2 commits handle portal version error 01b891ea refacts and fixes
.travis.yml
Outdated
@@ -25,7 +25,7 @@ before_script: | |||
script: | |||
- \[ -f "config_si.php" \] || cp tests/travis_config_si.php config_si.php | |||
- php tests/testinstall.php | |||
- ./vendor/bin/codecept run -f unit --steps -vvv --debug | |||
- ./vendor/bin/codecept run unit --steps -vvv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to ensure that codeception returns 1 as soon as it finds an issue in the tests. Please revert the option -f.
@@ -355,10 +363,10 @@ function quick_edit_case_updates($case) | |||
$html = <<< EOD | |||
<form id='case_updates' enctype="multipart/form-data"> | |||
|
|||
<div><label for="update_text">{$mod_strings['LBL_UPDATE_TEXT']}</label></div> | |||
<div><label for="update_text"></label></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing the translation in the label? Should we remove the translation here? What effect does removing this label have?
@@ -130,25 +136,39 @@ function aop_parse_template($string, $bean_arr) | |||
|
|||
foreach ($bean_arr as $bean_name => $bean_id) { | |||
|
|||
$focus = BeanFactory::getBean($bean_name, $bean_id); | |||
if($focus = BeanFactory::getBean($bean_name, $bean_id)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates a PHP Notice. Consider moving the $focus to the line above, and then checking if (empty($focus)).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it doesn't, this line set the $focus.
modules/AOP_Case_Updates/util.php
Outdated
* @return boolean | ||
*/ | ||
function url_exists($url) { | ||
if (!$fp = curl_init($url)) return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our coding standards states we must use {} for if statements. However perhaps it would be better to do something like this:
return (curl_init($url) !== false);
curl_init returns false when an error occurs
modules/Administration/AOPAdmin.tpl
Outdated
@@ -72,11 +72,12 @@ | |||
$('#enable_aop').change(); | |||
$('#enable_portal').change(function (){ | |||
if($('#enable_portal').is(":checked") && $('#enable_aop').is(":checked")){ | |||
addToValidate('ConfigureSettings','joomla_url','text',true,"{/literal}{$MOD.LBL_AOP_JOOMLA_URL}{literal}"); | |||
$('#joomla_url_row').show(); | |||
// TODO: check is multiple validation type correct for us and do we need the validation here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove TODO.
'len' => 36, | ||
'size' => '20', | ||
), | ||
'email1' => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the email1 in the JAccount class.
'type' => 'varchar', | ||
'len' => '255', | ||
'importable' => 'false', | ||
'studio' => 'true', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the joomla_account_id in the JAccount class.
'importable' => 'false', | ||
'studio' => 'true', | ||
), | ||
'portal_account_disabled' => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the portal_account_disabled in the JAccount class
'importable' => 'false', | ||
'studio' => 'false', | ||
), | ||
'joomla_account_access' => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the joomla_account_access in the JAccount class
'importable' => 'false', | ||
'studio' => 'false', | ||
), | ||
'portal_user_type' => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please define the joomla_account_access in the JAccount class
Do @salesagility also plan to make some upgrade in the joomla plugin? Note: the ZIP download its also not available from your site! |
@horus68 We will be updating the AOP plugin for joomla. So that it can support this feature and the new OAuth 2 server. |
'LNK_NEW_RECORD' => 'Create JAccount', | ||
'LNK_LIST' => 'View JAccount', | ||
'LNK_IMPORT_JACCOUNT' => 'Import JAccount', | ||
'LBL_SEARCH_FORM_TITLE' => ' JAccount', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intended to start with a space in ' JAccount',
?
@gymad Perhaps link this up with the appropriate Joomla plugin PR for people to test thoroughly. |
@horus68 The zip can be found here: https://suitecrm.com/resources/suitecrm-joomla-portal-plug-in/ |
@Dillon-Brown great to have this back again, even if just 2.0.1 version (nov 2016). |
@samus-aran the link to the Joomla portal PR: salesagility/SuiteCRM-Portal-Joomla#25 |
Please resolve the conflicts on this pull request bringing it up to date. |
@gymad any update to solve conflicts here? |
No plan to resolve conflicts, update this PR or merge this multi joomla portal feature? |
Description
ability to join multiple joomla site to suitecrm
Motivation and Context
How To Test This
join multiple joomla site to crm, try each functionality in cases module with multiple users...
test for backward compatibility, upgrade an older version of suitecrm and add more joomla sites
at the admin panel, check is multiple validation type correct for us and do we need the validation here?
test somehow the marking as undeleted was success?
at updating portal, check which joomla url need for us to send because since it's multiple it does not make sense
Types of changes
Final checklist