This results in us having to use a bit more helpers around request and feature specs
to ensure that the configured host name also matches the requested one.
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.
Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
* replace alias_method_chain
* remove deprecation silencing
* bump controller-testing
* introduce permitted params for settings
* replace various deprecations in controllers
* remove deprecation silencing for legacy_specs
* remove `puts` from spec
* replace deprecated access to errors
* remove unnecessary AR::Parameters usage in spec
* specify error to expect
* replace deprecations
* replace deprecated action calls in legacy function specs
* replace deprecations in functional controller tests
* replace deprecations in controllers/controller_specs
* remove params parser which does not seem to be in effect
It is registered for the content type :exclude which makes no sense as it should deal with :json. The desired behaviour of the api dealing with parsing errors is working with or without the code.
* replace deprecations in unit specs
* replace alias_method_chain
[ci skip]
This commit provides some helpers to alleviate SCM vendor plugins:
* Provide code notifications when project, members and users are changed.
* Allow Repository:* to determine base URL themselves
(when no common URL is available)
* Open Git adapter for subclassing (Gitolite)
This commit removes the functionality provided by reposman.rb,
and replaces that script with an empty placeholder printing only
a deprecation warning (as to not throw errors in existing cronjobs).
In detail, this commit does:
* replace reposman.rb with an script printing a deprecation only.
* Remove repositories creation API in SysController and corresponding
specs
* Update documentation guides concerning the deprecation of reposman
* Remove packager scripts for creating a reposman.rb cronjob.
* Adds a rake task to migrate repositories to managed type with a common
* URL prefix.
This commit extends the previous functionality of *autofetch commits*
into internal updating of repository information, which encompasses:
* Commit information (changesets)
* Disk space information
They are now both retrieved when browsing the repository and the latter
is fetched asynchronously whenever the last update is older than the
timeout setting.
This timeout setting is now user-configurable.
- switched to toggleable-attribute-groups to provide means for
adding buttons in the attribute header (e.g., delete button).
- added separate destroy_info page with different notifications
for managed and linked repositories to ensure ramifications of removing
physical repositories are communicated to the user.
- Fixed several issues regarding scm_type selection and the building
of repositories.
Open questions still concern the question of acessing unsupported
repositories (e.g., the soon-to-be-removed filesystem adapter).
Acessing the class should will then throw an error, but we still have
to allow users to remove the affected repository (somehow).
This PR begins the push towards management of repository lifetime
from within OpenProject.
What this currently provides is the following:
- A mixin `ManageableRepository`, included by `Repository::{Git,
Subversion}` to provide an interface to repo management
- Two services and delayed_job workers for creating (`CreateManagedRepositoryService`) and
deleting (`DeleteRepositoryService`)
- Customized rendering of subforms in the repository settings for
arbitrary SCM vendors.
TODOS:
- [x] Provide sane ground to work on ( cf. PR #3149 )
- [x] Rework SCM settings form (`{scm}_tags` is currently HTML generated
from within a Helper.)
- [x] Ease integration of arbitrary SCM vendors
- [x] Display meaningful error / warning when user looks at bare
repository (currently outputs 500, as Git HEAD / svn revision is not
available)
- [x] I18n
- [ ] Specs (in progress)
- [x] Fix legacy specs
- [ ] Decide what to do with `Filesystem` adapter.
Open Questions:
- **Configuration**: Currently replaces the existing options in
`configuration.yml`.
- **Implementation specifics**:
- Sub-projects repositories reside in a hierarchy below their parents
- How should the delayed_job react upon failure? (esp. creation of
repositories)
Relevant work package: https://community.openproject.org/work_packages/20416
Merge dependent on PR #3149