OS2Forms is a drupal based solution for creating advanced webform functionality for Danish Municipalities.
Solution main repositories:
All OS2Forms projects are using EUPL v1.2 License.
Every OS2Forms drupal project should have continuous integration builds are performing by Travis CI. To improve code quality and integration possibilities there are using set of following tools:
For more details about travis-ci continuous integration builds
see .travis-ci.yml
file in project git repository.
NOTE: Some projects couldn't have its own PHPUnit test. This is a part of future development scope.
Project use default approach for branch naming.
develop
- general development branch (Default).develop-2.x
- development branch for version 2.x. (if requires)master
- stable version of code.There are no specific rules for feature branch names. However we recommend use OS2Forms JIRA or github issue ticket number as prefix for your branch name.
Release tags should be created from related branches. Tag name space should follow Semantic Versioning rules. Given a version number MAJOR.MINOR.PATCH, increment the:
Since OS2Forms projects are Drupal friendly, there was used drupal-friendly git branch/tag names like 8.x, 8.x-2.x. Please keep use it or ask about changes in case this names are not compatible with changes you have.
For new repositories it was decided to switch back to github, composer way to for branch names.
New changes or bugfixes in existing codebase have to be added to repository through general code review process. To request a code review, use the following process:
NOTE: There are preconditions that have to be met before accepting a pull request:
To patch a drupal composer project see: https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupal/working-with-patches/applying-a-patch-in-a-feature-branch#s-composer
"extra": {
"enable-patching": true
}
Example:
Given the following dependency tree:
composer why drupal/dynamic_entity_reference -r
drupal/recommended-project - requires os2forms/os2forms_forloeb_profile (dev-composer_cleanup)
drupal/recommended-project - requires os2forms/os2forms_forloeb (dev-composer_cleanup as 2.5.0)
os2forms/os2forms_forloeb_profile dev-composer_cleanup requires os2forms/os2forms_forloeb (^2.5)
os2forms/os2forms_forloeb dev-composer_cleanup requires drupal/workflow_participants (^2.4)
drupal/workflow_participants 2.6.0 requires drupal/dynamic_entity_reference (^2.0)
...the os2forms/os2forms_forloeb project is responsible for patching drupal/dynamic_entity_reference contributed module. Leave a comment about why the patch belongs here.
"patches": {
"//": "Note: drupal/dynamic_entity_reference is required by drupal/workflow_participants",
"drupal/dynamic_entity_reference": {
"entityQuery reference JOINs should specify target_type (https://www.drupal.org/project/dynamic_entity_reference/issues/3120952#comment-14141038)": "https://www.drupal.org/files/issues/2021-06-22/entityquery-reference-joins-should-specify-target_type-3120952-24.patch"
}
See Drupal community code of Conduct