Commit Graph

431 Commits

Author SHA1 Message Date
Eduard Heimbuch
d91c71ace1 Add the repository import and export with metadata for Subversion repositories (#1501)
* Add store exporter to collect the repository metadata
* Add EnvironmentInformationXmlGenerator
* Collect export data and put into compressed tar archive output stream
* Create full repository export endpoint.
* Add full repository export to ui
* Ignore irrelevant files from config store directory
* write metadata stores to file since a baos could teardown the server memory
* Migrate store name for git lfs files (#1504)

Changes the directory name for the git LFS blob store by
removing the repository id from the store name.

This is necessary for im- and exports of lfs blob stores,
because the original name had the repository id as a part
of it and therefore the old store would not be found when
the repository is imported with another id.

Existing blob files will be moved to the new store location
by an update step.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>

* Introduce util for migrations (#1505)

With this util it is more simple to rename
or delete stores.

* Rename files in export

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-01-28 11:40:35 +01:00
Florian Scholdei
a35c227a55 Repository contact information is editable
The RepositoryForm is called within the creation and editing of a repository. It contains a validator, which is supposed to check, among other things, whether the namespace and name were specified when the repository is created. This information is missing in the edit mode. I therefore initially set valid.namespaceAndName to true. It is changed to false again before the creation mask becomes active.
2021-01-28 11:31:16 +01:00
René Pfeuffer
01fd83fd6b Order proxy settings in frontend (#1502)
Group the single settings for proxies more meaningful.
2021-01-22 14:50:15 +01:00
Florian Scholdei
f4d4d3a8c6 Add missing subtitles (#1496)
Add the last missing subtitles in the scmm core.
2021-01-13 09:25:58 +01:00
Eduard Heimbuch
adf7bac665 Subversion repository export
Add the repository export function for Subversion repositories. The repository will be exported as dump file which can be downloaded directly or inside a gzip compressed archive.
2021-01-08 09:19:33 +01:00
Florian Scholdei
c579de108f Option to create a permanent link to a source file
Adds a new button next to the breadcrumbs in the source view that allows users to create a permanent link to the active path (file or folder).
2021-01-07 10:15:50 +01:00
Eduard Heimbuch
92232c0b4c fix jumping ui in repository settings actions 2020-12-16 11:52:24 +01:00
Florian Scholdei
214cf527d4 Feature/harmonize translation keys (#1478)
Harmonize translation keys

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2020-12-16 11:24:13 +01:00
René Pfeuffer
8e3b0e4145 Archive repository (#1477)
This adds a flag "archived" to repositories. Repositories marked with this can no longer be modified in any way. To do this, we switch to a new version of Shiro Static Permissions (sdorra/shiro-static-permissions#4) and specify a permission guard to check for every permission request, whether the repository in question is archived or not. Further we implement checks in stores and other activies so that no writing request may be executed by mistake.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2020-12-16 10:58:29 +01:00
Eduard Heimbuch
b167d90fea Namespace filter leads to empty page (#1476)
* Namespace filter leads to empty page

Fix bug where an empty page was shown if the repository namespace filtered overview page was called directly. Also now the namespace filter and the search action can be used together.

Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com>
2020-12-16 09:46:53 +01:00
Florian Scholdei
88b93dc8b8 Feature/profile navigation (#1464)
- Fix bug where profile settings wasn't shown if user cannot change password
- Add missing "ApiKey" entry in the single user menu

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2020-12-16 09:23:05 +01:00
Konstantin Schaper
3c9c0c1792 Merge branch 'develop' into feature/import_svn_from_dump 2020-12-14 11:40:46 +01:00
Konstantin Schaper
fed16f296a support permalinks to lines in source code view (#1472)
This features adjusts the syntax checker to render a little link icon next to a hovered line. When clicked,
a permanent link to this line is created and copied to the user's clipboard. When visiting the link,
the focused row is highlighted.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2020-12-14 09:15:18 +01:00
Eduard Heimbuch
e8dd7dc68d Add compress checkbox to ImportFromBundleForm 2020-12-10 14:46:47 +01:00
Eduard Heimbuch
ed940d5f23 Create form for import from bundle 2020-12-10 13:58:47 +01:00
René Pfeuffer
19edb3e869 Fix translation 2020-12-03 13:19:40 +01:00
Sebastian Sdorra
d0c84dec69 Pass down the repository type, because the RepositoryDto needs it for validation 2020-12-03 10:44:23 +01:00
Eduard Heimbuch
715c76e2f4 set repository name suggestion in import form just at leaving the input field 2020-12-03 09:38:23 +01:00
Eduard Heimbuch
dd0bcc4a3f Merge branch 'feature/import_git_from_url' of github.com:scm-manager/scm-manager into feature/import_git_from_url 2020-12-03 08:55:15 +01:00
Eduard Heimbuch
09c13100dd cleanup 2020-12-03 08:54:56 +01:00
Sebastian Sdorra
20b1e7a477 Keep state even if import pending changes 2020-12-02 16:07:42 +01:00
Eduard Heimbuch
60cdc6f8cf Merge branch 'develop' into feature/import_git_from_url 2020-12-02 14:39:45 +01:00
Eduard Heimbuch
dffe466405 split AddRepository component into two separate components to simplify the state handling 2020-12-02 13:26:31 +01:00
Eduard Heimbuch
7db33d2e65 Mind review findings 2020-12-02 10:47:48 +01:00
Eduard Heimbuch
f68370cfd4 cleanup ui 2020-12-01 15:17:06 +01:00
Konstantin Schaper
9ec8b4efac fix review findings 2020-12-01 15:16:55 +01:00
Eduard Heimbuch
3f808d78fb cleanup 2020-12-01 11:50:07 +01:00
Eduard Heimbuch
6a93a198e8 fix form validation after refactoring 2020-12-01 11:35:49 +01:00
Konstantin Schaper
51981dbece tags can now be deleted from the details page & documentation is updated accordingly 2020-12-01 10:46:33 +01:00
Eduard Heimbuch
af9f6ab629 refactor UI 2020-12-01 08:53:56 +01:00
Konstantin Schaper
8986e3d378 Merge branch 'develop' into feature/manage-tags
# Conflicts:
#	scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java
2020-11-30 14:18:05 +01:00
Eduard Heimbuch
6f2dda4fe4 refactor frontend components 2020-11-30 11:32:11 +01:00
Konstantin Schaper
032982857f clean up code, fix bugs, improve ux, add docs 2020-11-30 10:01:21 +01:00
Konstantin Schaper
6dbbe7c817 display tag signature 2020-11-27 11:03:11 +01:00
Konstantin Schaper
dc4607935b improve ux 2020-11-27 10:48:56 +01:00
Konstantin Schaper
7895da0a2a implement frontend for creating tags 2020-11-27 08:49:10 +01:00
Eduard Heimbuch
76cf2d801a Merge branch 'develop' into feature/import_git_from_url 2020-11-26 14:01:19 +01:00
Eduard Heimbuch
a7c4d41e4e improve error handling on repository import if the credentials were wrong or missing 2020-11-26 12:57:40 +01:00
Eduard Heimbuch
0682118879 Cleanup 2020-11-26 11:31:33 +01:00
Eduard Heimbuch
485138e5f2 add unit tests 2020-11-26 11:06:35 +01:00
Florian Scholdei
ba9143d78e Unify key views across all user settings 2020-11-26 09:37:40 +01:00
René Pfeuffer
07cf290370 Do not render last commit date when it's missing 2020-11-26 08:32:06 +01:00
René Pfeuffer
9d25a93558 Distinct between active and stale branches 2020-11-26 08:31:14 +01:00
René Pfeuffer
541933a03a Show last commit of branch in ui 2020-11-26 08:31:14 +01:00
Konstantin Schaper
e3170543cb add frontend for deleting tags 2020-11-25 15:51:44 +01:00
Eduard Heimbuch
d1dc2e04e2 refactor UI 2020-11-25 15:08:30 +01:00
Eduard Heimbuch
4e1e51d1b9 Add Loading Spinner while waiting for repository import 2020-11-25 14:01:45 +01:00
Eduard Heimbuch
10ed51733c Integrate import repository function into ui 2020-11-25 11:23:43 +01:00
Eduard Heimbuch
ff2b4d8acd refactor RepositoryForm.tsx to FC 2020-11-25 09:40:10 +01:00
René Pfeuffer
63c86cf9e5 Fix formatting 2020-11-24 13:40:23 +01:00