René Pfeuffer
47b55414f0
Add missing test
2018-08-07 17:06:33 +02:00
René Pfeuffer
8dd7aafecd
Add missing documentation
2018-08-07 16:59:44 +02:00
René Pfeuffer
bf0c559a7d
Use try-with-resources
2018-08-07 16:52:40 +02:00
Sebastian Sdorra
15255aeeb1
merge with branch feature/repositories-ui
2018-08-07 16:34:26 +02:00
René Pfeuffer
42aac06f0a
Add branch endpoint
2018-08-07 16:15:52 +02:00
René Pfeuffer
14611d89d0
Add branch collection endpoint
2018-08-07 15:15:12 +02:00
Maren Süwer
5731b607be
change repository-types to repositoryTypes
2018-08-07 12:58:16 +02:00
Johannes Schnatterer
869821f6db
Fixes some SQ Issues regarding DTO add(Links) methods.
2018-08-06 17:47:46 +02:00
René Pfeuffer
6fff26eb76
Add http protocol link to repository object response
2018-08-06 15:34:31 +02:00
René Pfeuffer
e3d2997e71
Migrate IT for read and commit from/to repository to new module
2018-08-06 13:48:06 +02:00
Johannes Schnatterer
fc0676d511
Moves jackson annotations dependency to core.
...
Will be needed by plugins in future.
2018-08-06 12:57:44 +02:00
Johannes Schnatterer
0179cc3369
Adds profile for rest docs to plugins module.
...
It's redundant (also configured in webapp) but would fail the core
build if activated.
2018-08-06 11:52:31 +02:00
Johannes Schnatterer
a07c9c18dd
Gets rid of redundant dependency declarations in plugins and webapp.
...
It's better to define the "web"/REST dependencies that are used by
plugins once in core, instead of redundant in webapp and plugins.
This should create better awareness when changing the dependency version
(changing in core is always critical due to API downward compatibility).
2018-08-06 11:36:08 +02:00
René Pfeuffer
2316e5ea7e
Cleanup repository archive integration test
2018-08-06 11:28:12 +02:00
René Pfeuffer
1f1ecb6f9b
Delete cache integration tests
2018-08-06 11:27:56 +02:00
René Pfeuffer
83005bebf4
Use namespace and name instead of id in repository hooks
2018-08-06 11:11:44 +02:00
René Pfeuffer
e60bea5f08
Simplify scm test parameters
2018-08-03 10:42:47 +02:00
René Pfeuffer
62f8509e85
Introduce new integration test module
2018-08-03 09:38:13 +02:00
René Pfeuffer
fd873877c4
Fix old integration tests for migration period
2018-08-03 09:28:54 +02:00
René Pfeuffer
ebe3ef8c3e
Remove unused exception constructors
2018-08-03 08:40:01 +02:00
René Pfeuffer
f0f57de4b5
Remove error prone getByNamespace method
...
This method does not report missing permissions correctly.
2018-08-03 08:35:55 +02:00
Philipp Czora
7e2abee396
Fixed test data
2018-08-02 16:08:43 +02:00
Philipp Czora
80d4130e03
Group Resource now accepts a list of member's names instead of full user objects
2018-08-02 16:03:17 +02:00
Johannes Schnatterer
1c52b33229
Brings mapstruct processor back to plugin and webapp.
2018-08-02 15:22:41 +02:00
Johannes Schnatterer
8c8d908378
Config Resource DTO Mappers: Make use of BaseMapper.
...
More DRY.
2018-08-02 15:03:30 +02:00
Johannes Schnatterer
e28faf3029
Create CollectionToDtoMapper in core module.
...
See commit 689e5ae95645768b024dee52c10451c944a41527.
Useful for hg plugin.
2018-08-02 14:45:04 +02:00
Johannes Schnatterer
988dfbd689
Config Resources: Makes REST API docs for 403 more precise
2018-08-02 13:21:07 +02:00
Johannes Schnatterer
982d502203
Config Resources: Gets rid of unnecessary UriInfo param
2018-08-02 13:18:21 +02:00
Sebastian Sdorra
99ecc8cba2
implemented rest endpoint for repository types
2018-08-02 11:56:35 +02:00
Johannes Schnatterer
31540a7ecc
Makes REST API doc for config endpoints more precise
2018-08-02 11:52:30 +02:00
Johannes Schnatterer
7fd944357d
Config DTO: Adds namespace strategy
2018-08-02 10:45:59 +02:00
René Pfeuffer
f191f2833d
Fix handling of RepositoryIsNotArchivedException
2018-08-02 08:56:03 +02:00
Sebastian Sdorra
d49c07b992
change collection type hint from array of dto to CollectionDto
2018-08-02 13:20:37 +02:00
Johannes Schnatterer
aed70d3544
Git Plugin Config: Create fine-grained configuration permissions.
...
No more hard-coded isAdmin() checks.
Also adds more tests.
2018-08-01 16:21:05 +02:00
Johannes Schnatterer
e7ca81a6f4
Merge
2018-08-01 14:17:48 +02:00
Johannes Schnatterer
11e2112e80
Adds docs for config and me resources
2018-08-01 14:16:08 +02:00
Johannes Schnatterer
02327b55f3
Makes pom.xmls more DRY
2018-08-01 11:42:40 +02:00
René Pfeuffer
41170a1c83
Fix error for multiple creation of repositories
2018-08-01 11:40:09 +02:00
Johannes Schnatterer
35231fb202
Merged 2.0.0-m3 into feature/global_config_v2_endpoint
2018-08-01 10:30:38 +02:00
René Pfeuffer
44d96f29ad
Initialize missing user database at startup
2018-08-01 09:59:23 +02:00
Sebastian Sdorra
ea17e536f1
change NamespaceStrategy signature to createNamespace(Repository)
...
This change allows us to implement NamespaceStrategies, such as by type (git, hg, svn) or manual defined.
The DefaultNamespaceStrategy accepts now a predefined namespace and only if no namespace was set the username of the currently logged in user is used.
2018-08-01 09:43:49 +02:00
Johannes Schnatterer
c3b7703f2b
Merged 2.0.0-m3 into feature/global_config_v2_endpoint
2018-07-31 16:21:40 +02:00
Johannes Schnatterer
865929b328
Renames globalConfig to config.
...
From an SCMM point of view there is only one config, so no "global" necessary.
The others configs are provided by plugins.
2018-07-31 14:47:15 +02:00
Johannes Schnatterer
ca93735514
Return no content on PUT /config
2018-07-31 14:14:21 +02:00
Johannes Schnatterer
912dea6d6e
Simplifies GlobalConfigDto.
...
Use camel case everywhere and no XML annotation.
2018-07-31 14:13:41 +02:00
Johannes Schnatterer
9aaca22942
DTO Config Mapper: Adds tests for all properties
2018-07-31 13:43:43 +02:00
Johannes Schnatterer
c7ce170513
Config DTO Mapper: Adds tests for all properties
2018-07-31 13:18:27 +02:00
Johannes Schnatterer
7572580ac1
Create fine-grained configuration permissions.
...
No more hard-coded isAdmin() checks.
2018-07-30 17:41:00 +02:00
Philipp Czora
ea5ef13cfb
Added tests for AuthenticationResource
2018-07-30 17:07:22 +02:00
Sebastian Sdorra
dc0ed6b695
remove legacy exception handling from AuthenticationResource
2018-07-30 16:19:21 +02:00