Skip to content

Commit 5fb7a5e

Browse files
authored
Merge pull request #1 from civicrm/master
Updating Fork with Commits on Base
2 parents ec64795 + 97a7308 commit 5fb7a5e

File tree

5,012 files changed

+289357
-225382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,012 files changed

+289357
-225382
lines changed

.github/CONTRIBUTING.md

+20-76
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,20 @@
1-
CiviCRM is a community-driven open-source project. It has a small,
2-
full-time "core team" which facilitates development and works on critical
3-
issues. However, many improvements are driven by the active contributors.
4-
5-
This document provides important information about how to contribute.
6-
7-
## Review/Release Process
8-
9-
Releases are developed on a monthly cycle. At the start of the month, the
10-
release-manager will send an invitation to developers who have open PRs,
11-
encouraging them to participate in the release-cycle. Participation
12-
provides a way to exchange feedback with other developers, get PRs merged,
13-
and ensure the next release works -- all with a predictable timeline.
14-
15-
* For a high-level summary of the release process, see the
16-
[Release Management README](https://github.com/civicrm/release-management/blob/master/README.md).
17-
* For an example invitation, see the previous [invitation for the April-May 2016](https://github.com/civicrm/release-management/issues/1).
18-
19-
## Pull-Request Scope
20-
21-
A good pull request (PR) addresses a clearly-defined problem. There should be a detailed description logged in the [issue tracker](http://issues.civicrm.org/). Excellent PRs also increase test coverage. If you are tempted to do additional tweaks or code cleanup outside the scope of that issue, you could make a separate commit and include them in the PR if they are minor & non-controversial, or create a seperate PR if they are more complex.
22-
23-
There is no size limit for PRs as long as they are focused on completely solving a discreet problem. As a practical matter, though, bigger PRs may take longer to review and merge. When possible, split "epic" issues into bite-sized chunks as long as each seperate PR is functionally complete and does not cause merge conflicts with your other PRs. In the latter case, add commits to an existing PR.
24-
25-
## Pull-Request Subject
26-
27-
When filing a pull-request, use a descriptive subject. These are good examples:
28-
29-
* `CRM-12345 - Fix Paypal IPNs when moon is at half-crescent (waxing)`
30-
* `(WIP) CRM-67890 - Refactor SMS callback endpoint`
31-
* `(NFC) CRM_Utils_PDF - Improve docblocks`
32-
33-
A few elements to include:
34-
35-
* **CRM-_XXXXX_** - This is a reference to the [CiviCRM issue tracker](http://issues.civicrm.org/)
36-
(JIRA). A bot will setup crosslinks between JIRA and GitHub.
37-
* **Description** - Provide a brief description of what the pull-request does.
38-
* **(WIP)** - "Work in Progress" - If you are still developing a set of
39-
changes, it may be useful to submit a pull-request and flag it as
40-
`(WIP)`. This allows you to have discussion with other developers and
41-
check test results. Once the change is ready, update the subject line
42-
to remove `(WIP)`.
43-
* **(NFC)** - "Non-Functional Change" - Most patches are designed to
44-
change functionality (e.g. fix an error message or add a new button).
45-
However, some changes are non-functional -- e.g. they cleanup the
46-
code-style, improve the comments, or improve the test-suite.
47-
48-
## Testing
49-
50-
Pull-requests are tested automatically by a build-bot. Key things to know:
51-
52-
* If you are a new contributor, the tests may be placed on hold pending a
53-
cursory review. One of the administrators will post a comment like
54-
`jenkins, ok to test` or `jenkins, add to whitelist`.
55-
* The pull-request will have a colored dot indicating its status:
56-
* **Yellow**: The automated tests are running.
57-
* **Red**: The automated tests have failed.
58-
* **Green**: The automated tests have passed.
59-
* If the automated test fails, click on the red dot to investigate details. Check for information in:
60-
* The initial summary. Ordinarily, this will list test failures and error messages.
61-
* The console output. If the test-suite encountered a significant error (such as a PHP crash),
62-
the key details will only appear in the console.
63-
* Code-style tests are executed first. If the code-style in this patch is inconsistent, the remaining tests will be skipped.
64-
* The primary tests may take 20-120 min to execute. This includes the following suites: `api_v3_AllTests`, `CRM_AllTests`, `Civi\AllTests`, `civicrm-upgrade-test`, and `karma`
65-
* There are a handful of unit tests which are time-sensitive and which fail sporadically. See: https://forum.civicrm.org/index.php?topic=36964.0
66-
* The web test suite (`WebTest_AllTests`) takes several hours to execute. [It runs separately -- after the PR has been merged.](https://test.civicrm.org/job/CiviCRM-WebTest-Matrix/)
67-
68-
For detailed discussion about automated tests, see http://wiki.civicrm.org/confluence/display/CRMDOC/Testing
69-
70-
## Updating a pull-request
71-
72-
During review, there may be some feedback about problems or additional
73-
changes required for acceptance. If you've never updated a pull-request
74-
before, see [Stackoverflow: How to update a pull request](http://stackoverflow.com/questions/9790448/how-to-update-a-pull-request).
75-
76-
When you push the update to the pull-request, the test suite will re-execute.
1+
CiviCRM is a community-driven open-source project. It has a small, full-time
2+
[core team](https://civicrm.org/core-team)
3+
which facilitates development and works on critical issues.
4+
Additionally, a large community of active contributors and
5+
[partner organizations](https://civicrm.org/partners-contributors)
6+
drive much of the development work.
7+
8+
For developers, CiviCRM maintains a comprehensive
9+
[Developer Guide](https://docs.civicrm.org/dev/en/latest).
10+
Topics of particular importance while submitting pull requests include:
11+
12+
* [Contributing to CiviCRM core](https://docs.civicrm.org/dev/en/latest/core/contributing/)
13+
* [Pull requests](https://docs.civicrm.org/dev/en/latest/tools/git/#pr)
14+
* [Git workflow overview](https://docs.civicrm.org/dev/en/latest/tools/git/#contributing)
15+
* [Writing automated tests](https://docs.civicrm.org/dev/en/latest/testing/setup/)
16+
* [Jenkins continuous integration](https://docs.civicrm.org/dev/en/latest/tools/jenkins/)
17+
* [Release Process](https://docs.civicrm.org/dev/en/latest/core/release-process/)
18+
* [Developer Community](https://docs.civicrm.org/dev/en/latest/basics/community/)
19+
20+
CiviCRM thanks you for your contributions and invites you to [log your time spent](https://civicrm.org/contributor-log) so that you (or your organization) may receive public recognition and promotion for your efforts.

.github/PULL_REQUEST_TEMPLATE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Overview
2+
----------------------------------------
3+
_A brief description of the pull request. Try to keep it non-technical._
4+
5+
Before
6+
----------------------------------------
7+
_The current status. Please provide screenshots or gifs ([LICEcap](http://www.cockos.com/licecap/), [SilentCast](https://github.com/colinkeenan/silentcast)) where appropriate._
8+
9+
After
10+
----------------------------------------
11+
_What has been changed. Please provide screenshots or gifs ([LICEcap](http://www.cockos.com/licecap/), [SilentCast](https://github.com/colinkeenan/silentcast)) where appropriate._
12+
13+
Technical Details
14+
----------------------------------------
15+
_If the PR introduces noteworthy technical changes, please describe them here. Provide code snippets if necessary_
16+
17+
Comments
18+
----------------------------------------
19+
_Anything else you would like the reviewer to note_

.gitignore

+5-15
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
*~
22
*.bak
3+
.use-civicrm-setup
4+
/ext/
35
backdrop/
46
bower_components
57
CRM/Case/xml/configuration
68
CRM/Core/DAO/.listAll.php
79
CRM/Core/DAO/listAll.php
8-
CRM/Core/I18n/SchemaStructure.php
910
bin/setup.conf
10-
civicrm-version.php
1111
civicrm-version.txt
1212
civicrm.config.php
13-
install/langs.php
1413
node_modules
15-
packages/.channels
16-
packages/.depdb
17-
packages/.depdblock
18-
packages/.filemap
19-
packages/.lock
20-
packages/.registry
21-
packages/cache
22-
packages/doc
23-
packages/temp
24-
packages/test
2514
settings_location.php
2615
sql/case_sample.mysql
2716
sql/civicrm.mysql
@@ -32,12 +21,12 @@ sql/civicrm_data.mysql
3221
sql/civicrm_drop.mysql
3322
sql/civicrm_navigation.mysql
3423
sql/civicrm_sample.mysql
35-
templates/CRM/common/version.tpl
3624
tests/phpunit/CiviTest/CiviSeleniumSettings.php
3725
tests/phpunit/CiviTest/civicrm.settings.php
3826
tools/stats/config.php
3927
authors.txt
40-
drupal/
28+
/drupal/
29+
/drupal-8/
4130
WordPress
4231
joomla
4332
packages/
@@ -54,3 +43,4 @@ civicrm.settings.php
5443
sql/dummy_processor.mysql
5544
distmaker/distmaker.conf
5645
distmaker/out
46+
/tmp

.toxic.json

+71-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,79 @@
33
"toxicAlert": "<img alt=\"Please: Help save the fish from toxic code\" src=\"https://civicrm.org/sites/civicrm.org/files/HazCode-Please.png\">\n\n(Automated notice) This pull-request modifies {SYMBOLS}. That code has been previously identified as hazardous. For advice on dealing with it, please review [Toxic Code Protocol](http://wiki.civicrm.org/confluence/display/CRM/Toxic+Code+Protocol)."
44
},
55
"checks": {
6-
"CRM_Contact_Import_Parser_Contact::import()": "toxicAlert",
7-
"CRM_Core_BAO_Mapping::buildMappingForm()": "toxicAlert",
8-
"CRM_Event_Form_Participant::postProcess()": "toxicAlert",
9-
"CRM_Export_BAO_Export::exportComponents()": "toxicAlert",
10-
"CRM_Member_Form_Membership::postProcess()": "toxicAlert",
11-
"CRM_Contribute_Form_Contribution::postProcess()": "toxicAlert",
6+
"CRM_Activity_BAO_Activity::create()": "toxicAlert",
7+
"CRM_Activity_Form_Activity::preProcess()": "toxicAlert",
8+
"CRM_Case_BAO_Case::getCaseActivity()": "toxicAlert",
9+
"CRM_Case_BAO_Case::mergeCases()": "toxicAlert",
10+
"CRM_Contact_BAO_Contact::formatProfileContactParams()": "toxicAlert",
11+
"CRM_Contact_BAO_ContactTest::testCreateProfileContact()": "toxicAlert",
12+
"CRM_Contact_BAO_Individual::format()": "toxicAlert",
13+
"CRM_Contact_BAO_Query::addHierarchicalElements()": "toxicAlert",
14+
"CRM_Contact_BAO_Relationship::relatedMemberships()": "toxicAlert",
15+
"CRM_Contact_Form_Contact::postProcess()": "toxicAlert",
1216
"CRM_Contact_Import_Form_MapField::buildQuickForm()": "toxicAlert",
17+
"CRM_Contact_Import_Parser::formatCommonData()": "toxicAlert",
18+
"CRM_Contact_Import_Parser::formatContactParameters()": "toxicAlert",
19+
"CRM_Contact_Import_Parser::run()": "toxicAlert",
20+
"CRM_Contact_Import_Parser_Contact::import()": "toxicAlert",
21+
"CRM_Contribute_BAO_Contribution::recordFinancialAccounts()": "toxicAlert",
22+
"CRM_Contribute_BAO_Contribution::transitionComponents()": "toxicAlert",
23+
"CRM_Contribute_BAO_ContributionPage::sendMail()": "toxicAlert",
24+
"CRM_Contribute_BAO_Query::whereClauseSingle()": "toxicAlert",
25+
"CRM_Contribute_Form_Contribution::buildQuickForm()": "toxicAlert",
26+
"CRM_Contribute_Form_Contribution::submit()": "toxicAlert",
27+
"CRM_Contribute_Form_ContributionBase::preProcess()": "toxicAlert",
28+
"CRM_Contribute_Form_ContributionPage_Amount::postProcess()": "toxicAlert",
29+
"CRM_Contribute_Form_Contribution_Confirm::postProcessMembership()": "toxicAlert",
30+
"CRM_Contribute_Form_Contribution_Confirm::processFormSubmission()": "toxicAlert",
31+
"CRM_Contribute_Form_Contribution_Main::buildQuickForm()": "toxicAlert",
1332
"CRM_Contribute_Form_Contribution_Main::formRule()": "toxicAlert",
33+
"CRM_Contribute_Form_Contribution_Main::submit()": "toxicAlert",
34+
"CRM_Contribute_Form_Task_Invoice::printPDF()": "toxicAlert",
35+
"CRM_Contribute_Import_Parser::run()": "toxicAlert",
36+
"CRM_Core_BAO_ActionScheduleTest::setUp()": "toxicAlert",
37+
"CRM_Core_BAO_CustomField::formatCustomField()": "toxicAlert",
38+
"CRM_Core_BAO_CustomGroup::getTree()": "toxicAlert",
39+
"CRM_Core_BAO_Mapping::buildMappingForm()": "toxicAlert",
40+
"CRM_Core_BAO_UFGroup::buildProfile()": "toxicAlert",
41+
"CRM_Core_BAO_UFGroup::getValues()": "toxicAlert",
42+
"CRM_Core_I18n_SchemaStructure::widgets()": "toxicAlert",
43+
"CRM_Core_Permission::getEntityActionPermissions()": "toxicAlert",
44+
"CRM_Core_PseudoConstantTest::testOptionValues()": "toxicAlert",
45+
"CRM_Custom_Form_Field::formRule()": "toxicAlert",
46+
"CRM_Dedupe_Merger::getRowsElementsAndInfo()": "toxicAlert",
47+
"CRM_Dedupe_Merger::moveAllBelongings()": "toxicAlert",
48+
"CRM_Event_Form_ManageEvent_Fee::formRule()": "toxicAlert",
49+
"CRM_Event_Form_Participant::submit()": "toxicAlert",
1450
"CRM_Event_Form_Registration_Confirm::postProcess()": "toxicAlert",
15-
"CRM_Event_BAO_Event::displayProfile()": "toxicAlert",
16-
"CRM_Contribute_Form_Contribution_Confirm::postProcess()": "toxicAlert"
51+
"CRM_Event_Form_Registration_Register::buildQuickForm()": "toxicAlert",
52+
"CRM_Event_Form_Registration_Register::postProcess()": "toxicAlert",
53+
"CRM_Export_BAO_Export::exportComponents()": "toxicAlert",
54+
"CRM_Mailing_BAO_Mailing::compose()": "toxicAlert",
55+
"CRM_Mailing_BAO_Mailing::getRecipients()": "toxicAlert",
56+
"CRM_Mailing_BAO_Mailing::report()": "toxicAlert",
57+
"CRM_Member_Form_Membership::formRule()": "toxicAlert",
58+
"CRM_Member_Form_Membership::submit()": "toxicAlert",
59+
"CRM_PCP_Page_PCPInfo::run()": "toxicAlert",
60+
"CRM_Price_BAO_PriceField::addQuickFormElement()": "toxicAlert",
61+
"CRM_Price_Form_Field::formRule()": "toxicAlert",
62+
"CRM_Profile_Form::buildQuickForm()": "toxicAlert",
63+
"CRM_Profile_Form::postProcess()": "toxicAlert",
64+
"CRM_Profile_Form::preProcess()": "toxicAlert",
65+
"CRM_Profile_Page_Dynamic::run()": "toxicAlert",
66+
"CRM_Report_Form_Contact_Detail::__construct()": "toxicAlert",
67+
"CRM_Report_Form_Contribute_Bookkeeping::__construct()": "toxicAlert",
68+
"CRM_Report_Form_Contribute_Detail::__construct()": "toxicAlert",
69+
"CRM_Report_Form_Event_ParticipantListing::__construct()": "toxicAlert",
70+
"CRM_Report_Form_Member_ContributionDetail::__construct()": "toxicAlert",
71+
"CRM_UF_Form_Field::buildQuickForm()": "toxicAlert",
72+
"CRM_Upgrade_Incremental_php_FourThree::createFinancialRecords()": "toxicAlert",
73+
"CRM_Utils_Date::relativeToAbsolute()": "toxicAlert",
74+
"CRM_Utils_Mail_EmailProcessor::_process()": "toxicAlert",
75+
"ImportCiviSeleniumTestCase::importContacts()": "toxicAlert",
76+
"WebTest_Contribute_OnBehalfOfOrganization::_testUserWithMoreThanOneRelationship()": "toxicAlert",
77+
"WebTest_Profile_BatchUpdateTest::testBatchUpdate()": "toxicAlert",
78+
"api_v3_JobTest::getMergeLocations()": "toxicAlert",
79+
"api_v3_JobTest::getMergeSets()": "toxicAlert"
1780
}
1881
}

0 commit comments

Comments
 (0)