11853 Commits

Author SHA1 Message Date
CES Marvin
6b90e3efe4 Release version 2.15.0 2.15.0 2021-03-12 13:07:53 +00:00
Eduard Heimbuch
09af8b3f23 Adjust changelog for release 2.15.0 2021-03-12 13:59:07 +01:00
René Pfeuffer
84c8e02bf1 Feature Partial Diff (#1581)
With this pull request, diffs for Git are loaded in chunks. This means, that for diffs with a lot of files only a part of them are loaded. In the UI a button will be displayed to load more. In the REST API, the number of files can be specified. This only works for diffs, that are delivered as "parsed" diffs. Currently, this is only available for Git.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-03-12 13:52:17 +01:00
Konstantin Schaper
e66553705f Create api for markdown ast plugins (#1578)
Currently we only have the option to adjust rendering of the markdown output, but no option to change the generated ast tree before rendering takes place (i.e. to adjust the structure like when replacing text with links). This PR adds a new api to create ast plugins that can be integrated with the markdown view component. This is intended to be backwards-compatible and work independently from the underlying implementation.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-03-11 10:28:18 +01:00
Florian Scholdei
0d3339b0cb Add repository-specific non-ff disallowed option (#1579)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-03-11 10:13:26 +01:00
Eduard Heimbuch
831877564d Fix null check 2021-03-10 15:12:21 +01:00
Sebastian Sdorra
7656c2dc14 Add API for metrics based on Micrometer (#1576) 2021-03-10 10:07:29 +01:00
Sebastian Sdorra
aa15227f0a Mark configuration files in debian package (#1574)
Mark server-config.xml, logging.xml and defaults explicit as
configuration files.
Due too a bug in gradle-ospackage-plugin it is not enough to mark them via fileType.

https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/118
2021-03-08 09:33:30 +01:00
Florian Scholdei
692c71c192 Small typo 2021-03-06 14:26:18 +01:00
Eduard Heimbuch
644b2e106c Add privileged startup api (#1573)
Add privileged startup api to perform startup action with
administration context. This extracts the different startup
actions into own classes. Doing so, they will run independently
of settings for the user creation.
2021-03-05 15:43:09 +01:00
Sebastian Sdorra
cff00b363d Upgrade to react 17.0.1 (#1570)
* Upgrade react to 17.0.1

* Remove unused dependencies

* Use version 17.0.1 of react-test-renderer

* Use fixed react type for core plugins

* Fix enzyme on react 17
2021-03-05 15:09:35 +01:00
René Pfeuffer
512bf20659 Run JUnit 5 integration tests again (#1571)
With the migration to gradle we lost the JUnit 5 integration tests. This is fixed here. In addition we have to adapt the AnonymousAccessITCase to the change, that the anonymous access is disabled when creating the default test data.
2021-03-05 15:08:20 +01:00
Eduard Heimbuch
861e1d34ca Fix endless running test (#1572)
Fix endless running ui tests.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2021-03-05 10:10:02 +01:00
Sebastian Sdorra
89548d45bd Filepath search (#1568)
Add search for files to the sources view. The search is only for finding file paths. It does not search any file metadata nor the content. Results get a rating, where file names are rated higher than file paths. The results are sorted by the score and the first 50 results are displayed.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2021-03-04 10:39:58 +01:00
Florian Scholdei
bafe84b79a Fix wrapping of title and actions in source view (#1569)
The title of a file and the action buttons had to share the space. Now the title takes it needs and the actions move down if necessary. This behavior is similar to the list of files in changeset view (content component).
2021-03-04 09:54:08 +01:00
CES Marvin
087c7f3712 Prepare for next development iteration 2021-03-03 15:16:52 +00:00
CES Marvin
396789efa4 Release version 2.14.1 2.14.1 2021-03-03 14:21:12 +00:00
Eduard Heimbuch
bd79f94f55 Adjust changelog for release 2.14.1 2021-03-03 15:14:40 +01:00
Sebastian Sdorra
0072808c7d Upgrade react-markdown to prevent xss from stored markdown (#1567)
Prevent XSS attacks from stored markdown, by updating react-markdown to v5 which sanitizes html.
2021-03-03 15:06:34 +01:00
Sebastian Sdorra
4ec01ff4d1 Fix endless loading spinner for sources of empty repositories (#1565) 2021-03-03 11:00:26 +01:00
Florian Scholdei
8e2c2aaa5e Prevent breadcrumb overflow and shrink large elements (#1563)
- Restore left margin on copy permalink
- Move slash to the right to make it resemble the console
- Shrink large elements
- Add new storyshot
- Fix separation of toggle icon and file title
2021-03-03 10:57:15 +01:00
Florian Scholdei
61814a5027 Clarify that FileUpload component does not upload directly (#1566)
Clarify that FileUpload component does not upload directly:
Changed label from “Upload” to “Select File” and icon from direct to a kind of upload.
2021-03-03 10:01:29 +01:00
Konstantin Schaper
311528fd45 Add permalink button to markdown headings (#1564)
* add permalink button to markdown headings
2021-03-03 09:52:18 +01:00
Eduard Heimbuch
96658046ff Merge branch 'develop' of github.com:scm-manager/scm-manager into develop 2021-03-02 14:00:13 +01:00
Eduard Heimbuch
2a425af205 Fix redirect after logout 2021-03-02 13:59:07 +01:00
René Pfeuffer
e295be20bf Suppress sonar cipher warning 2021-03-02 08:11:08 +01:00
Eduard Heimbuch
bac8ee246c Add publish config to ui-api package 2021-03-01 14:21:03 +01:00
CES Marvin
fe73d46e08 Prepare for next development iteration 2021-03-01 13:01:50 +00:00
CES Marvin
caf29c555b Merge branch 'master' into develop 2021-03-01 13:01:29 +00:00
CES Marvin
a25fd7acbb Release version 2.14.0 2.14.0 2021-03-01 12:32:32 +00:00
Eduard Heimbuch
89d5819117 Adjust changelog for release 2.14.0 2021-03-01 13:22:33 +01:00
René Pfeuffer
1f78e2fbd7 Suppress irrelevant warning 2021-03-01 09:22:56 +01:00
Eduard Heimbuch
7852d1034e Fix build warnings (#1562)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-03-01 09:08:01 +01:00
René Pfeuffer
0695ca3bac Add import protocol (#1558)
Adds a protocol for repository imports (either from an URL, a dump file or a SCM-Manager repository archive).
This protocol documents single steps of an import, the time and the user and is accessible via a dedicated REST
endpoint or a simple ui.

The id of the log is added to the repository imported event, so that plugins like the landingpage or mail can link to these logs.
2021-02-26 13:52:29 +01:00
Eduard Heimbuch
d19f61735b Merge branch 'feature/import_protocol' of github.com:scm-manager/scm-manager into feature/import_protocol 2021-02-26 12:33:00 +01:00
René Pfeuffer
4ceb9c1b8c Wrap event 2021-02-26 12:30:08 +01:00
Eduard Heimbuch
3edcb8c095 Merge branch 'feature/import_protocol' of github.com:scm-manager/scm-manager into feature/import_protocol 2021-02-26 12:04:41 +01:00
René Pfeuffer
5b9a445cb3 Send import event on full import 2021-02-26 12:04:29 +01:00
Eduard Heimbuch
ebc721f128 Merge branch 'develop' into feature/import_protocol 2021-02-26 11:24:22 +01:00
René Pfeuffer
3d97e79524 Replace printStackTrace with correct logging 2021-02-26 11:23:38 +01:00
René Pfeuffer
1d674055c8 Write success only once 2021-02-26 11:08:03 +01:00
René Pfeuffer
d4c5436c4c Fix unit tests after rebase 2021-02-26 11:08:03 +01:00
René Pfeuffer
e2cd0a8eeb Check log permission before returning stream 2021-02-26 11:08:03 +01:00
René Pfeuffer
97c2165a52 User blob store instead of data store 2021-02-26 11:08:00 +01:00
René Pfeuffer
89e573ad72 Log change 2021-02-26 11:04:50 +01:00
René Pfeuffer
c3a5dd4ffb Add page for import logs 2021-02-26 11:04:50 +01:00
René Pfeuffer
75ed038084 Use repository id as id for import log 2021-02-26 11:04:48 +01:00
René Pfeuffer
d42560aba3 Add log id to imported event 2021-02-26 10:48:06 +01:00
René Pfeuffer
8f5fcf6911 Guard import log 2021-02-26 10:42:35 +01:00
René Pfeuffer
8170d981cd Add unit test for log output 2021-02-26 10:42:35 +01:00