Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive repository #1477

Merged
merged 28 commits into from Dec 16, 2020
Merged

Archive repository #1477

merged 28 commits into from Dec 16, 2020

Conversation

pfeuffer
Copy link
Member

@pfeuffer pfeuffer commented Dec 14, 2020

Proposed changes

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.

Your checklist for this pull request

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • PR is well described and the description can be used as commit message on squash
  • Related issues linked to PR if existing and labels set
  • Target branch is not master (in most cases develop should bet the target of choice)
  • Code does not conflict with target branch
  • New code is covered with unit tests
  • CHANGELOG.md updated
  • Definition of Done's fulfilled: DoD // UI DoD
  • Documentation updated (only necessary for new features or changed behaviour)

Checklist for branch merge request (not required for forks)

@pfeuffer pfeuffer added the do not merge Marks a pr that it should not merged yet label Dec 14, 2020
@pfeuffer pfeuffer removed the do not merge Marks a pr that it should not merged yet label Dec 15, 2020
@pfeuffer pfeuffer added the enhancement New feature or request label Dec 15, 2020
Copy link
Member

@eheimbuch eheimbuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Heading for the repository action zone "Umbenennen und Löschen" doesn't match anymore. Seems like we should return to "Gefahrenzone".

@eheimbuch
Copy link
Member

Please mind the sonarcloud findings

pom.xml Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Dec 16, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

68.0% 68.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_275) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 11.
Read more here

@eheimbuch eheimbuch merged commit 8e3b0e4 into develop Dec 16, 2020
@eheimbuch eheimbuch deleted the feature/archive_repository branch December 16, 2020 09:58
eheimbuch pushed a commit to scm-manager/scm-review-plugin that referenced this pull request Dec 16, 2020
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)
eheimbuch added a commit to scm-manager/scm-teamscale-plugin that referenced this pull request Dec 16, 2020
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
eheimbuch added a commit to scm-manager/scm-ci-plugin that referenced this pull request Dec 16, 2020
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
eheimbuch added a commit to scm-manager/scm-statistic-plugin that referenced this pull request Dec 16, 2020
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
eheimbuch added a commit to scm-manager/scm-commit-message-checker-plugin that referenced this pull request Dec 16, 2020
Marks read only verbs that may be executed, when a repository is marked as "archived" (scm-manager/scm-manager#1477)

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants